-
Notifications
You must be signed in to change notification settings - Fork 105
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
Updated RecordsRead to return RecordsDelete and initial RecordsWrite when record is deleted #814
Conversation
…when record is deleted
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #814 +/- ##
=======================================
Coverage 98.71% 98.72%
=======================================
Files 74 74
Lines 11469 11508 +39
Branches 1652 1661 +9
=======================================
+ Hits 11322 11361 +39
Misses 141 141
Partials 6 6 ☔ 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.
🥇 🐐 This is definitely needed!
6276e5e
Co-authored-by: Liran Cohen <[email protected]>
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.
🎸 🐐
Prior to this change, a 404 status is returned without any data when a RecordsRead is performed against a deleted record.
But 404 status alone prevents a the RecordsDelete from being imported into the caller's DWN for the purpose updating the record's state.
This PR updated RecordsRead to return RecordsDelete and initial RecordsWrite when record is deleted.