[8.6] [8.6] Fix: Wrong default filtering rule (#146259) (#146275)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[8.6] Fix: Wrong default filtering rule
(#146259)](https://github.com/elastic/kibana/pull/146259)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Tim
Grein","email":"tim.grein@elastic.co"},"sourceCommit":{"committedDate":"2022-11-24T10:50:42Z","message":"[8.6]
Fix: Wrong default filtering rule (#146259)\n\n## Closes
https://github.com/elastic/enterprise-search-team/issues/3422\r\n\r\nThe
default rule for connectors simple rule filtering should be\r\n**INCLUDE
'_' REGEX '.*'** and not **INCLUDE '_' EQUALS
'.*'**","sha":"ca6451f25a65853e92450dbd3760902a385d9766","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.6.0","v8.7.0"],"number":146259,"url":"https://github.com/elastic/kibana/pull/146259","mergeCommit":{"message":"[8.6]
Fix: Wrong default filtering rule (#146259)\n\n## Closes
https://github.com/elastic/enterprise-search-team/issues/3422\r\n\r\nThe
default rule for connectors simple rule filtering should be\r\n**INCLUDE
'_' REGEX '.*'** and not **INCLUDE '_' EQUALS
'.*'**","sha":"ca6451f25a65853e92450dbd3760902a385d9766"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/146259","number":146259,"mergeCommit":{"message":"[8.6]
Fix: Wrong default filtering rule (#146259)\n\n## Closes
https://github.com/elastic/enterprise-search-team/issues/3422\r\n\r\nThe
default rule for connectors simple rule filtering should be\r\n**INCLUDE
'_' REGEX '.*'** and not **INCLUDE '_' EQUALS
'.*'**","sha":"ca6451f25a65853e92450dbd3760902a385d9766"}}]}]
BACKPORT-->

Co-authored-by: Tim Grein <tim.grein@elastic.co>
This commit is contained in:
Kibana Machine 2022-11-28 08:11:37 -05:00 committed by GitHub
parent 38feeef956
commit 716ce019b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,7 +261,7 @@ export const ConnectorFilteringLogic = kea<
id: uuidv4(),
order: 0,
policy: FilteringPolicy.INCLUDE,
rule: FilteringRuleRule.EQUALS,
rule: FilteringRuleRule.REGEX,
updated_at: new Date().toISOString(),
value: '.*',
},
@ -279,7 +279,7 @@ export const ConnectorFilteringLogic = kea<
id: uuidv4(),
order: 0,
policy: FilteringPolicy.INCLUDE,
rule: FilteringRuleRule.EQUALS,
rule: FilteringRuleRule.REGEX,
updated_at: new Date().toISOString(),
value: '.*',
};