From d9027a7238aa939f7f2ee65369411203e57a7627 Mon Sep 17 00:00:00 2001 From: Phil Renaud Date: Thu, 18 May 2023 17:38:34 -0400 Subject: [PATCH] Fixes to scheduling-filtering-in-ui (#17244) --- api/allocations.go | 2 +- ui/app/components/job-status/failed-or-lost.hbs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/allocations.go b/api/allocations.go index 6ef6286ad..87f7d9b11 100644 --- a/api/allocations.go +++ b/api/allocations.go @@ -326,7 +326,7 @@ func (a *Allocation) Stub() *AllocationListStub { TaskStates: a.TaskStates, DeploymentStatus: a.DeploymentStatus, FollowupEvalID: a.FollowupEvalID, - NextAllocation: a.JobID, + NextAllocation: a.NextAllocation, RescheduleTracker: a.RescheduleTracker, PreemptedAllocations: a.PreemptedAllocations, PreemptedByAllocation: a.PreemptedByAllocation, diff --git a/ui/app/components/job-status/failed-or-lost.hbs b/ui/app/components/job-status/failed-or-lost.hbs index 422d67ac1..0f0116dc4 100644 --- a/ui/app/components/job-status/failed-or-lost.hbs +++ b/ui/app/components/job-status/failed-or-lost.hbs @@ -14,7 +14,7 @@ @condition={{this.shouldLinkToAllocations}} @route="jobs.job.allocations" @model={{@job}} - @query={{hash scheduling=(concat '["has-been-rescheduled"]') version=(concat '[' @job.latestDeployment.versionNumber ']')}} + @query={{hash scheduling='["has-been-rescheduled"]' version=(concat '[' @job.latestDeployment.versionNumber ']')}} @label="View Allocations" @class="failed-or-lost-link" > @@ -26,7 +26,7 @@ @condition={{this.shouldLinkToAllocations}} @route="jobs.job.allocations" @model={{@job}} - @query={{hash scheduling=(concat '["has-been-restarted"]') version=(concat '[' @job.latestDeployment.versionNumber ']')}} + @query={{hash scheduling='["has-been-restarted"]' version=(concat '[' @job.latestDeployment.versionNumber ']')}} @label="View Allocations" @class="failed-or-lost-link" >