Delete project properly as it's not causing problems with forking logic #539
Reference in New Issue
Block a user
Delete Branch "kurt/delete-projects-properly"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Going to go ahead and merge since it could cause problem on prod.
prisma still doesn't support defining cascade deletion rule in their schemas, hopefully they will eventually, but for now I'm just deleting all children before attempting to delete the project (other wish it errors because a comment can't exist without a project etc).
things to clean up later is to remove the deleted property on projects and delete and projects that have that set to true
Live now