-
Notifications
You must be signed in to change notification settings - Fork 24
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
[artifact-manager] (#552) Custom resource update #555
base: main
Are you sure you want to change the base?
Conversation
It won't work to catch only for Http exception, as a Runtime Exception is being re-thrown and that way the logic will never hold Signed-off-by: Stefan Genov <[email protected]>
Signed-off-by: Stefan Genov <[email protected]>
@Michaelpalacce, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding
|
1 similar comment
@Michaelpalacce, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding
|
final String magicMessage = "Resource type cannot be deleted as there are active resources attached to it"; | ||
String message = clientException.getMessage(); | ||
return (status == HttpStatus.BAD_REQUEST && message != null && message.indexOf(magicMessage) != -1); | ||
return (message != null && message.indexOf(magicMessage) != -1); |
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.
You can use message.contains(magicMessage)
instead of indexOf
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.
addressed
Signed-off-by: Stefan Genov <[email protected]>
@Michaelpalacce, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding
|
1 similar comment
@Michaelpalacce, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding
|
…re-aria into fix/552-custom-resource-update Signed-off-by: Stefan Genov <[email protected]>
Still need to test this if it's effective, looking for an environment |
…re-aria into fix/552-custom-resource-update Signed-off-by: Stefan Genov <[email protected]>
This is needed because the reason is actually berried in a cause, instead of being the main exception Signed-off-by: Stefan Genov <[email protected]>
Signed-off-by: Stefan Genov <[email protected]>
Signed-off-by: Stefan Genov <[email protected]>
I feel like we'll forget why we do this in a few weeks Signed-off-by: Stefan Genov <[email protected]>
Description
Checklist
Fixed #XXX -
orClosed #XXX -
prefix to auto-close the issueTesting
Release Notes
Related issues and PRs
Closes #552