-
Notifications
You must be signed in to change notification settings - Fork 5
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
141 handle contact and data record deletes with root #143
141 handle contact and data record deletes with root #143
Conversation
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.
Nice! I like the idea of using the document_metadata model better and I like how you have updated the tests which is why I was adding the deleted column in the downstream models.
Left one comment about updating the clause in data_record and contact models.
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.
We should add a clause checking if the doc is deleted so that we don't copy it only to delete in the post hook clause. Same for the contact model
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.
good point, added
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
🎉 This issue has been resolved in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
@njuguna-n this is an alternative to #142 which uses the document_metadata table and cascading FK deletes to manage downstream models, instead of adding deleted columns to all the downstream models.