Skip to content
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

[BUG] Applies filters when it should not when ignoreFilterIfFieldNotInIndex setting is on #43

Closed
JacobBrandt opened this issue Dec 1, 2021 · 1 comment · Fixed by #68
Labels
bug Something isn't working

Comments

@JacobBrandt
Copy link

Describe the bug
This visualization does not account for the advanced setting "ignoreFilterIfFieldNotInIndex"

To Reproduce
Turn setting on.
Add a filter that uses a field not in the index of the saved Gannt chart.
Watch visualization apply the filter

Expected behavior
Visualization should not apply the filter with the setting on

@JacobBrandt JacobBrandt added Beta bug Something isn't working untriaged labels Dec 1, 2021
@joshuali925
Copy link
Member

thanks for submitting an issue. we are using buildOpenSearchQuery to process filters, i see there is a ignoreFilterIfFieldNotInIndex option that can be passed in. should be a quick fix

code ref: https://github.com/opensearch-project/OpenSearch-Dashboards/blob/9e4e5ff43900b3875c1653b251aa5c71efa2569e/src/plugins/data/common/opensearch_query/opensearch_query/build_opensearch_query.ts#L61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants