-
Notifications
You must be signed in to change notification settings - Fork 1k
[ignoreFilterIfFieldNotInIndex] Build separate Timeline filters by index #6190
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
base: main
Are you sure you want to change the base?
[ignoreFilterIfFieldNotInIndex] Build separate Timeline filters by index #6190
Conversation
Signed-off-by: Nick Steinbaugh <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6190 +/- ##
==========================================
- Coverage 67.55% 67.55% -0.01%
==========================================
Files 3469 3469
Lines 68479 68485 +6
Branches 11130 11130
==========================================
+ Hits 46264 46266 +2
- Misses 19512 19516 +4
Partials 2703 2703
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@neodescis Found an issue when I play with in. So in OSD, we can typically omit the explicit For example, in the following expression, for opensearch_dashboards_sample_data_logs we have
![]() If we add a filter to and this will cause the |
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.
@neodescis could you check my comment and fix the expression? Feel without index=
is hard to capture. Maybe we could add /\.(es|elasticsearch|os|opensearch)\(\s*['"]?([\w\-\*]+)['"]?/
since.es, .elasticsearch, .os, .opensearch
can help to capture and index name is always the first one. But I am worried about potential edge cases, like could index name not be the first string in the expression or if there is any special characters in index names.
Thanks for looking at this, @ananzh. I appreciate the analysis. I didn't know that |
I've done some digging, and I've determined that the That said, I do have a solution that supports the unnamed argument as the 4th parameter. I did end up changing the logic a fair amount to do so. I will get it pushed to this pull request soon. |
Signed-off-by: Nick Steinbaugh <[email protected]>
Any chance anyone can look at this? @ananzh ? |
Description
When ignoreFilterIfFieldNotInIndex is enabled:
Issues Resolved
closes #6184
Testing the changes
Check List
yarn test:jest
yarn test:jest_integration