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

[annotations] Fixing migration for annotation layers #4187

Conversation

john-bodley
Copy link
Member

This PR resolves an issue with the annotation layer migration which @graceguo-supercat noticed during testing where the value field should actually be the layer ID. This also provides a one-to-one mapping between upgrade and downgrade, and thus for completeness I added a downgrade method.

I tested this locally on a toy slice containing a single annotation layer, confirming that the corresponding record was correct after running superset db upgrade and superset db downgrade.

Note given there's a downgrade method the check to inspect the type of the layer in the slice is no longer necessary. This was needed if someone previously ran,

superset db upgrade
superset db downgrade
superset db upgrade

to: @fabianmenges @graceguo-supercat @michellethomas
cc: @mistercrunch

@michellethomas
Copy link
Contributor

lgtm

@fabianmenges
Copy link
Contributor

Uh... That's embarrassing, thanks for fixing!

@mistercrunch mistercrunch merged commit 0cb7c5e into apache:master Jan 10, 2018
@john-bodley john-bodley deleted the john-bodley-fix-annotation-layers-migration branch January 19, 2018 01:28
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.23.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.23.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants