Uh oh!
There was an error while loading. Please reload this page.
fix(CardDAV): only run upgrade sync if 1000 users or less - #39911
Conversation
Uh oh!
There was an error while loading. Please reload this page.
ChristophWurst
left a comment
There was a problem hiding this comment.
nit: append 27 to upgrade_dav_sync_run to allow future dav upgrade syncs to have a unique key too
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
6a7a28e to
0074408Comparekesselb
commented
Aug 17, 2023
I don't understand 😕 Let's say we need another sync from 28 to 29. If we use the app config key without a prefix/suffix, we can reuse the same logic without changing the command or setup check. |
ChristophWurst
commented
Aug 17, 2023
Fair point if we reset upgrade_dav_sync_run. Sorry for the misdirection. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kesselb
commented
Aug 17, 2023
How to test:
|
kesselb
commented
Aug 17, 2023
/backport to stable27 |
d6a3589 to
b02c2e5CompareUh oh!
There was an error while loading. Please reload this page.
| */ | ||
| public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { | ||
| if($this->userManager->countUsers() > 1000) { | ||
| $this->config->setAppValue('dav', 'needs_system_address_book_sync', 'no'); |
There was a problem hiding this comment.
| $this->config->setAppValue('dav', 'needs_system_address_book_sync', 'no'); | |
| $this->config->setAppValue('dav', 'needs_system_address_book_sync', 'yes'); |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
abec672 to
b8840c6Compareb8840c6 to
7406027CompareSigned-off-by: Anna Larch <anna@nextcloud.com>
7406027 to
7f11ee8Compare
Summary
Limit the upgrade sync to instances with 1000 users or less and show a warning in the admin section if the sync hasn't been run:
TODO
Checklist