-
Notifications
You must be signed in to change notification settings - Fork 33
chore: Remove deprecated django CMS references #465
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
Reviewer's GuideThis PR removes deprecated django CMS 4.x menu integration by gating the versioned CMS menu implementation and registration behind an ENABLE_MENU_REGISTRATION flag, updates tests to remove legacy assertions and relax status code checks, and updates setup.py classifiers to include support for Django CMS 4.1 and 5.0. Sequence Diagram: Conditional Menu Registration LogicsequenceDiagram
participant AppInit as "Application Initialization"
participant conf as "djangocms_versioning.conf"
participant menu_pool as "menus.menu_pool"
participant OriginalCMSMenu_Class as "OriginalCMSMenu (Class Name)"
participant CMSMenu_Versioned_Class as "CMSMenu (Versioned Class from djangocms_versioning)"
AppInit->>conf: Check value of ENABLE_MENU_REGISTRATION
alt conf.ENABLE_MENU_REGISTRATION is True
AppInit->>menu_pool: menus.pop(OriginalCMSMenu.__name__)
AppInit->>menu_pool: register_menu(CMSMenu_Versioned_Class)
Note over menu_pool: Versioned CMSMenu from djangocms_versioning is active
else conf.ENABLE_MENU_REGISTRATION is False
Note over AppInit, menu_pool: OriginalCMSMenu (from django CMS core) remains active.
Note over AppInit, menu_pool: No changes to menu_pool by djangocms_versioning's cms_menus.py.
end
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #465 +/- ##
==========================================
+ Coverage 90.55% 93.67% +3.11%
==========================================
Files 72 75 +3
Lines 2732 2671 -61
Branches 322 0 -322
==========================================
+ Hits 2474 2502 +28
+ Misses 182 169 -13
+ Partials 76 0 -76 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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 @fsbraun - 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.
Description
This PR stops loading the versioned django CMS menu which only is needed for django CMS 4.0. It will not work with django CMS 5.1 due to use of deprecated django CMS references.
Related resources
Checklist
master
Slack to find a “pr review buddy” who is going to review my pull request.
Summary by Sourcery
Gate the legacy django CMS menu integration behind a feature flag to prevent loading deprecated references by default, update supported framework classifiers, and adjust tests to match the new registration behavior.
Enhancements:
Build:
Tests: