Skip to content
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

sc-4577 eng workflow #1587

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Conversation

tpolecat
Copy link
Member

@tpolecat tpolecat commented Jan 24, 2025

This changes the workflow for engineering programs such that they never generate validation errors, and thus always start in out as Defined. This may or may not be entirely correct.

The logic here is starting to seem OT-like in its weirdness so we may want to refactor once the dust settles. I'm thinking maybe we also need to change the logic for other types of programs.

@mergify mergify bot added the service label Jan 24, 2025
Copy link
Contributor

@swalker2m swalker2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. 👍

@@ -352,7 +354,7 @@ object ObservationWorkflowService {
case Inactive => List(executionState.getOrElse(validationStatus))
case Undefined => List(Inactive)
case Unapproved => List(Inactive)
case Defined => List(Inactive) ++ Option.when(isAccepted)(Ready)
case Defined => List(Inactive) ++ Option.when(isAccepted || info.tpe === ProgramType.Engineering)(Ready)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's true for Engineering is probably true for Calibration and all the others? info.tpe =!= ProgramType.Science

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is sensible, I'll make that change.

@tpolecat tpolecat merged commit e7c9b0a into main Jan 27, 2025
6 checks passed
@tpolecat tpolecat deleted the sc-4577-calibration-engineering-program-workflow branch January 27, 2025 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants