-
Notifications
You must be signed in to change notification settings - Fork 1.2k
server: optimize account creation by pre-loading the role permissions #11137
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
base: 4.20
Are you sure you want to change the base?
server: optimize account creation by pre-loading the role permissions #11137
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #11137 +/- ##
=============================================
- Coverage 16.15% 4.00% -12.16%
=============================================
Files 5657 402 -5255
Lines 497969 32612 -465357
Branches 60389 5791 -54598
=============================================
- Hits 80463 1305 -79158
+ Misses 408542 31158 -377384
+ Partials 8964 149 -8815
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
||
private void checkApiAccess(APIChecker apiChecker, Account caller, Account requested) throws PermissionDeniedException { | ||
Pair<Role, List<RolePermission>> roleAndPermissionsForCaller = apiChecker.getRolePermissions(caller.getRoleId()); | ||
Pair<Role, List<RolePermission>> roleAndPermissionsForRequest = apiChecker.getRolePermissions(requested.getRoleId()); |
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.
Pair<Role, List<RolePermission>> roleAndPermissionsForRequest = apiChecker.getRolePermissions(requested.getRoleId()); | |
Pair<Role, List<RolePermission>> roleAndPermissionsForRequested = apiChecker.getRolePermissions(requested.getRoleId()); |
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.
thanks @sureshanaparti
committed
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.
minor nit, clgtm
@blueorangutan package |
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
3d62538
to
e5848ac
Compare
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14033 |
@blueorangutan test |
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
[SF] Trillian test result (tid-13682)
|
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.
clgtm
Description
This PR optimizes the process of #5879
prior to this PR
with this PR, it is reduced to less than 1 second
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?