-
Notifications
You must be signed in to change notification settings - Fork 45
PIMS-1703: Soft Delete Properties and Projects #2400
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
PIMS-1703: Soft Delete Properties and Projects #2400
Conversation
…, made migration
…peration in a transaction block and made sure that migration correctly includes FK reference to user table
…handle project soft deletes. Updating agency responses and properties can also trigger soft deletes. UI makes delete call now.
…e still linked to a project
|
🚀 Deployment Information The Express API Image has been built with the tag: |
|
Code Climate has analyzed commit 370a193 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 83.8% (50% is the threshold). This pull request will bring the total coverage in the repository to 94.4%. View more on Code Climate. |
|
🚀 Deployment Information The React APP Image has been built with the tag: |
dbarkowsky
left a 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.
Manual tests of deletions seems to be working as expected, removing them from user's view.
Unfortunate we have to use update functions for this to save the user id, but I think that's the only way unless we write a custom function for the soft delete entity, which might not work because our IDs aren't consistent.
Yeah, softDelete function really seems to do nothing more than set the delete date field with no additional options like setting an additional field. I think using update make the intention less clear than calling softDelete but considering softDelete itself still results in an SQL UPDATE query, I think it's fine enough. Soft delete in TypeORM seems like a feature that was added later in development, it's not documented very well. But so far it does work consistently enough so I think we can stick with it. |
🎯 Summary
PIMS-1703
🔰 Checklist