Adapt whole plugin codebase to 3.0 release API use

Adapt to the sole NoteDb, thus remove ReviewDb incl. OrmException usage.

DatabaseRenameHandler:
- Make oldProjectKey a consistently reused instance field, for
  getChangeIds to logically initialize -as before this change.
- Introduce a changeNotes instance field, built from that oldProjectKey.
- Preserve the classic iterator use in getChangeIds; refactor follow-up.
- Adapt rollback to NoteDb, which path being still not covered by tests.
- Should a rollback itself fail, keep trying to roll other updates back.

RenameLogLayout: use TODO to denote the already inaccurate doc comments.

Bug: Issue 10525
Change-Id: I95f151cdcd83e2b1244359e2cd85e4ad9e082141
11 files changed
tree: b19b6a8b9e828076d84f286239f8cde1e13eb0e1
  1. .settings/
  2. src/
  3. tools/
  4. .bazelignore
  5. .bazelrc
  6. .gitignore
  7. bazlets.bzl
  8. BUILD
  9. external_plugin_deps.bzl
  10. LICENSE
  11. README.md
  12. WORKSPACE
README.md

Rename project plugin for Gerrit Code Review

This plugin currently supports Gerrit version 2.14.X and 2.15.X with changes in reviewDb, noteDB is not yet supported.

For more information, see: src/main/resources/Documentation/about.md