[Auto Suggest] DQL autosuggest with ANTLR#7391
[Auto Suggest] DQL autosuggest with ANTLR#7391kavilla merged 47 commits intoopensearch-project:mainfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7391 +/- ##
==========================================
- Coverage 63.67% 63.64% -0.04%
==========================================
Files 3630 3634 +4
Lines 79545 80099 +554
Branches 12609 12682 +73
==========================================
+ Hits 50652 50977 +325
- Misses 25819 26015 +196
- Partials 3074 3107 +33
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
c9206b8 to
85ee824
Compare
sejli
left a comment
There was a problem hiding this comment.
Looks good, have some nits and one thing regarding http.
85ee824 to
d3bd0ce
Compare
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
…and utilize selectionEnd if no position Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
* update code completion to not return for visualize Signed-off-by: Paul Sebastian <paulstn@amazon.com> * update types to match completionitemkind Signed-off-by: Paul Sebastian <paulstn@amazon.com> --------- Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
| this.props.editorWillMount(); | ||
| } | ||
|
|
||
| monaco.languages.onLanguage(this.props.languageId, () => { |
There was a problem hiding this comment.
have we verify no performance issues? that means anytime this is re-rendered its going to re register
| * The language ID, meant to restrict the specified configuration for only this language. When | ||
| * not provided, will apply the language configuration for every language. | ||
| */ | ||
| language?: string; |
There was a problem hiding this comment.
little bit confused, but you have more context than me. it seems like the only time this is set is in the loop where we check the language. and if we have to register the languages so we would still have to pass this prop. so as long as im registering the language then i can register the language configuration?
| } | ||
| }; | ||
|
|
||
| private fetchIndexPatterns = debounce( |
There was a problem hiding this comment.
yeah i believe index patterns service might be easier. it's ok can be fast follow
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.16 2.16
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.16
# Create a new branch
git switch --create backport/backport-7391-to-2.16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 2b1d01f4aa87a91b0fe1ec2cfd0ee9653adb02c5
# Push it to GitHub
git push --set-upstream origin backport/backport-7391-to-2.16
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.16Then, create a pull request where the |
Description
Implements ANTLR based autocomplete for DQL queries, currently within Discover.
Ignore files located in .generated and grammar/.antlr
Previously reviewed/approved in #7467 to be merged into the
feature/discover-2.0-1branch. Was then reverted to isolate test failures, and then moved to this pr to get merged into main directly.Screenshot
Testing the changes
Changelog
Check List
yarn test:jestyarn test:jest_integration