Skip to content

Bugfix/gc amends for block elements and revisions#14995

Merged
brandonkelly merged 5 commits into4.xfrom
bugfix/gc-amends-for-block-elements-and-revisions
May 21, 2024
Merged

Bugfix/gc amends for block elements and revisions#14995
brandonkelly merged 5 commits into4.xfrom
bugfix/gc-amends-for-block-elements-and-revisions

Conversation

@i-just
Copy link
Copy Markdown
Contributor

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

Description

Following a chat with Tommy, it turns out that v4 was also susceptible to block elements that are part of a revision being deleted with the garbage collection. This affected Matrix, Neo, and Super Table blocks.

This fix has two parts: the first commit ensures we don’t delete blocks that any soft-deleted block elements that are part of a revision are truly skipped. The second commit handles deleting structures in a way where we first check if the elements that are part of that structure are not part of a revision. This ensures the neo blocks that are part of a revision don’t get deleted via garbage collection.

The 2nd and 3rd commits can be merged into v5 too. Please LMK if a separate PR should be raised for v5.

Related issues

@i-just i-just requested a review from brandonkelly May 15, 2024 11:59
@brandonkelly brandonkelly merged commit 4f0d222 into 4.x May 21, 2024
@brandonkelly brandonkelly deleted the bugfix/gc-amends-for-block-elements-and-revisions branch May 21, 2024 04:08
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