Skip to content

fix: always add user to group cache - #42931

Merged
Altahrim merged 1 commit into
nextcloud:masterfrom
hrenard:master
Mar 26, 2024
Merged

fix: always add user to group cache#42931
Altahrim merged 1 commit into
nextcloud:masterfrom
hrenard:master

Conversation

@hrenard

@hrenardhrenard commented Jan 18, 2024

Copy link
Copy Markdown
Contributor

Summary

When there is no user in a group, and we add one, it's not added to the group cache. So consecutive call of addUser() and getUsers() is inconsistent. Furthermore, the user cache is never null, so this check is unesserary.

Checklist

@solracsfsolracsf added the 3. to review Waiting for reviews label Jan 18, 2024
@solracsfsolracsf added this to the Nextcloud 29 milestone Jan 18, 2024
@solracsf
solracsf requested review from a team, Altahrim, ArtificialOwl and nfebe and removed request for a teamJanuary 18, 2024 12:45
@AltahrimAltahrim mentioned this pull request Mar 12, 2024
This was referenced Mar 14, 2024
@AltahrimAltahrim mentioned this pull request Mar 25, 2024
When there is no user in a group, and we add one, it's not added to the group cache. So consecutive call of addUser() and getUsers() is inconsistent.
Furthermore, the user cache is never null, so this check is unesserary.
Signed-off-by: Hugo Renard <hugo.renard@protonmail.com>
@AltahrimAltahrim added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 26, 2024
@Altahrim
Altahrim merged commit 42f4e6a into nextcloud:masterMar 26, 2024
@welcome

welcomeBot commented Mar 26, 2024

Copy link
Copy Markdown

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

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

Labels

4. to releaseReady to be released and/or waiting for tests to finishbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@hrenard@Altahrim@artonge@come-nc@solracsf