-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Desktop,Mobile,Cli: Include types of synced items in the sync status message #11488
base: dev
Are you sure you want to change the base?
Desktop,Mobile,Cli: Include types of synced items in the sync status message #11488
Conversation
} | ||
|
||
if (modifiedItemNames.length > 0) { | ||
return _('%d (%s)', sum, modifiedItemNames.join(', ')); |
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.
As mentioned in the pull request description, modifiedItemNames.join(', ')
isn't ideal for localization purposes.
Nice work! I thought about proposing something like this, but glad to see this has been suggested and now even been implemented. I think particularly in the case of deletions, it would be good to have some kind of breakdown which includes the totals for each category. For example, you might delete 1 note but also 20 revisions are deleted, so seeing 'deleted remote: 21 (notes, note history)' is still going to be scary. You could put the number next to each part in the brackets as well, or if you don't want to make the sync summary even more cluttered, then maybe you could log the total of each part within the breakdown, if that is not done already? |
Summary
This pull request implements a feature request from the forum.
Previously, the sync status message would list a large number of deleted "items" after removing old note versions on the sync target. This pull request should make the status message less confusing.
For example, previously,
Deleted remote items: 1024
might be shown after deleting 1024 old note versions. With this pull request,Deleted remote: 1024 (note history)
would be shown instead.Note
Users may be experiencing related issues due to the changes from this pull request, which fixed a bug where old revisions were not removed from the sync target.
Notes
other
. This is in part to avoid confusion about the different types of tag entities (tag associations and tags).The above message might be confusing. For now, this pull request does not truncate long status messages.
Example status messages