-
Notifications
You must be signed in to change notification settings - Fork 29
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: 🐛 reapply storage policy errors out after a failed delete #2674
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Tested and works great, thanks for the fix!
6600acf
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.
Looks good, left a non blocking comment
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.
thanks for the fix, looks great!
8e889f6
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.
Thanks for the fix!
Description
When a delete fails on a session-recording, the
isDeleted
attribute is set totrue
butisDestroyed
is set tofalse
so when we try to usethis.save
on model it sends anotherDELETE
request instead of aPOST
request for thereapply-storage-policy
method. Solution was torollbackAttributes
after a failedDELETE
.Additionally, hide delete button when storage policy is retain "forever" on a session recording.
Screenshots (if appropriate)
BEFORE:
Screen.Recording.2025-01-31.at.5.45.52.PM.mov
AFTER:
Screen.Recording.2025-01-31.at.5.42.04.PM.mov
hide delete button when retain policy is "Forever"
Screen.Recording.2025-02-04.at.1.23.35.PM.mov
How to Test
Checklist