-
Notifications
You must be signed in to change notification settings - Fork 33
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
Conversation
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 Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
@@ -37,6 +37,8 @@ interface SQLPageProps { | |||
sqlTranslations: ResponseDetail<TranslateResult>[]; | |||
selectedDatasource: EuiComboBoxOptionOption[]; | |||
asyncLoading: boolean; | |||
openAccelerationFlyout: boolean; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
openAccelerationFlyout={ | ||
this.props.isAccelerationFlyoutOpen && !this.state.isAccelerationFlyoutOpened |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
* 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>
* 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>
) * 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>
) * 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>
…pensearch-project#159) (opensearch-project#161)" This reverts commit 88970fb. Signed-off-by: Eric <menwe@amazon.com>
Description
Issues Resolved
#127
Depends on opensearch-project/opensearch-spark#73
Check List
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.