Port AddReviewer to new REST API
Reviewers can now be added by a POST to /changes/*/reviewers with body containing the reviewer string to search for. The new code closely parallels the old but is simplified where possible. The new handler only supports putting a single reviewer, which is all the old handler was ever used for. Error handling is also simplified, using server-supplied error text. The response body includes a list "reviewers" of reviewers that were newly added (which may be empty if), or an "error" string and optional "confirm" boolean. If "confirm" is true, the error text describes why confirmation is required, and redoing the POST with "confirmed": true in the JSON body indicates confirmation. Change-Id: If3d72bc1d3be7f6b96bfae7819d8b4b575104eaa
This commit is contained in:

committed by
Edwin Kempin

parent
d386499438
commit
675879a733
@@ -0,0 +1,5 @@
|
||||
# Changes to this file should also be made in
|
||||
# gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/ChangeMessages.properties
|
||||
groupIsNotAllowed = The group {0} cannot be added as reviewer.
|
||||
groupHasTooManyMembers = The group {0} has too many members to add them all as reviewers.
|
||||
groupManyMembersConfirmation = The group {0} has {1} members. Do you want to add them all as reviewers?
|
Reference in New Issue
Block a user