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

Update ODB Schema #606

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading