-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix searching all users in repair regenerate birthday cal reparir job #15141
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
|
Would it be better to replace this as well?
|
aye |
|
and found two other spots |
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
b02b6ca to
299f4d5
Compare
|
@georgehrke but is there a reason to have it a repair step, not a background job that can be run once after upgrade is done? |
|
Anyway, i think we should merge and backport it, otherwise setups with a serious backend will have a long lasted upgrade. For .1 we can perhaps turn it to background job if possible. |
| public function syncInstance(\Closure $progressCallback = null) { | ||
| $systemAddressBook = $this->getLocalSystemAddressBook(); | ||
| $this->userManager->callForAllUsers(function($user) use ($systemAddressBook, $progressCallback) { | ||
| $this->userManager->callForSeenUsers(function($user) use ($systemAddressBook, $progressCallback) { |
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.
@schiessle Will this have any negative effect on federation?
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.
why should this affect federation? allForSeenUsers cycles over all known users. callForAllUsers might bring in new ones, but in any case it brings in a lot of overhead.
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.
syncInstance syncs the address book containing all users for federation. So instead of all users only users that have logged in before will be synced (i assume).
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.
No, all the users known to Nextcloud. This can be more than have logged in.
The migration step doesn't generate all the birthday calendars itself, it only registers jobs to generate them later on in the background. |
Then, this should be fine. Search external backends is expensive. |
299f4d5 to
44a67ce
Compare
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
44a67ce to
96bab4f
Compare
|
/backport to stable16 |
|
backport to stable16 in #15219 |
The problem: my dev system on upgrade is working on that for almost an hour now…