-
Notifications
You must be signed in to change notification settings - Fork 24
feat: add optimus replay list #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
55b0dc6
5e972d9
2948d74
728e88f
5723ffe
dbb519a
f5401d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -194,6 +194,11 @@ service RuntimeService { | |
| get: "/v1/project/{project_name}/job/{job_name}/replay/{id}" | ||
| }; | ||
| } | ||
| rpc GetReplayList(GetReplayListRequest) returns (GetReplayListResponse) { | ||
| option (google.api.http) = { | ||
| get: "/v1/project/{project_name}/replay/list" | ||
|
||
| }; | ||
| } | ||
| // TODO(kush.sharma): disabled ATM | ||
| //rpc DeleteResource(DeleteResourceRequest) returns (DeleteResourceResponse) {} | ||
|
|
||
|
|
@@ -660,4 +665,21 @@ message RegisterJobEventRequest { | |
| JobEvent event = 4; | ||
| } | ||
|
|
||
| message RegisterJobEventResponse {} | ||
| message RegisterJobEventResponse {} | ||
|
|
||
| message GetReplayListRequest { | ||
| string project_name = 1; | ||
| } | ||
|
|
||
| message GetReplayListResponse { | ||
| repeated ReplaySpec replay_list = 1; | ||
| } | ||
|
|
||
| message ReplaySpec { | ||
| string id = 1; | ||
| string job_name = 2; | ||
| string start_date = 3; | ||
|
||
| string end_date = 4; | ||
| string state = 5; | ||
| google.protobuf.Timestamp created_at = 6; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we call
ListReplaysThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReplayListsounds better to me, but you have concern on this? And should we change the GetReplayStatus too?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we considering replay as a resource? In that case, I guess it should be
replaysin endpoint and ListReplays in the method.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replays seems more descriptive. but i'm seeing other endpoints are not in a plural word, for example when getting projects or resource specs. thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
understood why
ListReplaysis better, just went through the method naming convention.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems Optimus is using singular in all the endpoint, do you think it is acceptable to keep as it is @ravisuhag ? if not, we need to apply the changes to the others as well to keep it in uniform. cc @kushsharma
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Planning to resolve this and thinking to just follow the current Optimus convention to use singular, and if a change in convention is needed, will handle it in a different issue. Please let me know if you have any concern on this, @ravisuhag