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

fix(api-headless-cms-bulk-actions): empty trash bin with synchronous process #4351

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

leopuleo
Copy link
Contributor

Changes

This PR addresses a bug that arose when emptying the trash bin for instances with many tenants.

Previously, the deletion process operated asynchronously. Each tenant/locale/model triggered a subtask to delete all entries in the specific model eligible for removal. This approach led to errors when dealing with instances that had many tenants.

With this update, we consolidate the deletion into a single task that iterates through all tenants, locales, and models, deleting the eligible entries synchronously.

How Has This Been Tested?

Manually

# Conflicts:
#	packages/api-headless-cms-bulk-actions/src/tasks/createEmptyTrashBinsTask.ts
#	packages/api-headless-cms-bulk-actions/src/types.ts
@leopuleo leopuleo added the cms label Oct 25, 2024
@leopuleo leopuleo added this to the 5.41.2 milestone Oct 25, 2024
@leopuleo leopuleo self-assigned this Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant