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

[Backport 2.x] fix: fixed unsupported language issue due to cached language in localStorage #8678

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport e94cf0c from #8674.

…Storage (#8674)

* fix: fixed unsupported language issue due to cached language in localStorage

The issue:
If selecting `PPL` in discover, and navigate to visualization creating
page which doesn't support `PPL`, the `PPL` is still be used.

The fix:
It will only use the cached language selection from localStorage if
the current app supports the language.

Signed-off-by: Yulong Ruan <ruanyl@amazon.com>

* Changeset file for PR #8674 created/updated

---------

Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit e94cf0c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 60.92%. Comparing base (6c33d0d) to head (9f46e2b).
Report is 1 commits behind head on 2.x.

Files with missing lines Patch % Lines
.../public/query/query_string/query_string_manager.ts 25.00% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #8678      +/-   ##
==========================================
- Coverage   60.92%   60.92%   -0.01%     
==========================================
  Files        3787     3787              
  Lines       90297    90303       +6     
  Branches    14152    14153       +1     
==========================================
  Hits        55017    55017              
- Misses      31809    31814       +5     
- Partials     3471     3472       +1     
Flag Coverage Δ
Linux_1 29.03% <0.00%> (-0.01%) ⬇️
Linux_2 56.53% <ø> (ø)
Linux_3 37.71% <25.00%> (-0.01%) ⬇️
Linux_4 29.93% <0.00%> (-0.01%) ⬇️
Windows_1 29.04% <0.00%> (-0.01%) ⬇️
Windows_2 56.48% <ø> (ø)
Windows_3 37.71% <25.00%> (-0.01%) ⬇️
Windows_4 29.93% <0.00%> (-0.01%) ⬇️

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.

@Hailong-am Hailong-am merged commit 426a167 into 2.x Oct 23, 2024
65 of 69 checks passed
@github-actions github-actions bot deleted the backport/backport-8674-to-2.x branch October 23, 2024 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
all-star-contributor autocut Skip the changelog verification check on backports failed changeset
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants