Skip to content

Bugfix/14960 nested elements gc#14967

Merged
brandonkelly merged 6 commits into5.xfrom
bugfix/14960-nested-elements-gc
May 13, 2024
Merged

Bugfix/14960 nested elements gc#14967
brandonkelly merged 6 commits into5.xfrom
bugfix/14960-nested-elements-gc

Conversation

@i-just
Copy link
Copy Markdown
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