Skip to content
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

APPT-587: Delete provisional bookings when their availability is removed #465

Merged

Conversation

sambiramairelogic
Copy link
Contributor

Subsequent to the previous PR which prevented Provisional appointments from being orphaned when their availability is removed, we actually want to hard delete them in this scenario.

I have misgivings about hard deletes, but we're doing this during the nightly sweep so there is precedent, and after all it is only provisional.

@jsed-nhs
Copy link
Contributor

Any reason we aren't soft deleting, just to free up data - no current predicted use for this data I assume? Only alternative could be soft delete and then hard delete after X amount of time, you mentioned some "nightly sweep" process?

@sambiramairelogic
Copy link
Contributor Author

Any reason we aren't soft deleting, just to free up data - no current predicted use for this data I assume? Only alternative could be soft delete and then hard delete after X amount of time, you mentioned some "nightly sweep" process?

I asked the same question. If you want to do the extra dev work to make it a soft delete, be my guest and ask a BA for the time. The scope of this PR to delete the provisional bookings in the same way they are currently.

Copy link
Contributor

@jsed-nhs jsed-nhs left a comment

Choose a reason for hiding this comment

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

Approved when both async Delete calls run in parallel

@sambiramairelogic sambiramairelogic force-pushed the APPT-587/delete-provisional-bookings-if-unsupported branch from a5387ad to 8ff6c6b Compare January 29, 2025 15:51
@sambiramairelogic sambiramairelogic merged commit 33755e2 into main Jan 29, 2025
3 checks passed
@sambiramairelogic sambiramairelogic deleted the APPT-587/delete-provisional-bookings-if-unsupported branch January 29, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants