-
Notifications
You must be signed in to change notification settings - Fork 28
Default parameters for procedural constraints/scheduling goals #1744
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
Default parameters for procedural constraints/scheduling goals #1744
Conversation
baa01d8 to
6947330
Compare
6947330 to
3196c6c
Compare
3196c6c to
9ca0ea8
Compare
|
9ca0ea8 to
1e089fc
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.
Tested with @mattdailis & seems to be working correctly - though we still need UI support to show the defaults correctly. This would be safe to merge without UI though, as a hidden feature until UI is implemented.
We found a couple small things in the e2e tests which we'd like to fix before release:
TemplateDefaultsTests.java&TemplateParametersTest.javaseem to be testing the same procedure the same way - one of these should probably test DumbRecurrenceGoal instead, & should fail if the required arg is not provided in that caseBasicConstraintTests.java- less important, but we could check violations or arguments on constraint run to confirm args were passed - currently it just checks that the constraint ran successfully
@mattdailis will look into these. thanks!
Done 👍 See last two commits: " Test both versions of DumbRecurrenceGoal" and "Add assertions to BasicConstraintTests". |
f2fe1c6 to
b25592b
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.
Thanks @mattdailis for updating tests - this is ready to merge.
For posterity - this still needs UI support, but we decided to merge the backend for now & merge the UI portion separately, since this doesn't break anything & works on the backend.


Description
Copy/paste what has been done for the mission model annotations. There's one less type of default parameters as we allow only records when writing procedural goals/constraints.
Same for the endpoints for getting effective arguments. Very similar.
Verification
New tests. I noticed that procedural constraints did not have tests.
Documentation
Documentation about the new annotations and endpoints need to be added
Future work
UI work to use the effective arguments endpoints