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

Migrate dashboard positions data from v1 to v2 format #5463

Merged

Conversation

graceguo-supercat
Copy link

@graceguo-supercat graceguo-supercat commented Jul 22, 2018

This PR blocks #5418.

This work was implemented in frontend js, we show dashboard v2 in preview mode, but not save the converted format to dashboard table.
Here we provide automatic migration script, to convert all not converted dashboard position_json data from V1 array to V2 nested layout.

js code is here:
https://github.com/apache/incubator-superset/blob/master/superset/assets/src/dashboard/util/dashboardLayoutConverter.js

@john-bodley @mistercrunch @timifasubaa @michellethomas @williaster

@codecov-io
Copy link

codecov-io commented Jul 22, 2018

Codecov Report

Merging #5463 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5463   +/-   ##
=======================================
  Coverage   59.11%   59.11%           
=======================================
  Files         372      372           
  Lines       23751    23751           
  Branches     2758     2758           
=======================================
  Hits        14041    14041           
  Misses       9695     9695           
  Partials       15       15

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 bfcc3a6...06ff600. Read the comment docs.

@graceguo-supercat graceguo-supercat force-pushed the gg-MigrateV1Dashboard branch 2 times, most recently from 9ae941c to b37a3ab Compare July 23, 2018 06:34
@williaster
Copy link
Contributor

this lgtm for the conversion, could one of @mistercrunch @john-bodley @michellethomas or @timifasubaa PTAL at the python / migration specifics?

@mistercrunch
Copy link
Member

I'd recommend adding a note in UPDATING.md about taking a database backup prior to this upgrade. I'm guessing it's the only way people could go back to a previous state.

@graceguo-supercat graceguo-supercat force-pushed the gg-MigrateV1Dashboard branch 2 times, most recently from 812f692 to c893de6 Compare July 23, 2018 18:19
Copy link
Contributor

@williaster williaster left a comment

Choose a reason for hiding this comment

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

sounds like this all executed successfully in staging with @john-bodley 's migration fix in, so approving this one too 🔥

@graceguo-supercat graceguo-supercat merged commit fd2d4b0 into apache:master Jul 24, 2018
graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this pull request Jul 26, 2018
* Migrate dashboard positions data from v1 to v2 format

* UPDATING.md

* rebase onto master

(cherry picked from commit fd2d4b0)
@graceguo-supercat graceguo-supercat deleted the gg-MigrateV1Dashboard branch August 6, 2018 23:35
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* Migrate dashboard positions data from v1 to v2 format

* UPDATING.md

* rebase onto master
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.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 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants