-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix(notifications): More descriptive notifications #260
fix(notifications): More descriptive notifications #260
Conversation
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.
/build_test |
You do not have permission to run the /build_test command. Please ask @cryostatio/reviewers |
/build_test |
You do not have permission to run the /build_test command. Please ask @cryostatio/reviewers |
seems to be just ths PR :/ |
64b3d68
to
2a5d175
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.
Here's a rough idea:
public static class RuleExistsException extends EntityExistsException {
RuleExistsException(String name) {
super("Rule", name);
}
}
public static class EntityExistsException extends ClientErrorException {
EntityExistsException(String type, String name) {
super(String.format("%s with name %s already exists", type, name), Response.Status.CONFLICT);
}
}
and then move the @ServerExceptionMapper
into ExceptionMappers.java
and have it check e instanceof EntityExistsException
instead of the Rule
-specific one.
WDYT?
41cd325
to
17f6528
Compare
should this also be an EntityExistsException? |
Yup, looks like that would make sense. |
23c0ac4
to
d6743d6
Compare
I moved the |
3697c51
to
e5a8e17
Compare
9747f37
to
2858693
Compare
/build_test |
Workflow started at 2/6/2024, 2:52:24 PM. View Actions Run. |
CI build and push: All tests pass ✅ |
1 similar comment
CI build and push: All tests pass ✅ |
Welcome to Cryostat3! 👋
Before contributing, make sure you have:
main
branch[chore, ci, docs, feat, fix, test]
To recreate commits with GPG signature
git fetch upstream && git rebase --force --gpg-sign upstream/main
Related to cryostatio/cryostat-web#1192