-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
…dentity is already known. Signed-off-by: sBouzols <[email protected]>
code ok, untested |
src/utils/rest-api.ts
Outdated
return Promise.resolve(); | ||
} | ||
console.info('fetching users identities for %s elements.', elementUuids.length); | ||
console.debug('fetching users identities for elements: %s', elementUuids); |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
Signed-off-by: sBouzols <[email protected]>
Signed-off-by: sBouzols <[email protected]>
Quality Gate passedIssues Measures |
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.