Skip to content

Commit

Permalink
Merge pull request #16 from HumairAK/ver_id
Browse files Browse the repository at this point in the history
UPSTREAM: <carry>: feat: expose more filters for runs/jobs
  • Loading branch information
HumairAK authored Feb 9, 2024
2 parents 410a82d + e3aad5b commit d48d383
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
18 changes: 11 additions & 7 deletions backend/src/apiserver/model/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,17 @@ func (j *Job) DefaultSortField() string {
}

var jobAPIToModelFieldMap = map[string]string{
"id": "UUID", // v1beta1 API
"recurring_run_id": "UUID", // v2beta1 API
"name": "DisplayName", // v1beta1 API
"display_name": "DisplayName", // v2beta1 API
"created_at": "CreatedAtInSec",
"updated_at": "UpdatedAtInSec",
"description": "Description",
"id": "UUID", // v1beta1 API
"recurring_run_id": "UUID", // v2beta1 API
"name": "DisplayName", // v1beta1 API
"display_name": "DisplayName", // v2beta1 API
"created_at": "CreatedAtInSec",
"updated_at": "UpdatedAtInSec",
"description": "Description",
"experiment_id": "ExperimentUUID", // v2beta1 API
"pipeline_name": "PipelineName", // v2beta1 API
"pipeline_version_id": "PipelineVersionId", // v2beta1 API
"pipeline_id": "PipelineId", // v2beta1 API
}

// APIToModelFieldMap returns a map from API names to field names for model Job.
Expand Down
1 change: 1 addition & 0 deletions backend/src/apiserver/model/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ var runAPIToModelFieldMap = map[string]string{
"state_history": "StateHistory", // v2beta1 API
"runtime_details": "PipelineRuntimeManifest", // v2beta1 API
"recurring_run_id": "RecurringRunId", // v2beta1 API
"pipeline_name": "PipelineName", // v2beta1 API
"pipeline_version_id": "PipelineVersionId", // v2beta1 API
"pipeline_id": "PipelineId", // v2beta1 API
}
Expand Down

0 comments on commit d48d383

Please sign in to comment.