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] PPL autocomplete and interface changes #7950

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 0245540 from #7932.

* [Autocomplete - SQL] Minor interface change to add suggestion type and move suggestion provider registration location (#7758)

* add table/source as prefix to suggested fields

Signed-off-by: Eric <menwe@amazon.com>

* add type to column

Signed-off-by: Eric <menwe@amazon.com>

* move registeration to osd/monaco

Signed-off-by: Eric <menwe@amazon.com>

* add detail

Signed-off-by: Eric <menwe@amazon.com>

* Changeset file for PR #7758 created/updated

---------

Signed-off-by: Eric <menwe@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>

* [Autocomplete] PPL Autocomplete (#7810)

* add initial ppl autocomplete

Signed-off-by: Eric <menwe@amazon.com>

* untrack .antlr files

Signed-off-by: Eric <menwe@amazon.com>

* ignore intermediate grammar auto-gen files

Signed-off-by: Eric <menwe@amazon.com>

* add rules and related functionalities

Signed-off-by: Eric <menwe@amazon.com>

* Changeset file for PR #7810 created/updated

* Changeset file for PR #7810 created/updated

* minor comment cleanning

Signed-off-by: Eric <menwe@amazon.com>

* add ppl generation command

Signed-off-by: Eric <menwe@amazon.com>

* add rules

Signed-off-by: Eric <menwe@amazon.com>

* correct typo

Signed-off-by: Eric <menwe@amazon.com>

* fix inserting text issue

Signed-off-by: Eric <menwe@amazon.com>

* remove colon for PPL field

Signed-off-by: Eric <menwe@amazon.com>

---------

Signed-off-by: Eric <menwe@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>

* small interface updates

Signed-off-by: Paul Sebastian <paulstn@amazon.com>

* small type update

Signed-off-by: Paul Sebastian <paulstn@amazon.com>

* make inclusion for pipe, comma, and equal tokens

Signed-off-by: Paul Sebastian <paulstn@amazon.com>

* refactor and generalize field fetcher for dql and ppl, including details

Signed-off-by: Paul Sebastian <paulstn@amazon.com>

* use field fetching util for sql and update sugg detail for dql

Signed-off-by: Paul Sebastian <paulstn@amazon.com>

* detail for ppl

Signed-off-by: Paul Sebastian <paulstn@amazon.com>

* create range parameter to help identify suggestions with whitespace, implemented dql value WS suggs

Signed-off-by: Paul Sebastian <paulstn@amazon.com>

* single line editor overflow initial override for sugg window

Signed-off-by: Paul Sebastian <paulstn@amazon.com>

* update dql tests to account for details and value ranges

Signed-off-by: Paul Sebastian <paulstn@amazon.com>

---------

Signed-off-by: Eric <menwe@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Co-authored-by: Eric Wei <menwe@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 0245540)
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 Aug 30, 2024

Codecov Report

Attention: Patch coverage is 35.65217% with 74 lines in your changes missing coverage. Please review.

Project coverage is 61.02%. Comparing base (a11bb7d) to head (1d0a66a).
Report is 1 commits behind head on 2.x.

Files with missing lines Patch % Lines
src/plugins/data/public/antlr/shared/utils.ts 30.00% 21 Missing ⚠️
...ntlr/opensearch_ppl/opensearch_ppl_autocomplete.ts 45.71% 19 Missing ⚠️
...ata/public/antlr/opensearch_ppl/code_completion.ts 11.76% 15 Missing ⚠️
...ata/public/antlr/opensearch_sql/code_completion.ts 0.00% 9 Missing ⚠️
...ata/public/antlr/shared/general_error_listerner.ts 0.00% 6 Missing ⚠️
src/plugins/data/public/plugin.ts 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #7950      +/-   ##
==========================================
- Coverage   64.38%   61.02%   -3.37%     
==========================================
  Files        3663     3670       +7     
  Lines       80917    86755    +5838     
  Branches    12902    13334     +432     
==========================================
+ Hits        52102    52938     +836     
- Misses      25620    30620    +5000     
- Partials     3195     3197       +2     
Flag Coverage Δ
Linux_1 28.91% <28.69%> (-1.45%) ⬇️
Linux_2 56.15% <ø> (ø)
Linux_3 37.98% <35.65%> (-2.83%) ⬇️
Linux_4 29.78% <28.69%> (-1.87%) ⬇️
Windows_1 28.93% <28.69%> (-1.45%) ⬇️
Windows_2 56.10% <ø> (ø)
Windows_3 37.98% <35.65%> (-2.83%) ⬇️
Windows_4 29.78% <28.69%> (-1.87%) ⬇️

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.

@ashwin-pc ashwin-pc merged commit 5778bd2 into 2.x Aug 30, 2024
65 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 discover for discover reinvent failed changeset v2.17.0 valued-contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants