Skip to content

[BUG] Filters persist when creating new searches or switching indices #8338

@msoler8785

Description

@msoler8785

Describe the bug

When clicking "New" to create a new search any configured filters persist. They are also persisted when changing indices. This happens even though they are not pinned.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Discover
  2. Create any filter
  3. Click "New"
  4. See filter persist.
  5. Change Index
  6. See filter persist.

Expected behavior

  1. When a "New" search is created, all the unpinned filters are cleared.
  2. When the selected index is changes, all unpinned filters are cleared.

OpenSearch Version
2.17

Dashboards Version
2.17

Plugins
kibana-enhanced-table

Screenshots
N/A

Host/Environment (please complete the following information):

  • OS: Windows 11
  • Microsoft Edge: 129.0.2792.52 (Official build) (64-bit)
  • Firefox 130.0.1 (64-bit)
  • Chrome: 129.0.6668.70 (Official Build) (64-bit) (cohort: M129 Rollout)

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions