Skip to content

Clear avatar cache with frontend repair - #12313

Merged
rullzer merged 1 commit into
masterfrom
generated-avatar-major-cleanup
Nov 8, 2018
Merged

Clear avatar cache with frontend repair#12313
rullzer merged 1 commit into
masterfrom
generated-avatar-major-cleanup

Conversation

@skjnldsv

Copy link
Copy Markdown
Member

Fix#12058

@nextcloud/designers

@skjnldsvskjnldsv added bug design Design, UI, UX, etc. 3. to review Waiting for reviews feature: caching Related to our caching system: scssCacher, jsCombiner... labels Nov 6, 2018
@skjnldsvskjnldsv added this to the Nextcloud 15 milestone Nov 6, 2018
@skjnldsvskjnldsv self-assigned this Nov 6, 2018
@skjnldsv
skjnldsvforce-pushed the generated-avatar-major-cleanup branch from 959f092 to 78dd2ceCompareNovember 6, 2018 14:55
@MorrisJobkeMorrisJobke mentioned this pull request Nov 6, 2018
29 tasks

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code makes sense 👍

rullzer
rullzer previously requested changes Nov 6, 2018
Comment threadlib/private/AvatarManager.php
@skjnldsv

Copy link
Copy Markdown
MemberAuthor

Failure unrelated

rullzer
rullzer previously requested changes Nov 7, 2018
Comment threadlib/public/IAvatarManager.php Outdated
* @see IAvatar
* @since 15.0.0
*/
public function clearCachedAvatars();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What is this doing in the public namespace.
IMO we should just inject the private class in the repair step and keep this out of here. I see no reason for an app to trigger this.

Comment threadlib/private/Repair/ClearGeneratedAvatarCache.php Outdated
Comment threadlib/private/Repair/ClearGeneratedAvatarCache.php Outdated
@skjnldsv
skjnldsvforce-pushed the generated-avatar-major-cleanup branch from 87e581f to 1c13c34CompareNovember 7, 2018 19:37
@skjnldsv
skjnldsv requested a review from rullzerNovember 7, 2018 19:38
Comment threadlib/private/AvatarManager.php Outdated
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
@skjnldsv
skjnldsvforce-pushed the generated-avatar-major-cleanup branch from 1c13c34 to a9eef37CompareNovember 8, 2018 07:31
@rullzer
rullzer merged commit 25fe324 into masterNov 8, 2018
@MorrisJobke
MorrisJobke deleted the generated-avatar-major-cleanup branch November 8, 2018 09:41
new AddCleanupUpdaterBackupsJob(\OC::$server->getJobList()),
new RepairPendingCronJobs(\OC::$server->getDatabaseConnection(), \OC::$server->getConfig()),
new SetVcardDatabaseUID(\OC::$server->getDatabaseConnection(), \OC::$server->getConfig()),
new SetVcardDatabaseUID(\OC::$server->getDatabaseConnection(), \OC::$server->getConfig())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We always kept a trailing , in arrays to make the diff for adding a new entry nicer. It then only has this one line added instead of also appending a , to the previous line.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbugdesignDesign, UI, UX, etc.feature: cachingRelated to our caching system: scssCacher, jsCombiner...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@skjnldsv@rullzer@MorrisJobke@ChristophWurst@juliusknorr