Skip to content

don't include drafts and revisions in the deletion blocker reference count - #609

Merged
brandonkelly merged 5 commits into
5.xfrom
bugfix/600-deletion-blocker-references-count
Aug 10, 2026
Merged

don't include drafts and revisions in the deletion blocker reference count#609
brandonkelly merged 5 commits into
5.xfrom
bugfix/600-deletion-blocker-references-count

Conversation

@i-just

@i-just i-just commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Description

Element revisions were counted towards existing references for deletion blockers.
With “native” references (e.g. an entry that’s selected as part of the Link or Entries field), the drafts and revisions are not counted towards references shown by the deletion blocker.

Fix: don’t include drafts and revisions in the reference count.

Related issues

#600

@i-just

i-just commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

@brandonkelly, I’m assuming it’s intentional that we store the references for element drafts and revisions? (If not, further work will be needed here.)

@brandonkelly

Copy link
Copy Markdown
Member

Yeah it’s intentional that we store all references for all elements. But that doesn’t mean we have to factor it in.

@brandonkelly
brandonkelly marked this pull request as ready for review August 10, 2026 16:43
@brandonkelly
brandonkelly self-requested a review as a code owner August 10, 2026 16:43
@brandonkelly
brandonkelly merged commit 4783091 into 5.x Aug 10, 2026
5 checks passed
@brandonkelly
brandonkelly deleted the bugfix/600-deletion-blocker-references-count branch August 10, 2026 16:46
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