Skip to content

Conversation

@adrienmaillard
Copy link
Contributor

@adrienmaillard adrienmaillard commented Sep 24, 2025

  • Tickets addressed: ?
  • Review: By commit
  • Merge strategy: Merge (no squash)

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

@adrienmaillard adrienmaillard self-assigned this Sep 24, 2025
@adrienmaillard adrienmaillard added feature A new feature or feature request scheduling Anything related to the scheduling domain constraints Anything related to the constraints domain labels Sep 24, 2025
@adrienmaillard adrienmaillard force-pushed the feature/default-scheduling-goal-parameters branch from baa01d8 to 6947330 Compare September 24, 2025 17:31
@adrienmaillard adrienmaillard force-pushed the feature/default-scheduling-goal-parameters branch from 6947330 to 3196c6c Compare October 1, 2025 18:18
@adrienmaillard adrienmaillard marked this pull request as ready for review October 1, 2025 18:22
@adrienmaillard adrienmaillard requested a review from a team as a code owner October 1, 2025 18:22
@adrienmaillard adrienmaillard requested review from JoelCourtney, dandelany, joshhaug and mattdailis and removed request for dandelany and joshhaug October 1, 2025 18:22
@adrienmaillard adrienmaillard force-pushed the feature/default-scheduling-goal-parameters branch from 3196c6c to 9ca0ea8 Compare October 1, 2025 18:52
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 1, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
11.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Copy link
Collaborator

@dandelany dandelany left a 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.java seem 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 case
  • BasicConstraintTests.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!

@mattdailis
Copy link
Collaborator

@mattdailis will look into these. thanks!

Done 👍 See last two commits: " Test both versions of DumbRecurrenceGoal" and "Add assertions to BasicConstraintTests".

@dandelany dandelany force-pushed the feature/default-scheduling-goal-parameters branch from f2fe1c6 to b25592b Compare January 13, 2026 00:31
Copy link
Collaborator

@dandelany dandelany left a 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.

@dandelany dandelany merged commit df01cb0 into develop Jan 13, 2026
10 checks passed
@dandelany dandelany deleted the feature/default-scheduling-goal-parameters branch January 13, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

constraints Anything related to the constraints domain feature A new feature or feature request scheduling Anything related to the scheduling domain

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants