Skip to content

feat: delete error details modal - #1039

Open
Chisomchima wants to merge 4 commits into
masterfrom
feat/delete-error-details-modal
Open

Chisomchima wants to merge 4 commits into
masterfrom
feat/delete-error-details-modal

Conversation

@Chisomchima

Copy link
Copy Markdown
Member

…e batch [DHIS2-22046]

Bulk delete used Promise.all, so a single failed item rejected the
whole batch and the caller couldn't tell which items actually
succeeded. Switch to Promise.allSettled and resolve with a per-id
fulfilled/rejected result, normalizing failures through the existing
parseErrorResponse helper.
…S2-22046]

When some (or all) selected items fail to delete, show a modal
summarizing how many items failed, with an expandable, scrollable
list of the failed items. Expanding an item shows its structured
error messages, or the raw backend error as a fallback when no
structured errorReports are available.

The confirmation dialog now defers cache invalidation and clearing
the selection until the error dialog is closed, since clearing the
selection immediately would unmount the selection toolbar (and this
dialog along with it) before the user ever sees the error.
…rrors

The schema only accepted responseType "ObjectReportWebMessageResponse"
(the OpenAPI spec name), but the API actually returns "ObjectReport"
for object delete/save conflicts (e.g. E4030 association errors).
That mismatch made webMessageSchema parsing fail entirely, so
parseErrorResponse silently fell back to the generic top-level
message instead of the specific errorReports message.
@netlify

netlify Bot commented Sep 17, 2026

Copy link
Copy Markdown

Deploy Preview for dhis2-maintenance-app-beta ready!

Name Link
🔨 Latest commit ddbf3e2
🔍 Latest deploy log https://app.netlify.com/projects/dhis2-maintenance-app-beta/deploys/6aabbb96378d430009bd4056
😎 Deploy Preview https://deploy-preview-1039.maintenance-app-beta.netlify.dhis2.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@Chisomchima Chisomchima changed the title Feat/delete error details modal feat: delete error details modal Sep 17, 2026
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 New issue
1 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

1 participant