AbstractGetCodeOwnersForPath: Make code owner scorings accessible

So far AbstractGetCodeOwnersForPath didn't know which code owner had
which score. The total scores were internals of CodeOwnerScorings and
not exposed to AbstractGetCodeOwnersForPath.

Refactor the code so that AbstractGetCodeOwnersForPath gets access to
the total code owner scores. This is done for 2 reasons:

1. we want to add a highest-score-only option that only returns the code
   owners with the highest score, for this AbstractGetCodeOwnersForPath
   needs to know what is the highest score and which code owners have it
2. at some point in time we may want to return the total scores to the
   client, for this AbstractGetCodeOwnersForPath needs to know the total
   scores so that they can be included into the JSON that is returned to
   the client

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

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.