-
Notifications
You must be signed in to change notification settings - Fork 21
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
Improve ConstraintAction Error Messages #1177
Conversation
I'm highly supportive of improving these error messages 🚀 I was preparing for a demo this morning, and ran into "input mismatch exception". I think longer term we'll want the UI to specially handle these messages. As far as this PR is concerned, I want to workshop the messages to make sure they are accurate enough to be actionable. The two cases seem to be:
|
There are three cases, actually:
Cases 1 and 3 share an error class but have unique error messages in the |
07462aa
to
0e1757e
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.
Couple clarifying questions - I have a feeling the messages might still be a bit misleading
merlin-server/src/main/java/gov/nasa/jpl/aerie/merlin/server/services/ConstraintAction.java
Show resolved
Hide resolved
merlin-server/src/main/java/gov/nasa/jpl/aerie/merlin/server/services/ConstraintAction.java
Show resolved
Hide resolved
0e1757e
to
bb8f048
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.
💯
The errors will now correctly distinguish between a plan never being simulated and a specified sim dataset not existing. Additionally, the serialializer for SimDatasetMismatch now refers to the correct extension.
bb8f048
to
f597278
Compare
Description
Follow up to #1169.
The action will now correctly distinguish between a plan never being simulated and a specified sim dataset not existing when erroring on
resultsHandle$
being empty.Additionally, the serializer for SimDatasetMismatch now refers to the correct extension.
Verification
A bindings test has been added. The bindings test fo the
SimDatasetMismatch
exception has been updated.Documentation
No docs changes needed.