10000 fix: remove `copy_to_public` from page and page content extensions by fsbraun · Pull Request #7604 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

fix: remove copy_to_public from page and page content extensions #7604

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

Merged
merged 5 commits into from
Aug 4, 2023

Conversation

fsbraun
Copy link
Member
@fsbraun fsbraun commented Jul 9, 2023

Description

As indicated in django-cms/djangocms-versioning#342 ExtensionBase(base class for both PageExtension and PageContentExtension) still has a copy_to_public method.

This PR removes it from the model and adjusts the signatures of affected private methods accordingly.

It thereby removes a remnant of the version 3 draft/public predecessor of v4's versioning.

The removed lines of code were not covered by tests. The remaining lines are.

This PR breaks third-party code that use copy_to_public themselves. This is a feature in my opinion since it uncovers the third-parties interference with publishing which will not work in v4.

Related resources

Checklist

  • I have opened this pull request against develop-4
  • I have added or modified the tests when changing logic
  • I have followed the conventional commits guidelines to add meaningful information into the changelog
  • I have read the contribution guidelines and I have joined #workgroup-pr-review on Slack to find a “pr review buddy” who is going to review my pull request.

@fsbraun fsbraun requested review from marksweb and Aiky30 July 9, 2023 21:03
@fsbraun fsbraun added the 4.1 label Jul 9, 2023
Copy link
Member
@marksweb marksweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good

@fsbraun fsbraun merged commit 81ad858 into django-cms:develop-4 Aug 4, 2023
@fsbraun fsbraun deleted the fix/remove_copy_to_public branch August 4, 2023 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0