Skip to content

Conversation

@opensearch-trigger-bot
Copy link
Contributor

Backport 4808094 from #8659.

)

* [bug] Discover UI stuck on searching after deleting index pattern

When using Discover with query enhancement enabled, deleting an index pattern from Index Management does not properly update the "Recently selected data" list in Discover. This causes the UI to become stuck in a "Searching" state when attempting to use
Discover after deleting an index pattern.

Handle the error case where the use index patterns hook caught error when
enhancements was enabled.

issue resolved:
#8612

Signed-off-by: Kawika Avilla <[email protected]>

* Changeset file for PR #8659 created/updated

---------

Signed-off-by: Kawika Avilla <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 4808094)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

❌ Invalid Changelog Heading

The '## Changelog' heading in your PR description is either missing or malformed. Please make sure that your PR description includes a '## Changelog' heading with proper spelling, capitalization, spacing, and Markdown syntax.

@codecov
Copy link

codecov bot commented Oct 19, 2024

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Project coverage is 60.95%. Comparing base (dff25a9) to head (5a81190).
Report is 3 commits behind head on 2.x.

Files with missing lines Patch % Lines
...ication/view_components/utils/use_index_pattern.ts 0.00% 8 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              2.x    #8664   +/-   ##
=======================================
  Coverage   60.95%   60.95%           
=======================================
  Files        3786     3786           
  Lines       90212    90212           
  Branches    14126    14126           
=======================================
+ Hits        54988    54990    +2     
+ Misses      31758    31757    -1     
+ Partials     3466     3465    -1     
Flag Coverage Δ
Linux_1 29.13% <0.00%> (ø)
Linux_2 56.53% <ø> (ø)
Linux_3 37.74% <0.00%> (+<0.01%) ⬆️
Linux_4 30.02% <ø> (ø)
Windows_1 29.14% <0.00%> (ø)
Windows_2 56.49% <ø> (ø)
Windows_3 37.74% <0.00%> (ø)
Windows_4 30.02% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AMoo-Miki AMoo-Miki merged commit bde23d9 into 2.x Oct 19, 2024
69 of 72 checks passed
@github-actions github-actions bot deleted the backport/backport-8659-to-2.x branch October 19, 2024 18:31
@AMoo-Miki
Copy link
Collaborator

Also included in manual backportto 2.x with #8670

ruchidh pushed a commit to ruchidh/OpenSearch-Dashboards that referenced this pull request Jul 18, 2025
…ensearch-project#8659) (opensearch-project#8664)

* [bug] Discover UI stuck on searching after deleting index pattern

When using Discover with query enhancement enabled, deleting an index pattern from Index Management does not properly update the "Recently selected data" list in Discover. This causes the UI to become stuck in a "Searching" state when attempting to use
Discover after deleting an index pattern.

Handle the error case where the use index patterns hook caught error when
enhancements was enabled.

issue resolved:
opensearch-project#8612

* Changeset file for PR opensearch-project#8659 created/updated

---------

(cherry picked from commit 4808094)

Signed-off-by: Kawika Avilla <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: Ruchi Sharma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autocut Skip the changelog verification check on backports discover for discover reinvent discover-next distinguished-contributor failed changeset v2.18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants