Skip to content
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

Optim, add user identities cache #582

Merged
merged 6 commits into from
Jan 3, 2025
Merged

Conversation

sBouzols
Copy link
Collaborator

Add a local cache and avoid multiple fetches if identity is already known.
If some user identities fetch return errors for some sub, it will retry during navigation if an element is owned or lastly modified by this user in the directory.

@sBouzols sBouzols requested a review from jonenst December 19, 2024 08:25
@jonenst
Copy link
Collaborator

jonenst commented Dec 19, 2024

code ok, untested

@sBouzols sBouzols requested a review from EstherDarkish January 2, 2025 09:48
return Promise.resolve();
}
console.info('fetching users identities for %s elements.', elementUuids.length);
console.debug('fetching users identities for elements: %s', elementUuids);
Copy link
Contributor

Choose a reason for hiding this comment

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

is this debug line necessary ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed

Copy link

sonarqubecloud bot commented Jan 3, 2025

@sBouzols sBouzols merged commit 6b0e2ef into main Jan 3, 2025
5 checks passed
@sBouzols sBouzols deleted the feat_optim_users-identity_cache branch January 3, 2025 16:35
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.

3 participants