[ui] Adds a "Scheduling" filter to the job.allocations page (#17227)

* Basic filter concept

* Make sure NextAllocation gets sent up with allocation stub
This commit is contained in:
Phil Renaud
2023-05-18 16:24:41 -04:00
committed by GitHub
parent e80945f37d
commit 4335f9f460
8 changed files with 96 additions and 14 deletions

View File

@@ -326,6 +326,7 @@ func (a *Allocation) Stub() *AllocationListStub {
TaskStates: a.TaskStates,
DeploymentStatus: a.DeploymentStatus,
FollowupEvalID: a.FollowupEvalID,
NextAllocation: a.JobID,
RescheduleTracker: a.RescheduleTracker,
PreemptedAllocations: a.PreemptedAllocations,
PreemptedByAllocation: a.PreemptedByAllocation,
@@ -379,6 +380,7 @@ type AllocationListStub struct {
TaskStates map[string]*TaskState
DeploymentStatus *AllocDeploymentStatus
FollowupEvalID string
NextAllocation string
RescheduleTracker *RescheduleTracker
PreemptedAllocations []string
PreemptedByAllocation string