-
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
[Advanced Settings] Fix search does not work for terms with ":" #193506
Conversation
@elasticmachine merge upstream |
/ci |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
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.
Thanks for working on this @viajes7! Tested locally and searching for settings that include :
works well now. I have one suggestion regarding the check for the clause.
packages/kbn-management/settings/application/hooks/use_fields.ts
Outdated
Show resolved
Hide resolved
0840de1
to
efc4981
Compare
@elasticmachine merge upstream |
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.
LGTM, thanks for the changes!
Pinging @elastic/kibana-management (Team:Kibana Management) |
@ElenaStoeva Hi, I just pushed a commit, use the On the other hand, |
/ci |
Hey @viajes7, thanks for using the Sure, I commented a prompt to re-run ci, hopefully it will pass this time. |
/ci |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
@elasticmachine run docs-build |
…tic#193506) ## Summary Fixes elastic#192694 When terms with `:`, it will be transformed to a `FieldClause`. So, I'm try to set it back to a `TermClause` if the field is not in `FieldDefinition`. Example: `-defaultValue:false doc_table:high Dashboard` ![image](https://github.com/user-attachments/assets/e9519cfe-c64d-4bd4-b928-d6ffd9bfaa8b) --------- Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elena Stoeva <[email protected]> (cherry picked from commit b8398c7)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…ot;:" (#193506) (#193965) # Backport This will backport the following commits from `main` to `8.x`: - [[Advanced Settings] Fix search does not work for terms with ":" (#193506)](#193506) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Jusheng Huang","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-25T10:36:25Z","message":"[Advanced Settings] Fix search does not work for terms with \":\" (#193506)\n\n## Summary\r\n\r\nFixes #192694\r\n\r\nWhen terms with `:`, it will be transformed to a `FieldClause`.\r\n\r\nSo, I'm try to set it back to a `TermClause` if the field is not in\r\n`FieldDefinition`.\r\n\r\nExample: `-defaultValue:false doc_table:high Dashboard`\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/e9519cfe-c64d-4bd4-b928-d6ffd9bfaa8b)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>\r\nCo-authored-by: Elena Stoeva <[email protected]>","sha":"b8398c7b684d9fb4745c0d9d8c5a9c60a5eddc48","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Kibana Management","Team:Kibana Management","release_note:skip","💝community","v9.0.0","backport:prev-minor","v8.16.0"],"title":"[Advanced Settings] Fix search does not work for terms with \":\"","number":193506,"url":"https://github.com/elastic/kibana/pull/193506","mergeCommit":{"message":"[Advanced Settings] Fix search does not work for terms with \":\" (#193506)\n\n## Summary\r\n\r\nFixes #192694\r\n\r\nWhen terms with `:`, it will be transformed to a `FieldClause`.\r\n\r\nSo, I'm try to set it back to a `TermClause` if the field is not in\r\n`FieldDefinition`.\r\n\r\nExample: `-defaultValue:false doc_table:high Dashboard`\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/e9519cfe-c64d-4bd4-b928-d6ffd9bfaa8b)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>\r\nCo-authored-by: Elena Stoeva <[email protected]>","sha":"b8398c7b684d9fb4745c0d9d8c5a9c60a5eddc48"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193506","number":193506,"mergeCommit":{"message":"[Advanced Settings] Fix search does not work for terms with \":\" (#193506)\n\n## Summary\r\n\r\nFixes #192694\r\n\r\nWhen terms with `:`, it will be transformed to a `FieldClause`.\r\n\r\nSo, I'm try to set it back to a `TermClause` if the field is not in\r\n`FieldDefinition`.\r\n\r\nExample: `-defaultValue:false doc_table:high Dashboard`\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/e9519cfe-c64d-4bd4-b928-d6ffd9bfaa8b)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>\r\nCo-authored-by: Elena Stoeva <[email protected]>","sha":"b8398c7b684d9fb4745c0d9d8c5a9c60a5eddc48"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Jusheng Huang <[email protected]>
Summary
Fixes #192694
When terms with
:
, it will be transformed to aFieldClause
.So, I'm try to set it back to a
TermClause
if the field is not inFieldDefinition
.Example:
-defaultValue:false doc_table:high Dashboard