Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 2.3.0
Describe the issue : The Advanced setting courier:ignoreFilterIfFieldNotInIndex : true doesn’t work for Vega Visualisation.
This is used to ignore filters on dashboard if the field doesn’t exist in a particular visualisation.
Configuration :
Relevant Logs or Screenshots :
pablo
November 28, 2024, 5:23pm
2
@ankursharma Have you checked this bug?
opened 07:07PM - 18 Mar 24 UTC
bug
**Describe the bug**
The timeline visualization applies all filters to all in… dexes from which it is retrieving data, regardless of the ignoreFilterIfFieldNotInIndex setting.
**To Reproduce**
Steps to reproduce the behavior:
1. Create dashboard with visualizations for more than one index
2. Create timeline visualization for one of those indexes and add it to the dashboard
3. Create filter that applies only to the index *not* referenced by the timeline visualization
4. See the timeline visualization flatline, because the filter is applied to it
**Expected behavior**
The timeline visualization should apply filters only to applicable indexes if ignoreFilterIfFieldNotInIndex is enabled.
**OpenSearch Version**
2.12.0
**Dashboards Version**
2.12.0
**Host/Environment (please complete the following information):**
- Windows 11
- Chrome 122.0.6261.129
**Additional context**
We have a fix for this that we are currently testing. The change involves parsing the timeline expression client-side and building the query for each index listed in the expression.
opensearch-project:main
← icr-cognos:ignore-inapplicable-indexes-in-timeline-vis
opened 01:17AM - 19 Mar 24 UTC
### Description
When ignoreFilterIfFieldNotInIndex is enabled:
1. Parse the … Timeline visualization expression for indexes
2. For each index in the expression, build a separate OpenSearch query from the current filters
3. Pass the filters for each index to the Timeline request handler
4. In the request handler, use the index-specific query instead of the single index-agnostic query
### Issues Resolved
closes #6184
## Testing the changes
1. Enable ignoreFilterIfFieldNotInIndex
2. Create dashboard with visualizations for more than one index
3. Create timeline visualization for one of those indexes and add it to the dashboard
4. Create filter that applies only to the index not referenced by the timeline visualization
5. The timeline visualization should no longer flatline, because the filter is no longer being applied to it
### Check List
- [ ] All tests pass
- [ ] `yarn test:jest`
- [ ] `yarn test:jest_integration`
- [ ] New functionality includes testing.
- [ ] New functionality has been documented.
- [ ] Update [CHANGELOG.md](./../CHANGELOG.md)
- [X] Commits are signed per the DCO using --signoff
Thank you, for the time being I have found a workaround for my scenario.