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

feat: optimize user caching for invites #205

Merged
merged 1 commit into from
Mar 9, 2023
Merged

Conversation

swarley
Copy link
Member

@swarley swarley commented Mar 9, 2023

Summary

Use ensure_user to avoid making an API call during invite creation.

@just-the-v
Copy link

i tried on my project and it work like a charm. My ~160 invitations loads in less than a breath instead of raise rate limits twice. Thanks again !

Copy link
Member

@Daniel-Worrall Daniel-Worrall left a comment

Choose a reason for hiding this comment

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

lgtm

@swarley swarley merged commit c5c6b6d into main Mar 9, 2023
@swarley swarley deleted the feat/invite-optimization branch March 9, 2023 21:29
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