-
Notifications
You must be signed in to change notification settings - Fork 429
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: allow deletion of scheduled change requests #3713
fix: allow deletion of scheduled change requests #3713
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uffizzi Preview |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3713 +/- ##
==========================================
+ Coverage 95.89% 95.90% +0.01%
==========================================
Files 1101 1101
Lines 34568 34697 +129
==========================================
+ Hits 33149 33277 +128
- Misses 1419 1420 +1 ☔ View full report in Codecov by Sentry. |
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.
I'm approving this as I don't see any problems in code, but it slightly worries me from the UX perspective.
I'd much rather continue restricting deletion of scheduled CRs in the backend, adding a UI flow which offers users to remove the schedule (i.e., clear the related live_from
attributes) prior to deleting the CR.
This would make this process more transparent and resilient to human error, IMO.
This would be quite challenging I think, because we would need to 'unpublish' the change request at the same time (which isn't currently possible). Otherwise, you would essentially be marking the change request as 'complete'. This does make me think that there might be an issue I haven't considered here though that there is a task added to the queue when a scheduled change request is published which we may need to clear from the queue. This could be challenging, however due to issues interacting with the task queue db table. I'll take a look. |
519a853
to
08dcfb5
Compare
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingdocs/
if required so people know about the feature!Changes
Allow change requests that are scheduled for the future to be deleted.
Resolves #3710
How did you test this code?
Added 2 new unit tests.