Skip to content

Commit

Permalink
Limit observations to ACCEPTED, or ENGINEERING or CALIBRATION programs
Browse files Browse the repository at this point in the history
  • Loading branch information
toddburnside committed Feb 5, 2025
1 parent 6c2f726 commit 252f8ee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,16 @@ object ObsQueriesGQL {
// Revise this when the API supports it OR we start getting obersvations from the scheduler.
val document = s"""
query {
observations() {
observations(
WHERE: {
program: {
OR: [
{ proposalStatus: { EQ: ACCEPTED } }
{ type: { IN: [ENGINEERING, CALIBRATION] } }
]
}
}
) {
matches $ObservationSummarySubquery
}
}
Expand Down
2 changes: 1 addition & 1 deletion project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object Settings {
val lucumaODBSchema = "0.18.3"

// Clue
val clue = "0.43.0"
val clue = "0.43.1"

// ScalaJS libraries
val crystal = "0.47.3"
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.13.1")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.11.1")

// Generate code for GraphQL queries
addSbtPlugin("edu.gemini" % "sbt-clue" % "0.43.0")
addSbtPlugin("edu.gemini" % "sbt-clue" % "0.43.1")

0 comments on commit 252f8ee

Please sign in to comment.