Skip to content

fix(ingestV2): secret deletion always removes last secret instead of …#17237

Open
Itsdarkhere wants to merge 1 commit intodatahub-project:masterfrom
Itsdarkhere:fix/secrets-list-deletes-wrong-secret
Open

fix(ingestV2): secret deletion always removes last secret instead of …#17237
Itsdarkhere wants to merge 1 commit intodatahub-project:masterfrom
Itsdarkhere:fix/secrets-list-deletes-wrong-secret

Conversation

@Itsdarkhere
Copy link
Copy Markdown

…selected

ConfirmationModal was rendered inside the per-row table column renderer, sharing a single boolean showConfirmDelete state. When any delete button was clicked all rows' modals opened simultaneously, and confirming always triggered the last row's handleConfirm closure, deleting the wrong secret. Fix tracks the pending-deletion URN in deletingSecretUrn: string | null and renders a single ConfirmationModal at the component root.

…selected

ConfirmationModal was rendered inside the per-row table column renderer,
sharing a single boolean `showConfirmDelete` state. When any delete button
was clicked all rows' modals opened simultaneously, and confirming always
triggered the last row's handleConfirm closure, deleting the wrong secret.
Fix tracks the pending-deletion URN in `deletingSecretUrn: string | null`
and renders a single ConfirmationModal at the component root.
@github-actions github-actions Bot added product PR or Issue related to the DataHub UI/UX community-contribution PR or Issue raised by member(s) of DataHub Community labels Apr 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Linear: CAT-1924

Thanks for your contribution! We have created an internal ticket to track this PR. A member of the core DataHub team will be assigned to review it within the next few business days - you will get a follow-up comment once a reviewer is assigned.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sgomezvillamor
Copy link
Copy Markdown
Contributor

indeed, deleting wrong secrets is concerning 😅
@chriscollins3456 would you be available to review this one?

@maggiehays maggiehays added the pending-submitter-response Issue/request has been reviewed but requires a response from the submitter label Apr 29, 2026
Copy link
Copy Markdown
Contributor

@sakethvarma397 sakethvarma397 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already fixed in the cloud version, and it seems like it's not added here. To avoid conflicts, it's better that we back port those changes instead of merging this commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution PR or Issue raised by member(s) of DataHub Community pending-submitter-response Issue/request has been reviewed but requires a response from the submitter product PR or Issue related to the DataHub UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants