-
Notifications
You must be signed in to change notification settings - Fork 1k
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(Approval Workflows): Workflows keep approval history after deletion #2834
fix(Approval Workflows): Workflows keep approval history after deletion #2834
Conversation
e00628d
to
27721cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments, testing on my end now
backend/src/ee/services/access-approval-request/access-approval-request-dal.ts
Show resolved
Hide resolved
backend/src/ee/services/access-approval-request/access-approval-request-service.ts
Show resolved
Hide resolved
backend/src/ee/services/secret-approval-policy/secret-approval-policy-dal.ts
Outdated
Show resolved
Hide resolved
backend/src/ee/services/secret-approval-policy/secret-approval-policy-service.ts
Show resolved
Hide resolved
When an access request policy is deleted, existing access requests remain active. I think we should be deleting additional privileges associated to requests that are owned by the policy that gets deleted. |
we do this in deleteAccessApprovalPolicy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, lets thoroughly test this in Gamma
Description 📣
Before:
When you delete an approval workflow, all related requests were also deleted. This can be an issue for auditing and logging purposes
Before.mp4
Now:
When you delete a workflow; the following happens:
deletedAt
date setType ✨
Tests 🛠️
Tested manually as per videos above