-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add execution state to sequence digest (#973)
* Add execution state to sequence digest * mima * rename
- Loading branch information
Showing
5 changed files
with
80 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
modules/core/shared/src/main/scala/lucuma/core/enums/ExecutionState.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA) | ||
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause | ||
|
||
package lucuma.core.enums | ||
|
||
import lucuma.core.util.Enumerated | ||
|
||
/** | ||
* The execution state of a sequence or observation. | ||
*/ | ||
enum ExecutionState(val tag: String) derives Enumerated: | ||
|
||
/** | ||
* The observation isn't sufficiently defined, or there is a problem that | ||
* must first be resolved before the execution state may be determined. | ||
*/ | ||
case NotDefined extends ExecutionState("not_defined") | ||
|
||
/** No execution visit has been recorded for this observation. */ | ||
case NotStarted extends ExecutionState("not_started") | ||
|
||
/** | ||
* At least one visit was made for this observation, but the sequence or | ||
* observation is not yet complete. | ||
*/ | ||
case Ongoing extends ExecutionState("ongoing") | ||
|
||
/** No more data is expected for this observation or sequence. */ | ||
case Completed extends ExecutionState("completed") |
26 changes: 0 additions & 26 deletions
26
modules/core/shared/src/main/scala/lucuma/core/enums/ObservationExecutionState.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters