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

Add account name to address book account name #1050

Merged

Conversation

sunkup
Copy link
Member

@sunkup sunkup commented Oct 2, 2024

Purpose

#989 has renamed address book accounts. Now address book accounts don't include the actual account name anymore. This is desireable for usability though. This PR adds the actual account name back to the address book account name.

Short description

  • Add the actual account name to the address book account name.
  • Add some explaining comments

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.

@sunkup sunkup added the bug Something isn't working label Oct 2, 2024
@sunkup sunkup self-assigned this Oct 2, 2024
@sunkup sunkup linked an issue Oct 2, 2024 that may be closed by this pull request
@sunkup sunkup requested a review from ArnyminerZ October 2, 2024 10:17
@sunkup sunkup marked this pull request as ready for review October 2, 2024 10:17
@sunkup sunkup removed the request for review from ArnyminerZ October 2, 2024 10:17
@sunkup sunkup marked this pull request as draft October 2, 2024 10:18
@sunkup sunkup marked this pull request as ready for review October 2, 2024 10:54
@sunkup sunkup requested a review from ArnyminerZ October 2, 2024 10:54
Copy link
Member

@ArnyminerZ ArnyminerZ left a comment

Choose a reason for hiding this comment

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

Looks and works good for me.

@sunkup sunkup requested a review from rfc2822 October 3, 2024 12:02
@rfc2822 rfc2822 force-pushed the 1035-address-book-account-names-should-include-account-name branch from 1385eb8 to 5fa1561 Compare October 3, 2024 15:45
Copy link
Member

@rfc2822 rfc2822 left a comment

Choose a reason for hiding this comment

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

When I use info.serviceId, it works and creates the address book accounts with the account name in the name.

However when the account is renamed (for instance from the version without account name because the service with service.id=info.id was not present to the one with account name), I get this exception:

Show Screenshot

grafik

To reproduce:

  • Sync addressbook → address book account is created
  • Change accountName function, for instance add a word for testing to the account name
  • Sync addressbook again → address book is renamed, but notification is shown.

I think this will be addressed in #1039, no? I wonder how this happens because if the account name is changed, it should cause AccountManager.renameAccount() without data loss.

@sunkup
Copy link
Member Author

sunkup commented Oct 7, 2024

I think this will be addressed in #1039, no?

Exactly. I started working this one, because only changing the account name should not interfere with the actual crash issue of old accounts not being deleted / renamed properly.

@sunkup sunkup force-pushed the 1035-address-book-account-names-should-include-account-name branch from 5fa1561 to da5c561 Compare October 7, 2024 09:06
@sunkup sunkup requested a review from rfc2822 October 7, 2024 09:29
@rfc2822
Copy link
Member

rfc2822 commented Oct 7, 2024

Nice 👍🏻

@rfc2822 rfc2822 merged commit 1193027 into main-ose Oct 7, 2024
8 checks passed
@rfc2822 rfc2822 deleted the 1035-address-book-account-names-should-include-account-name branch October 7, 2024 10:26
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.

Address book account names should include account name
3 participants