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

[Bug] Resize should trigger chart re-render #4322

Merged

Conversation

graceguo-supercat
Copy link

@graceguo-supercat graceguo-supercat commented Feb 1, 2018

this is introduced by #4226. Added check for chartStatus == 'rendered'.

@williaster @michellethomas @timifasubaa @mistercrunch

Copy link
Contributor

@williaster williaster left a comment

Choose a reason for hiding this comment

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

one comment about possible constant improvement. but looks good to me, nice work adding tests 👍

@@ -87,7 +87,7 @@ class Chart extends React.PureComponent {
componentDidUpdate(prevProps) {
if (
this.props.queryResponse &&
this.props.chartStatus === 'success' &&
['success', 'rendered'].indexOf(this.props.chartStatus) > -1 &&
Copy link
Contributor

Choose a reason for hiding this comment

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

do you think we should make these CONSTANTS to make this less error-prone and ensure consistency between components?

@mistercrunch
Copy link
Member

I agree we should use enums for this type of things. I'm merging this since it's a high-visibility bug in master

@mistercrunch mistercrunch merged commit 133f98a into apache:master Feb 1, 2018
graceguo-supercat pushed a commit to airbnb/superset-fork that referenced this pull request Feb 1, 2018
@graceguo-supercat graceguo-supercat deleted the gg-FixChartRenderedState branch February 1, 2018 20:00
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.23.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.23.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants