Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: go/src/infra/monorail/monorail.proto

Issue 2056603002: [monorail go api] add IssuesList rpc (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file *partially* describes Monorail API. 5 // This file *partially* describes Monorail API.
6 // It is derived from 6 // It is derived from
7 // https://chromium.googlesource.com/infra/infra/+/f2e2a4d/appengine/monorail/se rvices/api_svc_v1.py 7 // https://chromium.googlesource.com/infra/infra/+/f2e2a4d/appengine/monorail/se rvices/api_svc_v1.py
8 // and 8 // and
9 // https://chromium.googlesource.com/infra/infra/+/f2e2a4d/appengine/monorail/pr oto/api_pb2_v1.py 9 // https://chromium.googlesource.com/infra/infra/+/f2e2a4d/appengine/monorail/pr oto/api_pb2_v1.py
10 10
11 syntax = "proto3"; 11 syntax = "proto3";
12 12
13 package monorail; 13 package monorail;
14 14
15 // Monorail service can manipulate issues. 15 // Monorail service can manipulate issues.
16 service Monorail { 16 service Monorail {
17 // Creates an issue. 17 // Creates an issue.
18 rpc InsertIssue(InsertIssueRequest) returns (InsertIssueResponse){}; 18 rpc InsertIssue(InsertIssueRequest) returns (InsertIssueResponse){};
19 // Posts a comment to an issue. Can update issue attributes, such as status. 19 // Posts a comment to an issue. Can update issue attributes, such as status.
20 rpc InsertComment(InsertCommentRequest) returns (InsertCommentResponse){}; 20 rpc InsertComment(InsertCommentRequest) returns (InsertCommentResponse){};
21 // Lists issues from a project.
22 rpc IssuesList(IssuesListRequest) returns (IssuesListResponse){};
21 } 23 }
22 24
23 // A monorail issue. 25 // A monorail issue.
24 message Issue { 26 message Issue {
25 // Reporter of the issue. 27 // Reporter of the issue.
26 AtomPerson author = 1; 28 AtomPerson author = 1;
27 // Issues that must be fixed before this one can be fixed. 29 // Issues that must be fixed before this one can be fixed.
28 repeated IssueRef blockedOn = 2; 30 repeated IssueRef blockedOn = 2;
29 // People participating in the issue discussion. 31 // People participating in the issue discussion.
30 repeated AtomPerson cc = 6; 32 repeated AtomPerson cc = 6;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 Update updates = 8; 95 Update updates = 8;
94 } 96 }
95 // Definition of the comment. 97 // Definition of the comment.
96 Comment comment = 1; 98 Comment comment = 1;
97 // The reference to post the comment to. 99 // The reference to post the comment to.
98 IssueRef issue = 2; 100 IssueRef issue = 2;
99 } 101 }
100 102
101 message InsertCommentResponse{} 103 message InsertCommentResponse{}
102 104
105 message IssuesListRequest {
nodir 2016/06/09 04:09:28 Comments world be great, otherwise a reader may ha
seanmccullough1 2016/06/09 15:01:33 Done.
106 string projectId = 1;
107 repeated string additionalProject = 2;
108 enum CannedQuery {
109 ALL = 0;
110 NEW = 1;
111 OPEN = 2;
112 OWNED = 3;
113 REPORTED = 4;
114 STARRED = 5;
115 TO_VERIFY = 6;
116 }
117 CannedQuery can= 3;
martiniss 2016/06/09 02:30:13 space around =
seanmccullough1 2016/06/09 15:01:33 Done.
118 string label = 4;
119 int32 maxResults = 5;
120 string owner = 6;
121 int64 publishedMax = 7;
122 int64 publishedMin = 8;
123 string q = 9;
124 string sort = 10;
125 int32 startIndex = 11;
126 string status = 12;
127 int64 updatedMax = 13;
128 int64 updatedMin = 14;
129 }
130
131 message IssuesListResponse {
132 // error = messages.MessageField(ErrorMessage, 1)
nodir 2016/06/09 04:09:28 Looks like an important field. Why not included?
seanmccullough1 2016/06/09 15:01:33 It was ignored by other Request protos defined her
133 repeated Issue items = 2;
134 int32 totalResults = 3;
135 string kind = 4;
martiniss 2016/06/09 02:30:13 what is this exactly?
seanmccullough1 2016/06/09 15:01:32 I could defer to the original doc: https://chromiu
136 }
137
103 // Defines a mutation to an issue. 138 // Defines a mutation to an issue.
104 // This message is partial. 139 // This message is partial.
105 // Derived from Update type in api_pb2_v1.py. 140 // Derived from Update type in api_pb2_v1.py.
106 message Update { 141 message Update {
107 // If set, the new status of the issue. 142 // If set, the new status of the issue.
108 string status = 2; 143 string status = 2;
109 } 144 }
110 145
111 // Identifies a Monorail user. 146 // Identifies a Monorail user.
112 message AtomPerson { 147 message AtomPerson {
113 // User email. 148 // User email.
114 string name = 1; 149 string name = 1;
115 } 150 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698