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

LocalAddressBookStore: return all address books, including orphaned ones #1168

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

rfc2822
Copy link
Member

@rfc2822 rfc2822 commented Dec 12, 2024

Purpose

LocalAddressBookStore.getAll() previously didn't return all address books, but only those that are mapped to a known ID from the database.

However Syncer needs a list of all local collections. It then deletes the ones that don't have a corresponding remote collection = database entry in Collections.

Short description

  • LocalAddressBookStore.getAll() now returns als address books
  • LocalDataStore.getAll(): updated KDoc to make it clear that all entries must be returned

Checklist

  • The PR has a proper title, description and label.
  • I have self-reviewed the PR.
  • I have added documentation to complex functions and functions that can be used by other modules.
  • I have added reasonable tests or consciously decided to not add tests.

@rfc2822 rfc2822 linked an issue Dec 12, 2024 that may be closed by this pull request
2 tasks
@rfc2822 rfc2822 self-assigned this Dec 12, 2024
@rfc2822 rfc2822 added the bug Something isn't working label Dec 12, 2024
@rfc2822 rfc2822 requested a review from ArnyminerZ December 12, 2024 20:55
@rfc2822 rfc2822 marked this pull request as ready for review December 12, 2024 20:55
@ArnyminerZ
Copy link
Member

Is there any way to reproduce? Code looks good, but just to be sure 😅

@rfc2822
Copy link
Member Author

rfc2822 commented Dec 13, 2024

Is there any way to reproduce? Code looks good, but just to be sure 😅

Yes, see here: #1163 (comment)

@rfc2822 rfc2822 force-pushed the 1163-orphaned-accounts-are-no-longer-cleaned-up branch from 6bc7238 to 6b85558 Compare December 16, 2024 13:16
@rfc2822 rfc2822 merged commit c2524b0 into main-ose Dec 17, 2024
8 checks passed
@rfc2822 rfc2822 deleted the 1163-orphaned-accounts-are-no-longer-cleaned-up branch December 17, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Orphaned address books are no longer cleaned up
2 participants