Parse and serve reviewer updates via REST API
Parses updates to a change's reviewers, and serves them with the change details. Will be picked up by PolyGerrit UI and displayed in change's messages section in follow-up change. Feature availability depends on NoteDb migration. Feature: Issue 4148 Change-Id: I50e75ba9e5a885de4733a3a8d7d156d3729d1d91
This commit is contained in:
@@ -66,7 +66,10 @@ public enum ListChangesOption {
|
||||
COMMIT_FOOTERS(17),
|
||||
|
||||
/** Include push certificate information along with any patch sets. */
|
||||
PUSH_CERTIFICATES(18);
|
||||
PUSH_CERTIFICATES(18),
|
||||
|
||||
/** Include change's reviewer updates. */
|
||||
REVIEWER_UPDATES(19);
|
||||
|
||||
private final int value;
|
||||
|
||||
|
@@ -53,6 +53,7 @@ public class ChangeInfo {
|
||||
public Map<String, Collection<String>> permittedLabels;
|
||||
public Collection<AccountInfo> removableReviewers;
|
||||
public Map<ReviewerState, Collection<AccountInfo>> reviewers;
|
||||
public Collection<ReviewerUpdateInfo> reviewerUpdates;
|
||||
public Collection<ChangeMessageInfo> messages;
|
||||
|
||||
public String currentRevision;
|
||||
|
@@ -0,0 +1,26 @@
|
||||
// Copyright (C) 2016 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.gerrit.extensions.common;
|
||||
|
||||
import com.google.gerrit.extensions.client.ReviewerState;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class ReviewerUpdateInfo {
|
||||
public Timestamp updated;
|
||||
public AccountInfo updatedBy;
|
||||
public AccountInfo reviewer;
|
||||
public ReviewerState state;
|
||||
}
|
Reference in New Issue
Block a user