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

Role Strategy Fix + Cleanup + PermissionAssert #131

Merged
merged 4 commits into from Feb 26, 2018

Conversation

oleg-nenashev
Copy link
Member

@oleg-nenashev oleg-nenashev commented Feb 23, 2018

@oleg-nenashev oleg-nenashev changed the title Move PermissionFinder to an utility package and restrict it Role Strategy Fix + Cleanup Feb 23, 2018
@oleg-nenashev
Copy link
Member Author

Tests are in progress

@oleg-nenashev oleg-nenashev changed the title Role Strategy Fix + Cleanup Role Strategy Fix + Cleanup + PermissionAssert Feb 24, 2018
@oleg-nenashev
Copy link
Member Author

@lanwen may want to criticize my old-style asserts instead of matchers, adding to Cc just in case

HashSet<String> resolvedIds = new HashSet<>();
for (String id : permissions) {
String resolvedId = PermissionFinder.findPermissionId(id);
if (resolvedId != null) {
Copy link
Member

Choose a reason for hiding this comment

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

Objects.requireNonNull?

Copy link
Member

@MadsNielsen MadsNielsen left a comment

Choose a reason for hiding this comment

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

Looks good!

@MadsNielsen MadsNielsen merged commit 9b9804b into jenkinsci:master Feb 26, 2018
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.

None yet

3 participants