feat: add bulk delete action to section list toolbar [DHIS2-22045] - #1031
Merged
Merged
Conversation
✅ Deploy Preview for dhis2-maintenance-app-beta ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Adds a "Delete" button to the multi-selection toolbar. When clicked, a
confirmation dialog fires one DELETE /api/{resource}/{id} request per
selected model via Promise.all.
Bulk delete is enabled by default for every schema section. A section can
opt out by setting `bulkDeletable: false` in its definition.
Detailed handling of partial failures is deferred to DHIS2-22045; for now
a single rejected request rejects the whole operation and a generic
critical alert is shown.
Chisomchima
force-pushed
the
feat/bulk-delete
branch
from
September 3, 2026 21:02
9c021e5 to
b330b9a
Compare
tomzemp
reviewed
Sep 14, 2026
tomzemp
left a comment
Member
There was a problem hiding this comment.
Looks good. I've added a few comments/questions
- Remove unused useCanBulkDeleteModelInCurrentSection hook and inline the bulk-deletable check using a cannotBulkDelete section flag instead of a dedicated isSectionBulkDeletable helper. - Scope the delete-success query invalidation to the affected schema's queries instead of invalidating all queries.
|
tomzemp
approved these changes
Sep 15, 2026
dhis2-bot
added a commit
that referenced
this pull request
Sep 15, 2026
# [0.179.0](v0.178.0...v0.179.0) (2026-09-15) ### Features * add bulk delete action to section list toolbar [DHIS2-22045] ([#1031](#1031)) ([bf07fc9](bf07fc9))
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.



No description provided.