Chromium Code Reviews| Index: go/src/infra/monorail/monorail.proto |
| diff --git a/go/src/infra/monorail/monorail.proto b/go/src/infra/monorail/monorail.proto |
| index ecec53a0a63540b12cf719305a45178ac34d929a..64a300ee8d12f01908e104573d84e9b289cae8b3 100644 |
| --- a/go/src/infra/monorail/monorail.proto |
| +++ b/go/src/infra/monorail/monorail.proto |
| @@ -18,6 +18,8 @@ service Monorail { |
| rpc InsertIssue(InsertIssueRequest) returns (InsertIssueResponse){}; |
| // Posts a comment to an issue. Can update issue attributes, such as status. |
| rpc InsertComment(InsertCommentRequest) returns (InsertCommentResponse){}; |
| + // Lists issues from a project. |
| + rpc IssuesList(IssuesListRequest) returns (IssuesListResponse){}; |
| } |
| // A monorail issue. |
| @@ -100,6 +102,64 @@ message InsertCommentRequest { |
| message InsertCommentResponse{} |
| +// Request for a list of Monorail.Issue() |
|
nodir
2016/06/09 15:55:55
Why "()"?
seanmccullough1
2016/06/09 16:11:40
Why the () on every other Request message comment
nodir
2016/06/09 16:20:16
because those are RPCs, e.g. Monorail is a service
seanmccullough1
2016/06/09 16:26:27
oops sorry. Done.
|
| +message IssuesListRequest { |
| + // String name of the project, e.g. "chromium". |
| + string projectId = 1; |
| + // Additional projects to search. |
| + repeated string additionalProject = 2; |
| + enum CannedQuery { |
| + ALL = 0; |
| + NEW = 1; |
| + OPEN = 2; |
| + OWNED = 3; |
| + REPORTED = 4; |
| + STARRED = 5; |
| + TO_VERIFY = 6; |
| + } |
| + // Use a canned query. |
| + CannedQuery can = 3; |
| + // Issue label. |
| + string label = 4; |
|
nodir
2016/06/09 15:55:55
this field should have been repeated
I've filed ht
seanmccullough1
2016/06/09 16:11:41
see comment on bug
nodir
2016/06/09 16:20:16
then document that this is a space-separated list
seanmccullough1
2016/06/09 16:26:27
Done.
|
| + // Maximum results to retrieve. |
| + int32 maxResults = 5; |
| + // Issue owner. |
| + string owner = 6; |
| + // Search for Issues published before this timestamp. |
| + int64 publishedMax = 7; |
| + // Search for Issues published after this timestamp. |
| + int64 publishedMin = 8; |
| + // Free-form text query. |
| + string q = 9; |
| + // Sort-by field. |
| + string sort = 10; |
|
nodir
2016/06/09 15:55:55
same here
seanmccullough1
2016/06/09 16:11:41
The point of this CL is to make it possible to use
nodir
2016/06/09 16:20:15
ack
|
| + // Starting index for pagination. |
| + int32 startIndex = 11; |
| + // Issue status. |
| + string status = 12; |
| + // Search for Issues most recently updated before this timestamp. |
| + int64 updatedMax = 13; |
| + // Search for Issues most recently updated after this timestamp. |
| + int64 updatedMin = 14; |
| +} |
| + |
| +message ErrorMessage { |
| + int32 code = 1; |
| + string reason = 2; |
| + string message = 3; |
| +} |
| + |
| +message IssuesListResponse { |
| + ErrorMessage error = 1; |
| + // Search results. |
| + repeated Issue items = 2; |
| + // Total size of matching result set, regardless of how many are included |
| + // in this response. |
| + int32 totalResults = 3; |
| + // Should always be "monorail#issueList" |
| + string kind = 4; |
|
nodir
2016/06/09 15:55:55
kind is endpoints-specific (included in all respon
seanmccullough1
2016/06/09 16:11:41
Done.
|
| +} |
| + |
| // Defines a mutation to an issue. |
| // This message is partial. |
| // Derived from Update type in api_pb2_v1.py. |