Skip to content

Commit

Permalink
Update ODB Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
lucuma-steward[bot] committed Nov 20, 2024
1 parent f75e98f commit 98fe08d
Showing 1 changed file with 47 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5028,7 +5028,7 @@ type Execution {
): ExecutionConfig

"""Determines the execution state as a whole of this observation."""
state: ObservationExecutionState!
executionState: ExecutionState!

"""
Executed (or at least partially executed) atom records, across all visits.
Expand Down Expand Up @@ -6646,22 +6646,23 @@ type Observation {
workflow: ObservationWorkflow!
}

enum ObservationExecutionState {
enum ExecutionState {
"""
The observation isn't sufficiently defined, or there is a problem that
must first be resolved.
The sequence or observation isn't sufficiently defined, or there is a problem
that must first be resolved.
"""
NOT_DEFINED

"""No execution visit has been recorded for this observation."""
"""No execution visit has been recorded."""
NOT_STARTED

"""
At least one visit was made for this observation, but it is not yet complete.
At least one visit was made, but the sequence or observation is not yet
complete.
"""
ONGOING

"""No more science data is expected for this observation."""
"""No more data is expected."""
COMPLETED
}

Expand Down Expand Up @@ -7362,6 +7363,34 @@ type Query {
includeDeleted: Boolean! = false
): ObservationSelectResult!

"""
Observations grouped by commonly held observing modes. Identify the program by
specifying only one of programId, programReference, or proposalReference. If
more than one is provided, all must match. If none are set, nothing will
match.
"""
observingModeGroup(
"""Program ID"""
programId: ProgramId

"""Proposal Reference"""
proposalReference: ProposalReferenceLabel

"""Program reference"""
programReference: ProgramReferenceLabel

"""Filters the selection of observations."""
WHERE: WhereObservation

"""
Limits the result to at most this number of matches (but never more than 1000).
"""
LIMIT: NonNegInt

"""Set to true to include deleted values"""
includeDeleted: Boolean! = false
): ObservingModeGroupSelectResult!

"""
Returns the program with the given id or reference, if any. Identify the
program by specifying only one of programId, programReference, or
Expand Down Expand Up @@ -7530,9 +7559,6 @@ type ObservingMode {
}

type ObservingModeGroup {
"""IDs of observations that use the same constraints"""
observationIds: [ObservationId!]!

"""Observations associated with the common value"""
observations(
"""Set to true to include deleted values"""
Expand All @@ -7550,7 +7576,10 @@ type ObservingModeGroup {
): ObservationSelectResult!

"""Commonly held value across the observations"""
observingMode: ObservingMode
observingMode: ObservingMode!

"""Link back to program."""
program: Program!
}

"""
Expand Down Expand Up @@ -7679,6 +7708,13 @@ type SequenceDigest {
and any remaining atoms not included in 'possibleFuture'.
"""
atomCount: NonNegInt!

"""
Execution state for the sequence. Note, acquisition sequences are never
'COMPLETED'. The execution state for the observation as a whole is that of
the science sequence.
"""
executionState: ExecutionState!
}

"""
Expand Down

0 comments on commit 98fe08d

Please sign in to comment.