Repository navigation
fix(content-releases): deleting a non-localized entry leaves it in its releases - #28023
Merged
kibwashere merged 2 commits intoOct 14, 2026
Merged
Conversation
Contributor
AI-generated QA checklistScope / Impact
Manual QA
Edge Cases
Test Setup
Possible QA Automation
Assumptions / Gaps
QA ResolutionAdd |
valfur03
approved these changes
Oct 12, 2026
| @@ -82,7 +106,7 @@ const deleteActionsOnDelete: Middleware = async (ctx, next) => { | |||
| deleteActionsAndUpdateReleaseStatus({ | |||
Contributor
There was a problem hiding this comment.
Heads up that this line, which existed before, is not awaited, so a crash inside could (maybe?) crash the whole process.
Member
Author
There was a problem hiding this comment.
true point! another open bug PR is solving it so I'll rebase as soon as it's merged 🫡
Contributor
There was a problem hiding this comment.
I just thought again about this, it might not be awaited on purpose (to make the request resolve faster), but if that's the case, it could be worth to simply add a .catch(…). I didn't see the PR so I replied here 😅
butcherZ
approved these changes
Oct 13, 2026
butcherZ
left a comment
Member
There was a problem hiding this comment.
QAed manually, all good! thank you for taking care of this, great work :D
kibwashere
force-pushed
the
fix/ee-254-delete-release-actions-non-localized
branch
from
October 13, 2026 15:39
bd09d64 to
286f1d0
Compare
kibwashere
force-pushed
the
fix/ee-254-delete-release-actions-non-localized
branch
from
October 14, 2026 12:32
286f1d0 to
d98432a
Compare
kibwashere
deleted the
fix/ee-254-delete-release-actions-non-localized
branch
October 14, 2026 13:31
innerdvations
added a commit
to irontaek/strapi
that referenced
this pull request
Oct 15, 2026
Keep the locale filter from strapi#28023 and await release-action cleanup so status failures are logged instead of becoming unhandled rejections.
Merged
nclsndr
added a commit
that referenced
this pull request
Nov 4, 2026
Deleting an entry removed its actions from every release, including released ones, then recomputed their status. A done release could turn empty or ready. #28023 widened this to every non-localized type. Scope the release lookup and the action delete to releases with releasedAt null, in the document middleware and the lifecycle hook.
nclsndr
added a commit
that referenced
this pull request
Nov 6, 2026
Deleting an entry removed its actions from every release, including released ones, then recomputed their status. A done release could turn empty or ready. #28023 widened this to every non-localized type. Scope the release lookup and the action delete to releases with releasedAt null, in the document middleware and the lifecycle hook.
nclsndr
added a commit
that referenced
this pull request
Nov 6, 2026
…28169) Deleting an entry removed its actions from every release, including released ones, then recomputed their status. A done release could turn empty or ready. #28023 widened this to every non-localized type. Scope the release lookup and the action delete to releases with releasedAt null, in the document middleware and the lifecycle hook.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does it do?
Atm, when you bulk delete an entry that is in a Release, then it persists in the UI of the Release - while it should disappear/make it empty. This PR is supposed to fix this.
Why is it needed?
Deleting entries of a non-localized content type with the bulk Delete action of the Content Manager list view leaves them in their releases: their release actions stay and point at documents that no longer exist. The release keeps counting them, and its status isn't recalculated (a release whose only entry was deleted stays Ready instead of Empty).
The list view sends the locale in the query string, while the
bulkDeletecontroller reads it from the request body, so the delete reaches the release middleware without a locale. The middleware then filtered the actions onlocale: undefined, which the query layer doesn't treat asIS NULL, so it matched none of them (non-localized actions are stored withlocale: null). Any delete through the API or the Document Service without a locale has the same issue, for localized content types too.Deleting from the edit view isn't affected: it sends
locale=*, which the middleware already handled.Ghost actions already in databases are left as they are: no migration. They're harmless on
develop(publishing ignores a missing document) and can be removed from the release page.How to test it?
I suggest you to create 2 apps to compare and test if the fix is working:
The setup
Settings > Releases: set a timezone.Settings > Internationalization: add a second language.Content Manager: open Tag (or any other content) and create three Tags (or three entries):Tag AandTag BandTag C. Save them as drafts.Releases > New Release: name itRelease 1, leave it unscheduled (untick the box), and create it.Content Manager > Tag: add the three tags toRelease 1(one by one).Releases > Release 1: it shows 3 entriesreadyThe bug #1 (🐛)
Content Manager > Tag: selectTag BandTag C(bulk select), and delete them together.Releases > Release 1: it still show 3 entries even (even after a refresh! that's the bug)publish..^It is only possible to reproduce on the non-fix branch (cf. screenshot).
The bug #2 (🐞)
Tag D, add it alone to a new releaseRelease 2(status Ready).Release 2and refresh:0 entries, statusEmpty^On the fix branch, otherwise it keeps showing
1 entry + ready(cf. screenshot).Note: a "regular" delete from the edit view is working well; the issue is only on the bulk delete side.