Skip to content
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

Merged
merged 10 commits into from
May 31, 2024
Merged

Conversation

adzialocha
Copy link
Member

@adzialocha adzialocha commented May 30, 2024

  • Delete blobs (done automatically via GC in node)
  • Delete "Hive Location" documents
  • Delete "Used For" documents

@adzialocha adzialocha mentioned this pull request May 30, 2024
5 tasks
@adzialocha adzialocha marked this pull request as ready for review May 30, 2024 18:46
@adzialocha adzialocha requested a review from sandreae May 30, 2024 19:12
@sandreae sandreae force-pushed the delete-associated-data branch from e633d88 to c7e0345 Compare May 31, 2024 07:54
@@ -59,3 +63,46 @@ abstract class Paginator<T> {
return next;
}
}

Future<List<Map<String, dynamic>>> paginateOverEverything(
Copy link
Member

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: peer => sighting

@sandreae sandreae changed the base branch from delete-sighting to main May 31, 2024 08:04
@sandreae sandreae merged commit 2a8be9e into main May 31, 2024
@adzialocha adzialocha deleted the delete-associated-data branch May 31, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants