-
Notifications
You must be signed in to change notification settings - Fork 825
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
Check zone id #2617
Check zone id #2617
Conversation
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/186543964 The labels on this github issue will be updated when the story is started. |
add more tests to cover all edge cases
6ca6254
to
6da41d6
Compare
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.
looks good to me
@swalchemist This is a small refactoring in preparation of a pr from @klaus-sap . Return now an exception before asking JDBC (or DB) about null for a zone. |
@strehle currently the methods do not throw EmptyResultDataAccessException, but only ZoneDoesNotExistException. Would this maybe be a better Exception to throw, as this is something the calling classes may already expect? |
ok |
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.
LGTM
After discussions in #2606
Add null checks to improve robustness in this dao
add more tests to cover all edge cases
https://sonarcloud.io/summary/new_code?id=cloudfoundry-identity-parent&pullRequest=2617