-
Notifications
You must be signed in to change notification settings - Fork 829
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
Sonar refactoring - IdentityProviderEndpoints class #2890
Conversation
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/187603855 The labels on this github issue will be updated when the story is started. |
…torIdp2 # Conflicts: # server/src/main/java/org/cloudfoundry/identity/uaa/provider/IdentityProviderEndpoints.java
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.
Will come back to review once the test failures are resolved.
return new ResponseEntity<>(body, UNPROCESSABLE_ENTITY); | ||
} | ||
updatedIdp.setSerializeConfigRaw(rawConfig); | ||
setAuthMethod(updatedIdp); | ||
redactSensitiveData(updatedIdp); | ||
|
||
return new ResponseEntity<>(updatedIdp, OK); | ||
return new ResponseEntity<>(updatedIdp, status); |
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.
Does this not end up returning different status for the same result after this change?
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.
server/src/main/java/org/cloudfoundry/identity/uaa/provider/IdentityProviderEndpoints.java
Show resolved
Hide resolved
@hsinn0 compare sonar findings from develop compared to this branch, see |
See
old:
https://sonarcloud.io/code?id=cloudfoundry-identity-parent&selected=cloudfoundry-identity-parent%3Aserver%2Fsrc%2Fmain%2Fjava%2Forg%2Fcloudfoundry%2Fidentity%2Fuaa%2Fprovider%2FIdentityProviderEndpoints.java
vs.
new:
https://sonarcloud.io/code?id=cloudfoundry-identity-parent&pullRequest=2890&selected=cloudfoundry-identity-parent%3Aserver%2Fsrc%2Fmain%2Fjava%2Forg%2Fcloudfoundry%2Fidentity%2Fuaa%2Fprovider%2FIdentityProviderEndpoints.java
Sonar:
https://sonarcloud.io/summary/new_code?id=cloudfoundry-identity-parent&pullRequest=2890
Did refactoring because of
x. The rest, e.g. logging or instance of are changes which came from plugins in IDE.