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

Minor optimization to DefaultRoleService bootstrapAdminUser #412

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

amcclain
Copy link
Member

  • Resolve possible bootstrapAdminUser setting once, on init, and log if active.
  • Simplify getRolesForUser accordingly - this can get called in hot loops with permission checks, want to do anything we can to keep it lean and mean.

+ Resolve possible bootstrapAdminUser setting once, on init, and log if active.
+ Simplify `getRolesForUser` accordingly - this can get called in hot loops with permission checks, want to do anything we can to keep it lean and mean.
@amcclain amcclain requested a review from lbwexler October 12, 2024 00:36
@amcclain
Copy link
Member Author

Apologies for the whitespace changes - that's my IDE, promise I am not spending (that much) time fiddling with spacing braces...

@lbwexler
Copy link
Member

@amcclain -- love this clarity

@lbwexler lbwexler closed this Oct 12, 2024
@lbwexler lbwexler reopened this Oct 12, 2024
@lbwexler lbwexler merged commit 6f4be05 into develop Oct 12, 2024
6 checks passed
@lbwexler lbwexler deleted the optimizeBootstrapAdmin branch October 12, 2024 14:05
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