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

Adjusting Create Acceleration Flyout Props #289

Closed
wants to merge 1 commit into from

Conversation

sejli
Copy link
Member

@sejli sejli commented Mar 20, 2024

Description

  • Corresponding PR for #1586
    • Props for renderCreateAccelerationFlyout should match what is updated in the above PR

Draft PR for some questions

Issues Resolved

N/A

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.

@@ -87,6 +87,7 @@ export interface CreateAccelerationForm {
}

export enum AsyncQueryStatus {
Copy link
Member Author

Choose a reason for hiding this comment

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

Is this state equivalent to DirectQueryLoadingStatus?

Copy link
Member

Choose a reason for hiding this comment

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

yes

Comment on lines 71 to +78
setAccelerationFlyout = () => {
this.renderCreateAccelerationFlyout(this.props.selectedDatasource[0].label);
const { loadStatus, startLoading, stopLoading } = catalogCacheRefs.useLoadTableColumnsToCache();
this.renderCreateAccelerationFlyout(
this.props.selectedDatasource[0].label,
loadStatus,
startLoading,
stopLoading
);
Copy link
Member Author

Choose a reason for hiding this comment

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

What is this function used for?
cc: @ps48 for more context

Copy link
Member

Choose a reason for hiding this comment

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

This is used for users coming from URL to see the acceleration flyout open.

] = createGetterSetter<
(
dataSource: string,
loadStatus: any,
Copy link
Member Author

Choose a reason for hiding this comment

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

How should DirectQueryLoadingStatus be brought over from dashboards-observability?

Copy link
Member

Choose a reason for hiding this comment

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

we can use AsyncQueryStatus

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.49%. Comparing base (d168db7) to head (1587571).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #289      +/-   ##
==========================================
+ Coverage   59.34%   59.49%   +0.14%     
==========================================
  Files          39       40       +1     
  Lines        1835     1844       +9     
  Branches      328      328              
==========================================
+ Hits         1089     1097       +8     
- Misses        633      634       +1     
  Partials      113      113              
Flag Coverage Δ
dashboards-query-workbench 59.49% <ø> (+0.14%) ⬆️

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.

return () => {
stopLoading();
};
}, []);
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing dependency.

(
dataSource: string,
loadStatus: any,
startLoading: (dataSourceName: string, databaseName?: string, tableName?: string) => void,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I saw there are repeated patterns not only in this PR where we have a same set of interfaces for functions and components but the interfaces are duplicated and redefined repeatedly, feel like we should define common interfaces and reuse them or leverage utility types for composing types and interfaces. It's ok for this PR and release but we should follow up on this later.

@sejli
Copy link
Member Author

sejli commented Mar 20, 2024

Fixing with #1598

@sejli sejli closed this Mar 20, 2024
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.

3 participants