Skip to content

Commit

Permalink
Merge pull request #46 from gemini-hlsw/GSCHED-724
Browse files Browse the repository at this point in the history
Schema changed to match timeLoss key
  • Loading branch information
dngomez authored Aug 23, 2024
2 parents 499f45a + 47b4755 commit c359640
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/components/GlobalState/scheduleSubscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ export const subscriptionQueueSchedule = graphql(`
}
}
nightStats {
timeloss
timeLoss
planScore
timeloss
nToos
completionFraction
programCompletion
Expand Down
2 changes: 1 addition & 1 deletion src/components/Results/NightPlanSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function NightPlanSummary({
<div className="summary">
<h4 className="title">Night Plan {nightTitle}</h4>
<div className="body">
<div>Timeloss: {nightState.timeloss}</div>
<div>Timeloss: {nightState.timeLoss}</div>
<div>Cloud Cover: {nightConditions.cc}</div>
<div>Image Quality: {nightConditions.iq}</div>
{/* <Tag icon="pi pi-cloud">
Expand Down
4 changes: 2 additions & 2 deletions src/gql/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
*/
const documents = {
"\n query testSubQuery(\n $scheduleId: String!\n $startTime: String!\n $endTime: String!\n $sites: Sites!\n $mode: SchedulerModes!\n $numNightsToSchedule: Int!\n $semesterVisibility: Boolean!\n $thesisFactor: Float\n $power: Int\n ) {\n testSubQuery(\n scheduleId: $scheduleId\n newScheduleInput: {\n startTime: $startTime\n sites: $sites\n mode: $mode\n endTime: $endTime\n thesisFactor: $thesisFactor\n power: $power\n semesterVisibility: $semesterVisibility\n numNightsToSchedule: $numNightsToSchedule\n }\n )\n }\n": types.TestSubQueryDocument,
"\n subscription queueSchedule($scheduleId: String!) {\n queueSchedule(scheduleId: $scheduleId) {\n nightPlans {\n nightTimeline {\n nightIndex\n timeEntriesBySite {\n site\n mornTwilight\n eveTwilight\n timeEntries {\n startTimeSlots\n event\n plan {\n startTime\n nightConditions {\n iq\n cc\n }\n visits {\n obsId\n endTime\n altitude\n atomEndIdx\n atomStartIdx\n startTime\n instrument\n fpu\n disperser\n filters\n score\n obsClass\n completion\n peakScore\n requiredConditions {\n iq\n cc\n }\n }\n nightStats {\n timeloss\n planScore\n timeloss\n nToos\n completionFraction\n programCompletion\n }\n }\n }\n }\n }\n }\n plansSummary\n }\n }\n": types.QueueScheduleDocument,
"\n subscription queueSchedule($scheduleId: String!) {\n queueSchedule(scheduleId: $scheduleId) {\n nightPlans {\n nightTimeline {\n nightIndex\n timeEntriesBySite {\n site\n mornTwilight\n eveTwilight\n timeEntries {\n startTimeSlots\n event\n plan {\n startTime\n nightConditions {\n iq\n cc\n }\n visits {\n obsId\n endTime\n altitude\n atomEndIdx\n atomStartIdx\n startTime\n instrument\n fpu\n disperser\n filters\n score\n obsClass\n completion\n peakScore\n requiredConditions {\n iq\n cc\n }\n }\n nightStats {\n timeLoss\n planScore\n nToos\n completionFraction\n programCompletion\n }\n }\n }\n }\n }\n }\n plansSummary\n }\n }\n": types.QueueScheduleDocument,
};

/**
Expand All @@ -24,7 +24,7 @@ export function graphql(source: "\n query testSubQuery(\n $scheduleId: Strin
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(source: "\n subscription queueSchedule($scheduleId: String!) {\n queueSchedule(scheduleId: $scheduleId) {\n nightPlans {\n nightTimeline {\n nightIndex\n timeEntriesBySite {\n site\n mornTwilight\n eveTwilight\n timeEntries {\n startTimeSlots\n event\n plan {\n startTime\n nightConditions {\n iq\n cc\n }\n visits {\n obsId\n endTime\n altitude\n atomEndIdx\n atomStartIdx\n startTime\n instrument\n fpu\n disperser\n filters\n score\n obsClass\n completion\n peakScore\n requiredConditions {\n iq\n cc\n }\n }\n nightStats {\n timeloss\n planScore\n timeloss\n nToos\n completionFraction\n programCompletion\n }\n }\n }\n }\n }\n }\n plansSummary\n }\n }\n"): (typeof documents)["\n subscription queueSchedule($scheduleId: String!) {\n queueSchedule(scheduleId: $scheduleId) {\n nightPlans {\n nightTimeline {\n nightIndex\n timeEntriesBySite {\n site\n mornTwilight\n eveTwilight\n timeEntries {\n startTimeSlots\n event\n plan {\n startTime\n nightConditions {\n iq\n cc\n }\n visits {\n obsId\n endTime\n altitude\n atomEndIdx\n atomStartIdx\n startTime\n instrument\n fpu\n disperser\n filters\n score\n obsClass\n completion\n peakScore\n requiredConditions {\n iq\n cc\n }\n }\n nightStats {\n timeloss\n planScore\n timeloss\n nToos\n completionFraction\n programCompletion\n }\n }\n }\n }\n }\n }\n plansSummary\n }\n }\n"];
export function graphql(source: "\n subscription queueSchedule($scheduleId: String!) {\n queueSchedule(scheduleId: $scheduleId) {\n nightPlans {\n nightTimeline {\n nightIndex\n timeEntriesBySite {\n site\n mornTwilight\n eveTwilight\n timeEntries {\n startTimeSlots\n event\n plan {\n startTime\n nightConditions {\n iq\n cc\n }\n visits {\n obsId\n endTime\n altitude\n atomEndIdx\n atomStartIdx\n startTime\n instrument\n fpu\n disperser\n filters\n score\n obsClass\n completion\n peakScore\n requiredConditions {\n iq\n cc\n }\n }\n nightStats {\n timeLoss\n planScore\n nToos\n completionFraction\n programCompletion\n }\n }\n }\n }\n }\n }\n plansSummary\n }\n }\n"): (typeof documents)["\n subscription queueSchedule($scheduleId: String!) {\n queueSchedule(scheduleId: $scheduleId) {\n nightPlans {\n nightTimeline {\n nightIndex\n timeEntriesBySite {\n site\n mornTwilight\n eveTwilight\n timeEntries {\n startTimeSlots\n event\n plan {\n startTime\n nightConditions {\n iq\n cc\n }\n visits {\n obsId\n endTime\n altitude\n atomEndIdx\n atomStartIdx\n startTime\n instrument\n fpu\n disperser\n filters\n score\n obsClass\n completion\n peakScore\n requiredConditions {\n iq\n cc\n }\n }\n nightStats {\n timeLoss\n planScore\n nToos\n completionFraction\n programCompletion\n }\n }\n }\n }\n }\n }\n plansSummary\n }\n }\n"];

/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
Expand Down
Loading

0 comments on commit c359640

Please sign in to comment.