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
[UnifiedDocViewer] Field search via wildcard #168616
[UnifiedDocViewer] Field search via wildcard #168616
Conversation
@elasticmachine merge upstream |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
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.
Nice improvement and works great, thanks!
@@ -9,7 +9,7 @@ | |||
import { escapeRegExp, memoize } from 'lodash'; | |||
|
|||
const makeRegEx = memoize(function makeRegEx(glob: string) { | |||
const trimmedGlob = glob.trim(); | |||
const trimmedGlob = glob.trim().toLowerCase(); |
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.
Does this have an impact? It looks like we use the i
modifier below when constructing the RegExp anyway.
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.
@davismcphee True, updated via d4cfdf9
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
History
To update your PR or re-run it, just comment with: cc @jughosta |
- Closes elastic#168607 ## Summary This PR allows to search in DocViewer not only for partial matches but also for wildcard matches. <img width="400" alt="Screenshot 2023-10-11 at 16 51 36" src="https://github.com/elastic/kibana/assets/1415710/ec5dc57f-e540-48c6-b43c-d79d64ef1809"> <img width="400" alt="Screenshot 2023-10-11 at 16 51 48" src="https://github.com/elastic/kibana/assets/1415710/c68a3b70-c195-4da9-bb0c-12ca38db269c"> <img width="400" alt="Screenshot 2023-10-11 at 16 52 24" src="https://github.com/elastic/kibana/assets/1415710/d2d37976-559d-4cc3-852f-5ad3175808cc"> ### 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 - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
- Closes elastic#168607 ## Summary This PR allows to search in DocViewer not only for partial matches but also for wildcard matches. <img width="400" alt="Screenshot 2023-10-11 at 16 51 36" src="https://github.com/elastic/kibana/assets/1415710/ec5dc57f-e540-48c6-b43c-d79d64ef1809"> <img width="400" alt="Screenshot 2023-10-11 at 16 51 48" src="https://github.com/elastic/kibana/assets/1415710/c68a3b70-c195-4da9-bb0c-12ca38db269c"> <img width="400" alt="Screenshot 2023-10-11 at 16 52 24" src="https://github.com/elastic/kibana/assets/1415710/d2d37976-559d-4cc3-852f-5ad3175808cc"> ### 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 - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Summary
This PR allows to search in DocViewer not only for partial matches but also for wildcard matches.
Checklist