Suggest owners that are reviewers even if annotated with LAST_RESORT_SUGGESTION

So far code owners that are annotated with LAST_RESORT_SUGGESTION were
only suggested if the suggestion result would be empty otherwise. This
meant that these code owners were also not suggested after they have
been manually added as a reviewer. Due to this the UI couldn't show
files that were owned by these users with a check mark (= covered by a
reviewer) as the UI only considers code owners that are part of the
suggestion. To fix this issue, code owners that are annotated with
LAST_RESORT_SUGGESTION are now also included in the suggestion result if
they are already a reviewer. This means if a code owner is already a
reviewer the LAST_RESORT_SUGGESTION annotation is ignored.

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