-
-
Notifications
You must be signed in to change notification settings - Fork 380
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
fix: make migration 0013 reversible #533
fix: make migration 0013 reversible #533
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #533 +/- ##
==========================================
- Coverage 93.63% 91.72% -1.92%
==========================================
Files 39 39
Lines 1147 1172 +25
Branches 138 144 +6
==========================================
+ Hits 1074 1075 +1
- Misses 48 72 +24
Partials 25 25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
How is noop better here than failing? It just hides the fact that the data are not migrated during the reverse migration, what could lead to data loss. |
What kind of data loss are we talking about? |
Ah I see, we have the data being moved over from an old field to a new field. I get the problem you're raising now. |
7a0f16b
to
cc31ccc
Compare
Merged, thanks for your contribution! |
Proposed changes
As mentioned #495, the migration isn't reversible.
I don't think we want to change anything in the backwards operation, so we might be enough to useRunPython.noop
.Write a function to set the old fields from the
_new
JSON fields.Types of changes
Please check the type of change your PR introduces:
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creatingthe PR. If you're unsure about any of them, don't hesitate to ask. We're here to
help! This is simply a reminder of what we are going to look for before merging
your code.
Other information
Any other information that is important to this PR such as screenshots of how
the component looks before and after the change.