Skip to content

use lazy user in UserMountCache - #33579

Closed
icewind1991 wants to merge 1 commit into
masterfrom
mountcache-lazy-user
Closed

use lazy user in UserMountCache#33579
icewind1991 wants to merge 1 commit into
masterfrom
mountcache-lazy-user

Conversation

@icewind1991

Copy link
Copy Markdown
Member

Signed-off-by: Robin Appelman robin@icewind.nl

@icewind1991icewind1991 added this to the Nextcloud 25 milestone Aug 17, 2022
@icewind1991
icewind1991 requested review from a team, blizzz, juliusknorr and skjnldsv and removed request for a teamAugust 17, 2022 12:19
Comment threadlib/private/Files/Config/UserMountCache.php Outdated

@CarlSchwanCarlSchwan 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.

see last comment

Signed-off-by: Robin Appelman <robin@icewind.nl>
$userid = $row['user_id'];

// check that the user exits
if ($this->userManager->getDisplayName($userid) === null) {

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.

Not fond of this check, seems hack-ish, no?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

A bit yes, but it's the easiest way I can think of to do this check without requesting data from the user backend if not needed

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

#33582 add caching to userExists, will adjust this PR once that is merged

@skjnldsvskjnldsv mentioned this pull request Aug 18, 2022
This was referenced Aug 24, 2022
@blizzzblizzz added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Sep 2, 2022
This was referenced Sep 6, 2022
@skjnldsvskjnldsv mentioned this pull request Sep 15, 2022
This was referenced Sep 20, 2022
@blizzzblizzz modified the milestones: Nextcloud 25, Nextcloud 26Sep 22, 2022
@blizzzblizzz mentioned this pull request Feb 1, 2023
@skjnldsvskjnldsv mentioned this pull request Feb 23, 2023
@blizzzblizzz mentioned this pull request Mar 7, 2023
@blizzzblizzz modified the milestones: Nextcloud 26, Nextcloud 27Mar 9, 2023
This was referenced May 3, 2023
@skjnldsvskjnldsv mentioned this pull request Nov 1, 2023
This was referenced Nov 6, 2023
This was referenced Nov 14, 2023
@blizzzblizzz modified the milestones: Nextcloud 28, Nextcloud 29Nov 23, 2023
This was referenced Mar 12, 2024
This was referenced Mar 20, 2024
@skjnldsvskjnldsv mentioned this pull request Mar 28, 2024
81 tasks
This was referenced Jul 30, 2024
This was referenced Aug 5, 2024
@skjnldsvskjnldsv mentioned this pull request Aug 13, 2024
@skjnldsvskjnldsv removed this from the Nextcloud 30 milestone Aug 14, 2024
@skjnldsv
skjnldsv deleted the mountcache-lazy-user branch August 30, 2024 07:30
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@icewind1991@skjnldsv@CarlSchwan@blizzz