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/gc amends for block elements and revisions #14995

Merged
merged 5 commits into from
May 21, 2024

Conversation

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

None yet

2 participants