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

fix: option to delete local secondary when remote has been reset #1033

Open
wants to merge 40 commits into
base: trunk
Choose a base branch
from

Conversation

srieteja
Copy link
Contributor

@srieteja srieteja commented May 15, 2023

Closes #900
- What I did

  • Introduce a method that checks if the remote secondary has been reset; returns true if the remote secondary has been reset.
  • Introduce a method to delete local storage.
  • Introduce a method to close instances of commitLog and hive in the Storage manager

- How I did it

  • Fetch AT_ENCRYPTION_PUB_KEY from remote secondary and local secondary and if they are not the same, this is considered a reset.
  • Additional method has been introduced [deleteLocalSecondaryStorageWithConsent()] which takes a consent flag and deletes the local files belonging to the current atsign.

- How to verify it

  • unit tests present in at_client_impl_test.dart

- Description for the changelog

fix: option to delete local secondary when remote has been reset

@srieteja srieteja marked this pull request as draft May 15, 2023 09:58
@srieteja srieteja marked this pull request as ready for review August 17, 2023 06:29
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.

Trying to connect with the wrong atKeys results in a lot of errors
2 participants