|
@@ -482,10 +482,17 @@ class RuleConditionsForm extends PureComponent<Props, State> {
|
|
|
<SearchContainer>
|
|
|
<StyledSearchBar
|
|
|
disallowWildcard={dataset === Dataset.SESSIONS}
|
|
|
+ disallowFreeText={[
|
|
|
+ Dataset.GENERIC_METRICS,
|
|
|
+ Dataset.TRANSACTIONS,
|
|
|
+ ].includes(dataset)}
|
|
|
invalidMessages={{
|
|
|
[InvalidReason.WILDCARD_NOT_ALLOWED]: t(
|
|
|
'The wildcard operator is not supported here.'
|
|
|
),
|
|
|
+ [InvalidReason.FREE_TEXT_NOT_ALLOWED]: t(
|
|
|
+ 'Free text search is not allowed. If you want to partially match transaction names, use glob patterns like "transaction:*transaction-name*"'
|
|
|
+ ),
|
|
|
}}
|
|
|
customInvalidTagMessage={item => {
|
|
|
if (dataset !== Dataset.GENERIC_METRICS) {
|