| @@ -2049,6 +2049,13 @@ func InferenceJobIndex(ctx *context.Context) { | |||||
| page = 1 | page = 1 | ||||
| } | } | ||||
| listType := ctx.Query("listType") | |||||
| ctx.Data["ListType"] = listType | |||||
| if listType == models.AllResource { | |||||
| listType = "" | |||||
| } | |||||
| var jobTypes []string | var jobTypes []string | ||||
| jobTypes = append(jobTypes, string(models.JobTypeInference)) | jobTypes = append(jobTypes, string(models.JobTypeInference)) | ||||
| tasks, count, err := models.Cloudbrains(&models.CloudbrainsOptions{ | tasks, count, err := models.Cloudbrains(&models.CloudbrainsOptions{ | ||||
| @@ -2056,9 +2063,10 @@ func InferenceJobIndex(ctx *context.Context) { | |||||
| Page: page, | Page: page, | ||||
| PageSize: setting.UI.IssuePagingNum, | PageSize: setting.UI.IssuePagingNum, | ||||
| }, | }, | ||||
| RepoID: repo.ID, | |||||
| Type: ctx.QueryInt("type"), | |||||
| JobTypes: jobTypes, | |||||
| RepoID: repo.ID, | |||||
| ComputeResource: listType, | |||||
| JobTypes: jobTypes, | |||||
| Type: models.TypeCloudBrainAll, | |||||
| }) | }) | ||||
| if err != nil { | if err != nil { | ||||
| ctx.ServerError("Cloudbrain", err) | ctx.ServerError("Cloudbrain", err) | ||||