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] [data] updates query and lang if language is not supported by query data #8768

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport a70a7b8 from #8749.

…ata (#8749)

* [data] updates query and lang if language is not supported by query data

If the query currently has a language set that is not valid for that dataset
type then update the language and get the initial query for that language
and dataset and then send the query.

The scenario we can see this is when we are on an index pattern, and DQL selected.
Then from recent datasets select an S3 connection. The dataset updates but the
language does not update so therefore the query is invalid.

Issue:
n/a

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

* Changeset file for PR #8749 created/updated

* update string in notification

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

---------

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 a70a7b8)
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 30, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 60.83%. Comparing base (0cd81f0) to head (433496e).
Report is 5 commits behind head on 2.x.

Files with missing lines Patch % Lines
.../public/query/query_string/query_string_manager.ts 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              2.x    #8768   +/-   ##
=======================================
  Coverage   60.83%   60.83%           
=======================================
  Files        3797     3797           
  Lines       90699    90704    +5     
  Branches    14266    14268    +2     
=======================================
+ Hits        55175    55181    +6     
+ Misses      32030    32028    -2     
- Partials     3494     3495    +1     
Flag Coverage Δ
Linux_1 29.06% <14.28%> (-0.01%) ⬇️
Linux_2 56.53% <ø> (ø)
Linux_3 37.62% <85.71%> (+<0.01%) ⬆️
Linux_4 29.94% <14.28%> (-0.01%) ⬇️
Windows_1 29.08% <14.28%> (-0.01%) ⬇️
Windows_2 56.48% <ø> (ø)
Windows_3 37.63% <85.71%> (+<0.01%) ⬆️
Windows_4 29.94% <14.28%> (-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.

@ananzh ananzh merged commit 6093da0 into 2.x Oct 31, 2024
70 of 72 checks passed
@github-actions github-actions bot deleted the backport/backport-8749-to-2.x branch October 31, 2024 02:33
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.

3 participants