-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix: always use english name for recently contacted category #54736
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
Conversation
|
Possible performance regression detected Show Output |
e948659 to
9ccae2f
Compare
|
Possible performance regression detected Show Output |
1 similar comment
|
Possible performance regression detected Show Output |
|
Possible performance regression detected Show Output |
ChristophWurst
left a comment
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.
👏 for a live migration without downtime
👏 for using a transaction for fast throughput
|
/backport to stable32 |
|
/backport to stable31 |
| 'URI' => UUIDUtil::getUUID(), | ||
| 'FN' => $this->getDisplayName($contact->getUid()) ?? $contact->getEmail() ?? $contact->getFederatedCloudId(), | ||
| 'CATEGORIES' => $this->l10n->t('Recently contacted'), | ||
| 'CATEGORIES' => 'Recently contacted', |
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.
Maybe add a comment here that this should not be translated. Otherwise someone finds it in the future and makes it translated again.
SebastianKrupinski
left a comment
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.
Tested. Works.
My only comment was going to be that if this is a one time thing, we could just do a regex, string replacement, as the structure is generated by us and is very predicable.
UPDATE vcards
SET vcard_data = REGEXP_REPLACE(
vcard_data,
'CATEGORIES:[^\r\n]*',
'CATEGORIES:Recent Contact'
)
WHERE vcard_data REGEXP 'CATEGORIES:';
But Sqlite does not support regex_replace, so that ideas is out
Signed-off-by: Daniel Kesselberg <[email protected]>
d531867 to
247861d
Compare
|
The backport to # Switch to the target branch and update it
git checkout stable31
git pull origin stable31
# Create the new backport branch
git checkout -b backport/54736/stable31
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 247861d2
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/54736/stable31Error: Failed to push branch backport/54736/stable31: remote: Invalid username or token. Password authentication is not supported for Git operations. Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
|
/backport to stable31 |
Summary
Grouping in contacts is done by the categories property and therefore it's not ideal to translate it.
See nextcloud/contacts#4663 for additional context and steps to reproduce.
TODO
Helper script to generate recent contacts
Checklist