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

[Dashboard bug] Slice doesn't always show loading icon when loading #3834

Merged
merged 2 commits into from
Nov 14, 2017

Conversation

graceguo-supercat
Copy link

@coveralls
Copy link

coveralls commented Nov 11, 2017

Coverage Status

Coverage remained the same at 71.457% when pulling 284f5f517a7226f71f94b89853744bf169655735 on graceguo-supercat:gg-LoadingCSS into 591e5ec on apache:master.

@@ -146,7 +146,7 @@ class Chart extends React.PureComponent {
}

render() {
const isLoading = this.props.chartStatus === 'loading';
const isLoading = [undefined, 'loading'].indexOf(this.props.chartStatus) !== -1;
Copy link
Member

Choose a reason for hiding this comment

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

I feel like this should either be a defaultProps or handled by the parent. @michellethomas what do you think?

Copy link
Author

Choose a reason for hiding this comment

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

this isLoading logic is to show component when fetching query data.
I remember you mentioned want to keep loading related logic inside Chart:
ab59c4c

Copy link
Member

Choose a reason for hiding this comment

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

I just meant that we souldn't have and handle an undefined state. My impression is that there should be a defined chartStatus from the moment the component is created. I'd have to look at the code upstream, but maybe it's a matter of having loading set when creating the chart object.

I do think that the load image should be shown inside the Chart component though as it is now.

Copy link
Author

Choose a reason for hiding this comment

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

now i understand. fixed in the initial Chart state.

@michellethomas
Copy link
Contributor

lgtm

@graceguo-supercat graceguo-supercat merged commit eb5d220 into apache:master Nov 14, 2017
@graceguo-supercat graceguo-supercat deleted the gg-LoadingCSS branch November 14, 2017 04:52
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.21.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.21.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants