Repository navigation
Replaced entity delete modal with hard delete modal - #29851
Conversation
🟡 Playwright Results — all passed (25 flaky)✅ 4413 passed · ❌ 0 failed · 🟡 25 flaky · ⏭️ 175 skipped
🟡 25 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
DeleteEntityModal had data-testid="delete-modal" on its outer element;
Domains.spec.ts (and other tests) rely on getByTestId('delete-modal')
to verify the confirmation dialog is open. DeleteModal was missing this
attribute, causing the playwright Domain tests to fail after the swap.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Code Review 👍 Approved with suggestions 4 resolved / 5 findingsReplaces optional delete modals with a direct hard-delete flow and shared helper utility. Ensure that removing the typed confirmation requirement does not lead to accidental permanent data loss. 💡 Edge Case: Permanent-delete confirmation now single-click, no typed confirmation📄 openmetadata-ui/src/main/resources/ui/src/components/common/DeleteModal/DeleteModal.tsx:79-90 The new shared ✅ 4 resolved✅ Quality: Delete handlers not wrapped in useCallback
✅ Quality: Hard-delete success/failure flows lack unit test coverage on pages
✅ Quality: Inconsistent/misleading confirmation copy for hard deletes
✅ Bug: deleteOptions/hardDeleteMessagePostFix ignored when allowSoftDelete=false
🤖 Prompt for agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |



Describe your changes:
Replaced the optional delete modal with the direct delete modal for entities that only support Permanent Delete.
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
UI screen recording / screenshots:
Not applicable.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.Greptile Summary
This PR replaces soft/hard delete choice modals with direct hard-delete confirmations for entities that only support permanent deletion. The main changes are:
Confidence Score: 5/5
This looks safe to merge.
Important Files Changed
Reviews (17): Last reviewed commit: "Added unit test" | Re-trigger Greptile
Context used (3)