-
Notifications
You must be signed in to change notification settings - Fork 275
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
Replaced uses of SecurityRoles by Set<String> mappedRoles where the SecurityRoles functionality is not needed #4432
Replaced uses of SecurityRoles by Set<String> mappedRoles where the SecurityRoles functionality is not needed #4432
Conversation
@peternied @cwperks @reta I am getting test failures on |
Fixing it right away, thank you @nibix |
633d012
to
4ca4106
Compare
@reta Thanks for the quick fix! |
@peternied @reta I am getting now another CI failure where I am a bit lost. Maybe someone of you has an idea?
However, |
@nibix fix is coming shortly , very unfortunate you run into those, apologies for that |
I ran into more CI issues, a fix is here: #4446 |
@nibix I'm not sure why some of the tests have not run. Can you rebase and push to see if it kicks off the CI checks? I'm not able to force start them. |
…ecurityRoles functionality is not needed. Signed-off-by: Nils Bandener <nils.bandener@eliatra.com>
4ca4106
to
3817416
Compare
@cwperks Done, but we had again test failures in a windows job. Would you mind to restart this one again? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4432 +/- ##
==========================================
- Coverage 65.44% 65.43% -0.01%
==========================================
Files 312 312
Lines 22042 22037 -5
Branches 3559 3557 -2
==========================================
- Hits 14425 14420 -5
Misses 5843 5843
Partials 1774 1774
|
Description
This code change is just in preparation for the change in #4380 as requested in #4380 (comment) .
In the course of #4380 , the
SecurityRoles
class will be replaced by a new concept. This PR already replaces the usages ofSecurityRoles
where no methods are used on it except thegetRoleNames()
method. This method call can be easily replaced by theSet<String> mappedRoles
, which is computed byPrivilegesEvaluator
before theSecurityRoles
instance is created. This change elliminated the coupling of the interfaces that consume that information to theSecurityRoles
class, thereby enhancing code quality.SecurityRoles
class in the end.Issues Resolved
Testing
[Please provide details of testing done: unit testing, integration testing and manual testing]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.