Don't filter out service users when listing code owners for path in branch

Currently we have 2 REST endpoints to list code owners for a path that
behave the same:

* GetCodeOwnersForPathInBranch
* GetCodeOwnersForPathInChange

Going on GetCodeOwnersForPathInChange will be used to suggest code
owners for a path on a change, whereas GetCodeOwnersForPathInBranch
lists all code owners for path. The difference is that for
GetCodeOwnersForPathInChange we will filter out code owners that should
not show up in the suggestion (e.g. service users) whereas
GetCodeOwnersForPathInBranch includes all code owners.

The frontend part was already adapted to use
GetCodeOwnersForPathInChange for suggestion code owners (see change
Ie04e60913).

GetCodeOwnersForPathInBranch is not used by the frontend, but is
intended to be used by bots that want to query all code owners.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: Ifbec40349fa1bde36ea36822e6f4bc2a39fd295e
7 files changed
tree: a89f982901dcd629ba4d3225904bab81e42ec591
  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