Skip to content

[Visualize] Pinned filter updates state 2 times #57811

@sulemanof

Description

@sulemanof

Kibana version:
latest
Elasticsearch version:
latest
Server OS version:
any
Browser version:
any
Browser OS version:
any
Original install method (e.g. download page, yum, from source, etc.):
from source
Describe the bug:

Pinning a filter in visualize updates both states: Global state and AppState, so the history updates 2 times. It's happening due to current intermediate layer of using both half angular / half new utils state management to sync state.

pin_filter_visualize

Steps to reproduce:

  1. Create a filter in visaulize
  2. Pin it to global state
  3. Press back button

Expected behavior:

The filter should become unpinned

Pressing back button after pinning a filter should unpin it.

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:Vis EditorVisualization editor issuesTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experience

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions