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

[Maps] Filters applied to map visualization not preserved when added to dashboard #91282

Closed
patricklucas opened this issue Feb 12, 2021 · 11 comments · Fixed by #138188
Closed
Assignees
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation enhancement New value added to drive a business result usability
Projects

Comments

@patricklucas
Copy link

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:

  1. Add the "Flights" demo data
  2. Edit the "[Flights] Origin and Destination Flight Time" map visualization, adding a filter {"range": {"timestamp": {"gte": "now-1h"}}}, then save the visualization
  3. Create a new dashboard and add the visualization

Expected behavior: The visualized data should be filtered as saved in the visualization

Screenshots (if relevant):

image
image

@patricklucas patricklucas added the bug Fixes for quality problems that affect the customer experience label Feb 12, 2021
@azasypkin azasypkin added [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation triage_needed labels Feb 15, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@thomasneirynck
Copy link
Contributor

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

@kmartastic
Copy link
Contributor

Thanks for raising this as an issue @patricklucas.
I think most customers would feel like the behavior in Maps and Lens, which does not persist the filters, is a bug.
I will look into it further.

@patricklucas
Copy link
Author

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".

@kmartastic
Copy link
Contributor

@thomasneirynck This is not the behavior in Lens. We should fix this in Maps.

@thomasneirynck thomasneirynck added this to To do in Maps Mar 2, 2021
@nreese nreese added enhancement New value added to drive a business result and removed bug Fixes for quality problems that affect the customer experience labels Apr 1, 2021
@nreese
Copy link
Contributor

nreese commented Apr 1, 2021

Changing label from bug to enhancement since its working as designed, even if the design is not what some users expect.

@nreese
Copy link
Contributor

nreese commented Apr 5, 2021

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

@kmartastic
Copy link
Contributor

We should change how this works in Maps.

@mornelsd
Copy link

mornelsd commented Apr 8, 2024

This issue persists in v7.17.8 sadly...

@nreese
Copy link
Contributor

nreese commented Apr 8, 2024

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.

@mornelsd
Copy link

mornelsd commented Apr 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation enhancement New value added to drive a business result usability
Projects
No open projects
Maps
  
To do
Development

Successfully merging a pull request may close this issue.

7 participants