-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lens] Prevent identical include and exclude values #197628
[Lens] Prevent identical include and exclude values #197628
Conversation
e8bb295
to
fdda52f
Compare
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
.../lens/public/datasources/form_based/operations/definitions/terms/include_exclude_options.tsx
Outdated
Show resolved
Hide resolved
.../lens/public/datasources/form_based/operations/definitions/terms/include_exclude_options.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for great work and the added tests. Approving!
buildkite test this |
run docs-build |
💚 Build Succeeded
Metrics [docs]Async chunks
History
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
## Summary Fixes elastic#194639 - This PR adds filtering logic to: - `onChangeIncludeExcludeOptions` - `onCreateOption` - `onIncludeRegexChangeToDebounce` - `onExcludeRegexChangeToDebounce` These changes prevent the include and exclude fields from having the same values simultaneously. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios https://github.com/user-attachments/assets/8f848c2a-0bea-46c6-b335-b04d62c12aef --------- Co-authored-by: Marta Bondyra <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Friendly reminder: Looks like this PR hasn’t been backported yet. |
@mbondyra is there a reason not to backport this to the |
Starting backport for target branches: 8.x |
Sounds good @nickofthyme 👌🏼 |
## Summary Fixes elastic#194639 - This PR adds filtering logic to: - `onChangeIncludeExcludeOptions` - `onCreateOption` - `onIncludeRegexChangeToDebounce` - `onExcludeRegexChangeToDebounce` These changes prevent the include and exclude fields from having the same values simultaneously. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios https://github.com/user-attachments/assets/8f848c2a-0bea-46c6-b335-b04d62c12aef --------- Co-authored-by: Marta Bondyra <[email protected]> Co-authored-by: Elastic Machine <[email protected]> (cherry picked from commit 750e578)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…200133) # Backport This will backport the following commits from `main` to `8.x`: - [[lens] Prevent identical include and exclude values (#197628)](#197628) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Oyelola Victoria","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-11T16:48:23Z","message":"[lens] Prevent identical include and exclude values (#197628)\n\n## Summary\r\n\r\nFixes #194639\r\n\r\n- This PR adds filtering logic to:\r\n - `onChangeIncludeExcludeOptions`\r\n - `onCreateOption`\r\n - `onIncludeRegexChangeToDebounce` \r\n - `onExcludeRegexChangeToDebounce`\r\n\r\nThese changes prevent the include and exclude fields from having the\r\nsame values simultaneously.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8f848c2a-0bea-46c6-b335-b04d62c12aef\r\n\r\n---------\r\n\r\nCo-authored-by: Marta Bondyra <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"750e578f2867d1ad6bf2f1f7506a1d75f2d77d05","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Visualizations","backport missing","💝community","v9.0.0","backport:current-major"],"title":"[Lens] Prevent identical include and exclude values","number":197628,"url":"https://github.com/elastic/kibana/pull/197628","mergeCommit":{"message":"[lens] Prevent identical include and exclude values (#197628)\n\n## Summary\r\n\r\nFixes #194639\r\n\r\n- This PR adds filtering logic to:\r\n - `onChangeIncludeExcludeOptions`\r\n - `onCreateOption`\r\n - `onIncludeRegexChangeToDebounce` \r\n - `onExcludeRegexChangeToDebounce`\r\n\r\nThese changes prevent the include and exclude fields from having the\r\nsame values simultaneously.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8f848c2a-0bea-46c6-b335-b04d62c12aef\r\n\r\n---------\r\n\r\nCo-authored-by: Marta Bondyra <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"750e578f2867d1ad6bf2f1f7506a1d75f2d77d05"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197628","number":197628,"mergeCommit":{"message":"[lens] Prevent identical include and exclude values (#197628)\n\n## Summary\r\n\r\nFixes #194639\r\n\r\n- This PR adds filtering logic to:\r\n - `onChangeIncludeExcludeOptions`\r\n - `onCreateOption`\r\n - `onIncludeRegexChangeToDebounce` \r\n - `onExcludeRegexChangeToDebounce`\r\n\r\nThese changes prevent the include and exclude fields from having the\r\nsame values simultaneously.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8f848c2a-0bea-46c6-b335-b04d62c12aef\r\n\r\n---------\r\n\r\nCo-authored-by: Marta Bondyra <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"750e578f2867d1ad6bf2f1f7506a1d75f2d77d05"}}]}] BACKPORT--> Co-authored-by: Oyelola Victoria <[email protected]>
## Summary Fixes elastic#194639 - This PR adds filtering logic to: - `onChangeIncludeExcludeOptions` - `onCreateOption` - `onIncludeRegexChangeToDebounce` - `onExcludeRegexChangeToDebounce` These changes prevent the include and exclude fields from having the same values simultaneously. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios https://github.com/user-attachments/assets/8f848c2a-0bea-46c6-b335-b04d62c12aef --------- Co-authored-by: Marta Bondyra <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Summary
Fixes #194639
onChangeIncludeExcludeOptions
onCreateOption
onIncludeRegexChangeToDebounce
onExcludeRegexChangeToDebounce
These changes prevent the include and exclude fields from having the same values simultaneously.
Checklist
include_exclude.1.mp4