Skip to content

feat: add affordances for new export functionality - #11373

Merged
betodealmeida merged 1 commit into
apache:SO-1002from
betodealmeida:SO-1097
Oct 26, 2020
Merged

betodealmeida merged 1 commit into
apache:SO-1002from
betodealmeida:SO-1097

Conversation

@betodealmeida

@betodealmeida betodealmeida commented Oct 21, 2020 •

Copy link
Copy Markdown
Member

SUMMARY

This PR adds the new export functionality (#11167) to the frontend, behind the feature flag VERSIONED_EXPORT. When the flag is enabled (disabled by default):

  • The dataset export will return the new format (ZIP with multiple YAML files).
  • The dashboard export will return the new format.
  • An option to export charts and databases is added, returning the new format.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Dashboard

No UI changes, since the affordances are already there.

Database

2020-10-21-175456_1438x123_scrot

I also reordered the icons in the database actions to be consistent with other pages.

Dataset

Single export action:

2020-10-21-175205_1440x144_scrot

Bulk export:

2020-10-21-175126_652x200_scrot

Chart

2020-10-21-175331_1428x146_scrot

Bulk export:

2020-10-21-174944_599x205_scrot

TEST PLAN

Tested all the exports manually.

ADDITIONAL INFORMATION

@codecov-io

codecov-io commented Oct 22, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #11373 into SO-1002 will decrease coverage by 6.78%.
The diff coverage is 42.30%.

Impacted file tree graph

@@             Coverage Diff             @@
##           SO-1002   #11373      +/-   ##
===========================================
- Coverage    65.91%   59.13%   -6.79%     
===========================================
  Files          842      804      -38     
  Lines        40015    38721    -1294     
  Branches      3652     3450     -202     
===========================================
- Hits         26377    22897    -3480     
- Misses       13537    15654    +2117     
- Partials       101      170      +69     
Flag Coverage Δ
#cypress 55.96% <26.82%> (-0.08%) ⬇️
#javascript ?
#python 60.84% <100.00%> (-0.34%) ⬇️

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

Impacted Files Coverage Δ
...tend/src/views/CRUD/data/database/DatabaseList.tsx 2.81% <0.00%> (-79.24%) ⬇️
...ontend/src/views/CRUD/data/dataset/DatasetList.tsx 1.75% <0.00%> (-71.42%) ⬇️
superset/charts/api.py 76.98% <ø> (ø)
superset/config.py 90.15% <ø> (ø)
superset/databases/api.py 87.73% <ø> (-2.84%) ⬇️
superset/views/database/views.py 87.43% <ø> (ø)
...perset-frontend/src/views/CRUD/chart/ChartList.tsx 69.49% <58.82%> (-12.91%) ⬇️
superset-frontend/src/featureFlags.ts 100.00% <100.00%> (ø)
superset/charts/commands/export.py 95.55% <100.00%> (+0.43%) ⬆️
superset/dashboards/commands/export.py 95.23% <100.00%> (+0.50%) ⬆️
... and 286 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 fb90e06...82f43c0. Read the comment docs.

@betodealmeida betodealmeida mentioned this pull request Oct 22, 2020
2 of 6 tasks
@betodealmeida
betodealmeida marked this pull request as ready for review October 22, 2020 00:56
@betodealmeida
betodealmeida merged commit 168bd6c into apache:SO-1002 Oct 26, 2020
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants