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

Query the new chart data api for charts that support it #9710

Merged
merged 16 commits into from
May 7, 2020

Conversation

suddjian
Copy link
Member

@suddjian suddjian commented May 1, 2020

CATEGORY

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

SUMMARY

Charts with the metadata value useLegacyApi set to false will now query the new api endpoint. This is demonstrated with the word cloud plugin, which has been upgraded to the non-legacy version.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

I've added a test for the api query, and verified both the new word cloud and a few of the legacy chart types in Explore. Still verifying that charts work correctly in Dashboards. You're encouraged to try out the branch.

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

@codecov-io
Copy link

codecov-io commented May 6, 2020

Codecov Report

Merging #9710 into master will decrease coverage by 4.76%.
The diff coverage is 88.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9710      +/-   ##
==========================================
- Coverage   70.78%   66.02%   -4.77%     
==========================================
  Files         586      586              
  Lines       30434    30445      +11     
  Branches     3117     3121       +4     
==========================================
- Hits        21544    20101    -1443     
- Misses       8776    10160    +1384     
- Partials      114      184      +70     
Flag Coverage Δ
#cypress ?
#javascript 59.06% <88.00%> (+0.04%) ⬆️
#python 70.93% <ø> (ø)
Impacted Files Coverage Δ
...c/visualizations/FilterBox/FilterBoxChartPlugin.js 0.00% <ø> (-100.00%) ⬇️
...-frontend/src/visualizations/presets/MainPreset.js 0.00% <ø> (-100.00%) ⬇️
superset-frontend/src/chart/chartAction.js 49.07% <88.00%> (-7.22%) ⬇️
superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/SqlLab/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/setup/setupColors.js 0.00% <0.00%> (-100.00%) ⬇️
... and 138 more

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 52de32b...acd2914. Read the comment docs.

@suddjian suddjian marked this pull request as ready for review May 7, 2020 04:55
@@ -84,7 +84,7 @@
"@superset-ui/legacy-plugin-chart-sunburst": "^0.13.5",
"@superset-ui/legacy-plugin-chart-table": "^0.13.5",
"@superset-ui/legacy-plugin-chart-treemap": "^0.13.3",
"@superset-ui/legacy-plugin-chart-world-map": "^0.13.3",
"@superset-ui/legacy-plugin-chart-world-map": "^0.13.6",
Copy link
Member

Choose a reason for hiding this comment

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

We also need to bump @superset-ui/plugin-chart-word-cloud to 0.13.5

Copy link
Member

Choose a reason for hiding this comment

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

I went ahead and did this :)

Copy link
Member

Choose a reason for hiding this comment

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

Hope that's not a faux pas

Copy link
Member

Choose a reason for hiding this comment

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

Oops, I meant so say 0.13.6

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

🎉

Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

LGTM!

@rusackas rusackas merged commit 80f8349 into apache:master May 7, 2020
@mistercrunch mistercrunch added the 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels label Feb 28, 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 size/L 🚢 0.37.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants