Closed browniebroke closed 5 months ago
Attention: 24 lines
in your changes are missing coverage. Please review.
Comparison is base (
e90019f
) 93.63% compared to head (cc31ccc
) 91.72%.
Files | Patch % | Lines |
---|---|---|
...ocial_django/migrations/0013_migrate_extra_data.py | 7.69% | 24 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
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.
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 use
RunPython.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 creating the 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.