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] [query assist] use badge to show agent errors #8146

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 461a395 from #7998.

- enable query assist for index patterns without data source
- add agent error parsing utils
- update ml-commons response schema processing
   - previously ml-commons returns error.body as a string, now it is a JSON object. Ideally frontend should keep it as is to reduce serializing/deserializing, but since older version of ml-commons can be used through MDS, we'll keep it as a string for consistency
- use badge to show query assist error if possible
- add unit tests

Signed-off-by: Joshua Li <[email protected]>
(cherry picked from commit 461a395)
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.

@github-actions github-actions bot added failed changeset and removed Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry labels Sep 11, 2024
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

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

Project coverage is 63.97%. Comparing base (a8fca1c) to head (fa7f70a).
Report is 90 commits behind head on 2.x.

Files with missing lines Patch % Lines
...s/public/query_assist/components/warning_badge.tsx 77.77% 4 Missing ⚠️
...nts/public/query_assist/utils/create_extension.tsx 0.00% 0 Missing and 1 partial ⚠️
...y_enhancements/public/query_assist/utils/errors.ts 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #8146      +/-   ##
==========================================
+ Coverage   63.92%   63.97%   +0.05%     
==========================================
  Files        3737     3738       +1     
  Lines       88717    88746      +29     
  Branches    13792    13799       +7     
==========================================
+ Hits        56713    56779      +66     
+ Misses      31408    31372      -36     
+ Partials      596      595       -1     
Flag Coverage Δ
Linux_1 29.96% <ø> (ø)
Linux_2 58.91% <ø> (ø)
Linux_3 40.29% <ø> (+<0.01%) ⬆️
Linux_4 31.48% <81.25%> (+0.15%) ⬆️
Windows_1 29.97% <ø> (ø)
Windows_2 58.86% <ø> (ø)
Windows_3 40.29% <ø> (ø)
Windows_4 31.48% <81.25%> (+0.15%) ⬆️

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.

@kavilla kavilla merged commit 5cce5a0 into 2.x Sep 12, 2024
69 of 71 checks passed
@ashwin-pc ashwin-pc added 2.17.1 and removed v2.18.0 labels Sep 17, 2024
SuZhou-Joe pushed a commit to SuZhou-Joe/OpenSearch-Dashboards that referenced this pull request Oct 3, 2024
… (opensearch-project#8146)

- enable query assist for index patterns without data source
- add agent error parsing utils
- update ml-commons response schema processing
   - previously ml-commons returns error.body as a string, now it is a JSON object. Ideally frontend should keep it as is to reduce serializing/deserializing, but since older version of ml-commons can be used through MDS, we'll keep it as a string for consistency
- use badge to show query assist error if possible
- add unit tests


(cherry picked from commit 461a395)

Signed-off-by: Joshua Li <[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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.17.1 autocut Skip the changelog verification check on backports discover for discover reinvent discover-next failed changeset seasoned-contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants