-
Notifications
You must be signed in to change notification settings - Fork 2
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
Delete associated data when removing sighting #108
Conversation
adzialocha
commented
May 30, 2024
•
edited
Loading
edited
- Delete blobs (done automatically via GC in node)
- Delete "Hive Location" documents
- Delete "Used For" documents
e633d88
to
c7e0345
Compare
@@ -59,3 +63,46 @@ abstract class Paginator<T> { | |||
return next; | |||
} | |||
} | |||
|
|||
Future<List<Map<String, dynamic>>> paginateOverEverything( |
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.
The FetchAll
pagination list widget contains similar logic, we could probably reuse this method over there. Will raise a separate issue for that though.
/// | ||
/// Even though we're only displaying _one_ hive location per sighting it might | ||
/// be possible that others exist. To make sure we're cleaning up after ourselves | ||
/// this method deletes _all known_ hive locations to that peer. |
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.
typo: peer => sighting