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 materlized views, manual refresh option and minor fixes #159

Merged
merged 5 commits into from
Oct 18, 2023

Conversation

ps48
Copy link
Member

@ps48 ps48 commented Oct 17, 2023

Description

  1. Add materialized view option
  2. remove fill from accelerate table button
  3. Add manual refresh option
  4. Update copy for data sources
  5. Fix redirection issue to acceleration flyout
  6. Update tests

Issues Resolved

#127
Depends on opensearch-project/opensearch-spark#73

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.

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

codecov bot commented Oct 17, 2023

Codecov Report

Merging #159 (9a34f6d) into main (8409ef7) will decrease coverage by 0.22%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #159      +/-   ##
==========================================
- Coverage   54.72%   54.51%   -0.22%     
==========================================
  Files          33       33              
  Lines        1365     1385      +20     
  Branches      216      220       +4     
==========================================
+ Hits          747      755       +8     
- Misses        537      546       +9     
- Partials       81       84       +3     
Flag Coverage Δ
dashboards-query-workbench 54.51% <ø> (-0.22%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 3 files with indirect coverage changes

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
@ps48 ps48 marked this pull request as ready for review October 18, 2023 18:17
@@ -37,6 +37,8 @@ interface SQLPageProps {
sqlTranslations: ResponseDetail<TranslateResult>[];
selectedDatasource: EuiComboBoxOptionOption[];
asyncLoading: boolean;
openAccelerationFlyout: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we change this to something like isAccelerationFlyoutOpen

Copy link
Member Author

Choose a reason for hiding this comment

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

isAccelerationFlyoutOpen doesn't make much sense as a name here. This prop dictates should be acceleration flyout be opened or not by the SQL page component.
ex:

if parent props sends value openAccelerationFlyout={true} -> the child component opens the flyout

Comment on lines +830 to +831
openAccelerationFlyout={
this.props.isAccelerationFlyoutOpen && !this.state.isAccelerationFlyoutOpened
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't quite get why these two booleans are used?

Copy link
Member Author

Choose a reason for hiding this comment

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

One is for the prop which dictates if URL has a datasource that needs to be open with acceleration flyout. The other is to keep a local state. We need the local state to make sure, the URL flyout only opens once.

@ps48 ps48 merged commit 43b085b into opensearch-project:main Oct 18, 2023
10 of 11 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 18, 2023
* enable materialized views, update acc btn fill

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

* update acceleration links

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

* add manual refresh option, update tests

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

* update copy for datasources

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

* fix redirection issue

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

---------

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
(cherry picked from commit 43b085b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 18, 2023
* enable materialized views, update acc btn fill

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

* update acceleration links

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

* add manual refresh option, update tests

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

* update copy for datasources

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

* fix redirection issue

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

---------

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
(cherry picked from commit 43b085b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ps48 pushed a commit that referenced this pull request Oct 18, 2023
)

* enable materialized views, update acc btn fill



* update acceleration links



* add manual refresh option, update tests



* update copy for datasources



* fix redirection issue



---------


(cherry picked from commit 43b085b)

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>
ps48 pushed a commit that referenced this pull request Oct 18, 2023
)

* enable materialized views, update acc btn fill



* update acceleration links



* add manual refresh option, update tests



* update copy for datasources



* fix redirection issue



---------


(cherry picked from commit 43b085b)

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>
mengweieric added a commit to mengweieric/dashboards-query-workbench that referenced this pull request Nov 13, 2023
mengweieric added a commit that referenced this pull request Nov 13, 2023
…159) (#161)" (#212)

This reverts commit 88970fb.

Signed-off-by: Eric <menwe@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants