-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
chore: Backport the delete translations fix for #8111 to django CMS 4.1 #8112
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
chore: Backport the delete translations fix for #8111 to django CMS 4.1 #8112
Conversation
…e page/language combination
Reviewer's Guide by SourceryThis PR backports a fix from #8111 to the django CMS 4.1 branch. The fix ensures that when a language is deleted for a page, all of the page's content objects for that language are also deleted. It also updates the objects passed to the Sequence diagram for improved page language deletion processsequenceDiagram
actor Admin
participant PA as PageAdmin
participant PC as PageContent
participant PU as PageURL
participant P as Plugins
Admin->>PA: Delete page language
PA->>PC: Get all page contents for language
PA->>PA: Get deleted objects list
alt Deletion confirmed
PA->>PU: Delete page URL
PA->>PC: Delete all page contents
PA->>P: Delete associated plugins
end
Class diagram showing the relationship between Page and PageContentclassDiagram
class Page {
+urls
+node
}
class PageContent {
+page
+language
}
class PageURL {
+language
}
Page "1" -- "*" PageContent : has
Page "1" -- "*" PageURL : has
note for PageContent "Multiple contents per language are now properly handled during deletion"
File-Level Changes
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 @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 backports parts of #8111:
Related resources
Checklist
develop-4
Summary by Sourcery
Delete all page content objects for a given language when deleting a page content object.
Bug Fixes:
Chores: