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

Unified 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: lowering test coverage 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/src/infra/monorail/monorail.infra_testing ('k') | go/src/infra/monorail/monorail.pb.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1f0c6cb6d5ad0d5b08e935e7ea0a406af06d66af 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 Issues.
+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 or space separated list of labels.
+ string label = 4;
+ // 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 or fields, space separated terms with leading - to
+ // indicate decreasing direction. e.g. "estdays -milestone" to sort by
+ // estdays increasing, then milestone decreasing.
+ string sort = 10;
+ // 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;
+}
+
// Defines a mutation to an issue.
// This message is partial.
// Derived from Update type in api_pb2_v1.py.
« no previous file with comments | « go/src/infra/monorail/monorail.infra_testing ('k') | go/src/infra/monorail/monorail.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698