Skip to content

Browser back/forward does not update filtered data #84711

@nickofthyme

Description

@nickofthyme

Kibana version:
master

Browser OS version:
Chrome

Describe the bug:
When setting a filter on a visualization in visualize then using the browser back and forward buttons, the filter will be added and removed but the data will remain unchanged until the refresh button is pressed.

This bug affects vis_type_vislib, vis_type_tagcloud and possibly others.

Steps to reproduce:

  1. Go to a tag cloud visualization from any sample dataset
  2. Add a filter
  3. Notice the data and visualization is updated
  4. Click the browser back button, then the forward button
  5. Notice the visualization is unchanged by the filter being added and removed.
  6. Clicking the kibana refresh button on the next state, correctly updates the data.

The behavior is a little flaky, sometime it works correctly on the first back but not all the subsequent forwards and backwards.

Expected behavior:
Filter should update the data passed to the visualization

Screenshots:
Screen Recording 2020-12-01 at 03 30 PM

Errors in browser console (if relevant):
N/A

Any additional context:
After inspecting vislib, the data that is passed to the toExpressionAst function from esaggs is not being updated and using the previous data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:AggregationsAggregation infrastructure (AggConfig, esaggs, ...)Team:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//impact:lowAddressing this issue will have a low level of impact on the quality/strength of our product.loe:smallSmall Level of Effort

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions