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

Set disableErrorBoundary in SuperChart to fix chart error handling #8052

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

michellethomas
Copy link
Contributor

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

There's a bug where if you get a chart error, fix the controls, and hit "Run Query", the chart doesn't update and get rid of the error. I noticed this on the Time Series Table, if I switch from a line chart to time series table and try to add an item, a chart error appears before I update that control correctly, after it's fixed and I "run query" the chart does not update (the same error appears).

This fixes the issue with error handling, but we should have another PR that more gracefully handles the time series table errors.

TEST PLAN

Open a line chart, change visualization type to time series table
Add an item under "Time Series Columns"
See error in chart
Correctly fill in column configuration info in Time Series Column
Run Query (chart should show up correctly)

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

@graceguo-supercat @kristw @etr2460

@michellethomas michellethomas added the !deprecated-label:bug Deprecated label - Use #bug instead label Aug 15, 2019
@codecov-io
Copy link

codecov-io commented Aug 15, 2019

Codecov Report

Merging #8052 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8052      +/-   ##
==========================================
+ Coverage   65.56%   65.56%   +<.01%     
==========================================
  Files         469      469              
  Lines       22480    22482       +2     
  Branches     2442     2444       +2     
==========================================
+ Hits        14739    14741       +2     
  Misses       7621     7621              
  Partials      120      120
Impacted Files Coverage Δ
superset/assets/src/chart/ChartRenderer.jsx 8.06% <ø> (ø) ⬆️
...src/explore/components/controls/MetricsControl.jsx 80.13% <0%> (+0.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8773fdc...1bda484. Read the comment docs.

@kristw kristw merged commit ef1d4a6 into apache:master Aug 15, 2019
graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this pull request Aug 16, 2019
@villebro villebro added the v0.34 label Aug 31, 2019
@mistercrunch mistercrunch added 🍒 0.34.1 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.35.0 labels Feb 28, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 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 size/XS v0.34 🍒 0.34.1 🚢 0.35.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants