Add REST endpoint to rename operation

Implement Rest API equivalent to the ssh rename command with usage of
projects API. New project name is getting passed in through json request

With this change the plugin will be able to receive rename requests not
only through ssh but also through its new endpoint, making it more
testable with frameworks that utilise http, such as Gatling.

DatabaseRenameHandler has no support for reviewDB in versions 3.0 and up
and that created conflict during cherry-pick. This resolution is making
the rename method to use renameInReviewDb and renameInNoteDb again.

Change-Id: I0ce0ce68a4d5e65569e8b14a580f7890ef70075b
(cherry picked from commit 94dd6934e9ab5fe03961ae431b5d50f6610f4e65)
9 files changed
tree: 168036c32eeabc19a5dfb49ad8598f8967b8dd7b
  1. .settings/
  2. src/
  3. tools/
  4. .bazelignore
  5. .bazelrc
  6. .bazelversion
  7. .gitignore
  8. bazlets.bzl
  9. BUILD
  10. external_plugin_deps.bzl

Rename project plugin for Gerrit Code Review

This plugin currently supports Gerrit version 2.14.X and 2.15.X with changes in reviewDb. Also supported is the noteDb alternative for Gerrit versions 2.15.X and above.

For more information, see: src/main/resources/Documentation/