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] [Auto Suggest] Add back reverted MDS support, tests and cleanup for sql auto suggest #7579

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport d0618df from #7543.

…ql auto suggest (#7543)

This PR did:
* Added support for MDS (likely Multi-Data Source) in the auto-suggest feature.
* Implemented DQL auto-suggest functionality using ANTLR (ANother Tool for Language Recognition).
* Updated the query assist feature to use a dataset manager instead of relying on index patterns directly.
* Improved field and value suggestions in DQL, including support for partially formed values and phrases.
* Added auto-closing quotes and parentheses for DQL in the editor.
* Updated the grammar and parser rules for better handling of DQL syntax.
* Implemented tests for SQL autocomplete rule processing and DQL field and keyword suggestions.
* Made changes to handle the asynchronous nature of the dataset manager in tests.
* Cleaned up unnecessary files and updated utilities.

---------

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Signed-off-by: Eric <menwe@amazon.com>
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Eric Wei <menwe@amazon.com>
Co-authored-by: Kawika Avilla <kavilla414@gmail.com>
Co-authored-by: Joshua Li <joshuali925@gmail.com>
Co-authored-by: Paul Sebastian <paulstn@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Co-authored-by: Ashwin P Chandran <ashwinpc@amazon.com>
(cherry picked from commit d0618df)
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 Jul 30, 2024

Codecov Report

Attention: Patch coverage is 51.42857% with 17 lines in your changes missing coverage. Please review.

Project coverage is 63.77%. Comparing base (2411e2f) to head (2ca5156).

Files Patch % Lines
...ata/public/antlr/opensearch_sql/code_completion.ts 0.00% 16 Missing ⚠️
src/plugins/data/public/antlr/shared/utils.ts 94.73% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #7579      +/-   ##
==========================================
+ Coverage   63.73%   63.77%   +0.03%     
==========================================
  Files        3629     3629              
  Lines       79538    79534       -4     
  Branches    12603    12599       -4     
==========================================
+ Hits        50691    50720      +29     
+ Misses      25781    25744      -37     
- Partials     3066     3070       +4     
Flag Coverage Δ
Linux_1 30.76% <5.71%> (+<0.01%) ⬆️
Linux_2 55.70% <ø> (ø)
Linux_3 40.41% <51.42%> (+0.16%) ⬆️
Linux_4 31.69% <5.71%> (+<0.01%) ⬆️
Windows_1 30.78% <5.71%> (+<0.01%) ⬆️
Windows_2 55.65% <ø> (ø)
Windows_3 40.41% <51.42%> (+0.15%) ⬆️
Windows_4 31.69% <5.71%> (+<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 d4cf3f9 into 2.x Jul 30, 2024
66 of 69 checks passed
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 failed changeset v2.16.0 valued-contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants