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
[Maps] Filters applied to map visualization not preserved when added to dashboard #91282
Comments
Pinging @elastic/kibana-gis (Team:Geo) |
hi @patricklucas, this is a known behavior. This behavior in Maps is in alignment with other parts of Kibana (e.g. Lens), but inconsistent with the older visualization types like you mention. cc @kmartastic |
Thanks for raising this as an issue @patricklucas. |
Thanks for the replies @thomasneirynck / @kmartastic. In my use case, the map (and all the other visualizations) each have a simple filter applied that bounds the dataset to a "correct" subset of data, based on how my data is modeled*, and then filters can be added on the dashboard itself to drill down across all of the visualizations. *I'm using the pattern of writing a document for every state update in each "flow" I'm monitoring, each with "start" and "end" timestamps to indicate the time range they are relevant. When I write a new state update, I modify the previously-written document to have an "end" timestamp. The visualizations in my dashboard each apply a filter of "end timestamp does not exist", which narrows my view to only the latest state update for each "flow". |
@thomasneirynck This is not the behavior in Lens. We should fix this in Maps. |
Changing label from bug to enhancement since its working as designed, even if the design is not what some users expect. |
Another thread showing how not carrying filter state from maps app to dashboard causes confusion - https://discuss.elastic.co/t/maps-with-multiple-layer-appear-not-to-work-as-expected/268959 |
We should change how this works in Maps. |
This issue persists in v7.17.8 sadly... |
Issue is resolved in 8.5.0 and up. Please update to one of those versions to resolve the issue. In order to ensure stability, 7.17.x is only updated with critical security fixes. Resolving this issue can not be backported to 7.1.7.x because it does not meet this criteria. |
Thanks Nathan |
Kibana version: 7.10.2
Elasticsearch version: 7.10.2
Original install method (e.g. download page, yum, from source, etc.): Docker
Describe the bug: If you save a map visualization with filters applied, then add the map to a dashboard, the filters are not applied. This is different from (as far as I can tell) all other visualizations, where if you save one with a filter, that filter is also applied when it is added to a dashboard (in addition to filters applied to the dashboard itself, unless that behavior is opted-out in the visualization)
Steps to reproduce:
{"range": {"timestamp": {"gte": "now-1h"}}}
, then save the visualizationExpected behavior: The visualized data should be filtered as saved in the visualization
Screenshots (if relevant):
The text was updated successfully, but these errors were encountered: