-
Notifications
You must be signed in to change notification settings - Fork 51
Fix data migration for already updated 5.0.0 package in djangoCMS 3.11 installations #184
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
Conversation
…0010 data migration if versioning is enabled in the config
Reviewer's GuideEnhanced the data migration to include an additional configuration flag check, preventing inconsistent migration states for installations of version 5.0.0 on djangoCMS 3.11. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @filipweidemann - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a start! Thank you. It does not solve the fundamental design problem, but allows to upgrade from django CMS 3 to django CMS 4+ if you do NOT enable versioning for snippets. Clearly, some use cases covered!
@filipweidemann Can you add a warning to the readme that one at the moment cannot enable versioning after running migrations, i.e. never when you upgrade from django CMS 3? Thank you! |
@fsbraun done. Hope this is okay, I am not the best with words :p |
Closed in favor of #185 |
Description
The content of this fix was done by @ms-18
The
0010_cms4_grouper_version_data_migration
migration caused errors when the installation of version5.0.0
was already performed on djangoCMS3.11
. In that case the migration state was inconsistent as the check inhttps://github.com/django-cms/djangocms-snippet/blob/master/src/djangocms_snippet/migrations/0010_cms4_grouper_version_data_migration.py:60
is missing the additional check if the config bool is set.Related resources
–
Checklist
master
Discord to find a “pr review buddy” who is
going to review my pull request.
Summary by Sourcery
Bug Fixes: