Skip to content

feat: use new API endpoint to build CSV reports#15830

Merged
betodealmeida merged 2 commits into
apache:masterfrom
betodealmeida:reports_use_v1_api_csv
Jul 22, 2021
Merged

feat: use new API endpoint to build CSV reports#15830
betodealmeida merged 2 commits into
apache:masterfrom
betodealmeida:reports_use_v1_api_csv

Conversation

@betodealmeida
Copy link
Copy Markdown
Member

SUMMARY

This PR changes the reports executor to use the new CSV endpoint introduced in #15827. This allows us to produce CSV reports from visualization types not defined in viz.py, like pie charts and the new pivot table.

Before the executor was using the explore_json endpoint, which is not supported for the new visualization types.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screenshot 2021-07-21 at 17-10-19  DEV  Superset

Screenshot 2021-07-21 at 17-09-09  Report  Test new CSV endpoint Pivot Table v2 - ralmeida gmail com - Gmail

Screenshot 2021-07-21 at 17-09-45  Report  Test new CSV endpoint Pivot Table v2 - ralmeida gmail com - Gmail

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Copy link
Copy Markdown
Member

@eschutho eschutho left a comment

Choose a reason for hiding this comment

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

awesome!

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 22, 2021

Codecov Report

Merging #15830 (4ad157e) into master (f104fba) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #15830   +/-   ##
=======================================
  Coverage   76.90%   76.90%           
=======================================
  Files         984      984           
  Lines       51705    51705           
  Branches     6995     6995           
=======================================
  Hits        39764    39764           
  Misses      11717    11717           
  Partials      224      224           
Flag Coverage Δ
mysql 81.53% <ø> (ø)
postgres 81.56% <ø> (ø)
python 81.65% <ø> (ø)
sqlite 81.19% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/reports/commands/execute.py 92.88% <ø> (ø)

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 f104fba...4ad157e. Read the comment docs.

@betodealmeida betodealmeida merged commit f6fe29d into apache:master Jul 22, 2021
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
* feat: add `GET /api/v1/chart/{chart_id}/data/?format{format}` API

* feat: use new API endpoint to build CSV reports
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
* feat: add `GET /api/v1/chart/{chart_id}/data/?format{format}` API

* feat: use new API endpoint to build CSV reports
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* feat: add `GET /api/v1/chart/{chart_id}/data/?format{format}` API

* feat: use new API endpoint to build CSV reports
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 First shipped in 1.3.0 labels Mar 13, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
* feat: add `GET /api/v1/chart/{chart_id}/data/?format{format}` API

* feat: use new API endpoint to build CSV reports
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 🚢 1.3.0 First shipped in 1.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants