Skip to content

Commit

Permalink
Support filtering on storage state (#629)
Browse files Browse the repository at this point in the history
* filter on storage state

* fix case

* Update run.go

* storageState -> storage_state

* ignore generated ts client libs

* remove url import to make tslint happy
  • Loading branch information
yebrahim authored and k8s-ci-robot committed Jan 11, 2019
1 parent 4b5c031 commit df635af
Show file tree
Hide file tree
Showing 25 changed files with 167 additions and 604 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ frontend/package-lock.json linguist-generated
frontend/server/package-lock.json linguist-generated
frontend/test/package-lock.json linguist-generated

# Ignore generated TS client library
frontend/src/apis/* linguist-generated
228 changes: 114 additions & 114 deletions backend/api/go_client/run.pb.go

Large diffs are not rendered by default.

224 changes: 0 additions & 224 deletions backend/api/go_http_client/job_model/api_job.go--

This file was deleted.

92 changes: 0 additions & 92 deletions backend/api/go_http_client/job_model/api_periodic_schedule.go--

This file was deleted.

4 changes: 2 additions & 2 deletions backend/api/go_http_client/run_model/api_run.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/api/run.proto
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ message Run {
STORAGESTATE_ARCHIVED = 1;
}

StorageState storageState = 10;
StorageState storage_state = 10;

// Optional input field. Describing the purpose of the run
string description = 3;
Expand Down
2 changes: 1 addition & 1 deletion backend/api/swagger/run.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions backend/src/apiserver/model/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ func (r *Run) DefaultSortField() string {
}

var runAPIToModelFieldMap = map[string]string{
"id": "UUID",
"name": "DisplayName",
"created_at": "CreatedAtInSec",
"description": "Description",
"scheduled_at": "ScheduledAtInSec",
"id": "UUID",
"name": "DisplayName",
"created_at": "CreatedAtInSec",
"description": "Description",
"scheduled_at": "ScheduledAtInSec",
"storage_state": "StorageState",
}

// APIToModelFieldMap returns a map from API names to field names for model Run.
Expand Down
Loading

0 comments on commit df635af

Please sign in to comment.