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

Add auto-suggestions for skipping index definition and export types #1552

Merged
merged 4 commits into from
Mar 19, 2024

Conversation

ps48
Copy link
Member

@ps48 ps48 commented Mar 18, 2024

Description

Add auto-suggestions for skipping index definition and export types

Issues Resolved

  1. Generate suggestions for skipping index
  2. Check plugin status to show open in workbench button
  3. Export CacheManager for usage in query workbench

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Mar 18, 2024

Codecov Report

Attention: Patch coverage is 59.77011% with 35 lines in your changes are missing coverage. Please review.

Project coverage is 57.86%. Comparing base (6f75c96) to head (a580089).

Files Patch % Lines
.../visual_editors/skipping_index/generate_fields.tsx 46.15% 21 Missing ⚠️
...rations_flyout/selectors/preview_sql_defintion.tsx 69.23% 8 Missing ⚠️
..._editors/skipping_index/skipping_index_builder.tsx 33.33% 3 Missing and 1 partial ⚠️
...accelerations_flyout/selectors/source_selector.tsx 60.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1552      +/-   ##
==========================================
+ Coverage   57.83%   57.86%   +0.02%     
==========================================
  Files         366      367       +1     
  Lines       13666    13734      +68     
  Branches     3573     3595      +22     
==========================================
+ Hits         7904     7947      +43     
- Misses       5700     5723      +23     
- Partials       62       64       +2     
Flag Coverage Δ
dashboards-observability 57.86% <59.77%> (+0.02%) ⬆️

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.

@ps48 ps48 force-pushed the auto_skipping_index branch from 2274d7c to f1aef4f Compare March 19, 2024 15:30
@ps48 ps48 marked this pull request as ready for review March 19, 2024 15:30
return;
}
setSQLcode(accelerationQueryBuilder(accelerationFormData));
setIsPreviewStale(false);
setIsPreviewTriggered(true);
};

const checkIfSQLWorkbenchPluginIsInstalled = () => {
fetch('../api/status', {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not be http.get?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not fetching from a route rather using dashboards status API.

@mengweieric
Copy link
Collaborator

please resolve conflicts.

headers: {
'Content-Type': 'application/json',
'osd-xsrf': 'true',
'accept-language': 'en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,zh-TW;q=0.6',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just for my knowledge why do we need this in the header, isn't this for the .i18nrc?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a header added to request to accept responses in different languages

ps48 added 4 commits March 19, 2024 11:47
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
@ps48 ps48 force-pushed the auto_skipping_index branch from f1aef4f to a580089 Compare March 19, 2024 18:48
@ps48 ps48 merged commit 6dfafbd into opensearch-project:main Mar 19, 2024
15 of 20 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 19, 2024
…1552)

* add generate modal and status check for workbench

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* remove debug logs

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* expose types for cachemanager

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* rebase changes

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

---------

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
(cherry picked from commit 6dfafbd)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ps48 added a commit that referenced this pull request Mar 19, 2024
…1552) (#1569)

* add generate modal and status check for workbench



* remove debug logs



* expose types for cachemanager



* rebase changes



---------


(cherry picked from commit 6dfafbd)

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
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>
Co-authored-by: Shenoy Pratik <sgguruda@amazon.com>
amsiglan pushed a commit to amsiglan/dashboards-observability that referenced this pull request Jun 7, 2024
…pensearch-project#1552) (opensearch-project#1569)

* add generate modal and status check for workbench

* remove debug logs

* expose types for cachemanager

* rebase changes

---------

(cherry picked from commit 6dfafbd)

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
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>
Co-authored-by: Shenoy Pratik <sgguruda@amazon.com>
(cherry picked from commit dc0245f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants