Skip to content
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

Bugfix/14960 nested elements gc #14967

Merged
merged 6 commits into from
May 13, 2024
Merged

Conversation

i-just
Copy link
Contributor

@i-just i-just commented May 9, 2024

Description

During Garbage Collection, don’t delete soft-deleted nested elements which are part of a revision. Those should be garbage collected once the revision is no longer there.

We do this in 2 passes. The first pass works like it previously did - hard-deletes block elements that are not nested (owned) and that don’t have any revisions. The second pass hard-deletes any block elements that don’t have any revisions, including nested ones.

Related issues

craftcms/ckeditor#227

@i-just i-just requested a review from brandonkelly May 9, 2024 13:10
@brandonkelly brandonkelly merged commit bd1025e into 5.x May 13, 2024
@brandonkelly brandonkelly deleted the bugfix/14960-nested-elements-gc branch May 13, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants