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

remove old workflow state fields #1459

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

remove old workflow state fields #1459

wants to merge 1 commit into from

Conversation

tpolecat
Copy link
Member

@tpolecat tpolecat commented Oct 25, 2024

WIP - IGNORE

This removes ObsStatus, ObsActiveStatus, and the forReview field, all of which are subsumed by ObservationWorkflowState. A followup PR will add an internal user state that allows the user to set the workflow state to Inactive and Ready when appropriate.

Explore should remove references to these things in preparation for the schema change.

@@ -72,7 +71,7 @@ trait GeneratorParamsService[F[_]] {

def selectAll(
programId: Program.Id,
minStatus: ObsStatus = ObsStatus.New,
// minStatus: ObsStatus = ObsStatus.New,
Copy link
Member Author

Choose a reason for hiding this comment

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

This parameter filters the observations we consider, but it's unused thus far (the only call uses the default status of New, which effectively means no filtering). Because workflow status isn't [yet] computable in the database maybe we could just hardcode it to filter out inactive observations? Inactivity will be coded in a column in a followup PR.

@@ -1,690 +0,0 @@
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA)
Copy link
Member Author

Choose a reason for hiding this comment

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

The validations field was removed and is now on workflow.validationErrors. The associated tests (in observation_workflow) include the tests here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant