Make response of get code owners REST endpoints extensible

At the moment the get code owners REST endpoints return a list of
CodeOwnerInfo's. This doesn't allow us to add further fields to the
response in the future (e.g. we consider adding an
"owned_by_all_users" boolean field). To make the response extensible
we change it from returning List<CodeOwnerInfo> to returning
CodeOwnersInfo that has a "code_owners" field that contains the code
owners as List<CodeOwnerInfo>.

This is a backwards incompatible change and breaks existing callers of
this API. To avoid this the frontend was adapted to be able to
understand both response formats and other existing callers that we know
are okay to be broken temporarily until they adapt to the new response
format.

Change-Id: Ib0c4c8edf3952b48bccdc99baf77380a3b3f0c49
Signed-off-by: Edwin Kempin <ekempin@google.com>
14 files changed
tree: a784f9fa71e28c20d86075b9f43898c4dcdf68d4
  1. java/
  2. javatests/
  3. proto/
  4. resources/
  5. test/
  6. ui/
  7. .eslintrc.json
  8. .gitignore
  9. .gitreview
  10. bower.json
  11. BUILD
  12. LICENSE
  13. package-lock.json
  14. package.json
  15. README.md
README.md

Gerrit Code Review code-owners plugin

This plugin provides support for defining code owners for files in a repository.

If the code-owners plugin is enabled, changes can only be submitted if all touched files are covered by approvals from code owners.

Also see resources/Documentation/about.md

IMPORTANT: Before installing/enabling the plugin follow the instructions from the setup guide, see resources/Documentation/setup-guide.md