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

Merged
merged 1 commit into from
Sep 21, 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 20, 2024
Copy link

codecov bot commented Sep 20, 2024

Codecov Report

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

Project coverage is 63.99%. Comparing base (10bb541) to head (da29545).
Report is 6 commits behind head on 2.17.

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.17    #8259      +/-   ##
==========================================
+ Coverage   63.93%   63.99%   +0.05%     
==========================================
  Files        3737     3738       +1     
  Lines       88749    88778      +29     
  Branches    13802    13809       +7     
==========================================
+ Hits        56745    56811      +66     
+ Misses      31406    31370      -36     
+ Partials      598      597       -1     
Flag Coverage Δ
Linux_1 29.96% <ø> (ø)
Linux_2 58.95% <ø> (ø)
Linux_3 40.27% <ø> (?)
Linux_4 31.47% <81.25%> (+0.15%) ⬆️
Windows_1 29.97% <ø> (ø)
Windows_2 58.89% <ø> (ø)
Windows_3 40.27% <ø> (ø)
Windows_4 31.47% <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.

@abbyhu2000 abbyhu2000 merged commit e0c40b3 into 2.17 Sep 21, 2024
69 of 71 checks passed
abbyhu2000 added a commit to abbyhu2000/OpenSearch-Dashboards that referenced this pull request Sep 24, 2024
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 failed changeset seasoned-contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants