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

Fixing error when clearing big number metric #6465

Merged

Conversation

michellethomas
Copy link
Contributor

@michellethomas michellethomas commented Nov 30, 2018

Fixes the error we were seeing when clearing the metric on big number. transformProps gets run every time the chart or chart controls changes, so when you clear a metric, instead of showing the overlay, we'll show NaN until the user selects a new metric. I'll create a separate issue so that moving forward we can handle this case better (and possibly move this logic out of transformProps).

Fixes #6447

Tested big number with:
Saved metric
Adhoc metric
Cleared metric and added new

@kristw @graceguo-supercat

@kristw kristw added !deprecated-label:bug Deprecated label - Use #bug instead easy-review labels Nov 30, 2018
@michellethomas michellethomas merged commit 5261d8a into apache:master Nov 30, 2018
@michellethomas michellethomas deleted the fix_big_number_clearing_metric branch November 30, 2018 02:52
@kristw kristw added v0.30 and removed reviewable labels Nov 30, 2018
@kristw kristw added this to Done in Embeddable Charts Dec 1, 2018
bipinsoniguavus pushed a commit to ThalesGroup/incubator-superset that referenced this pull request Dec 26, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.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 !deprecated-label:bug Deprecated label - Use #bug instead v0.30 🚢 0.34.0
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Clearing a metric in big number and adding a new one generates errors and a blank chart
3 participants