Skip to content

graph: reuse user- and group cache in graph/sharedbyme - #7683

Merged
rhafer merged 3 commits into
owncloud:masterfrom
rhafer:graph-rework-cache
Nov 8, 2023
Merged

rhafer merged 3 commits into
owncloud:masterfrom
rhafer:graph-rework-cache

Conversation

@rhafer

@rhafer rhafer commented Nov 8, 2023

Copy link
Copy Markdown
Contributor

This makes the user and group lookup cache in drives.go re-usable so that it e.g. graph/sharedbyme can use it as well.

This is useful outside the identity module so make it available
drives.go implemented a local user/group cache (ttl based) to speed up repeated
user and group lookups. This commit moves the implementation to the 'identity' module
to make it usable outside of drives.go.
@rhafer
rhafer requested review from fschade and micbar November 8, 2023 08:19
@update-docs

update-docs Bot commented Nov 8, 2023

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@rhafer rhafer self-assigned this Nov 8, 2023
@sonarqubecloud

sonarqubecloud Bot commented Nov 8, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

16.3% 16.3% Coverage
0.0% 0.0% Duplication

@fschade fschade left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 🚀

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants