commit | fd6f700c26696fa7a068bb8250dc4b1e0efc005a | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Sun Feb 28 11:20:29 2021 +0100 |
committer | Edwin Kempin <ekempin@google.com> | Sun Feb 28 11:26:15 2021 +0100 |
tree | c7ab6ab713265675148618fe04f13dff6fb1424f | |
parent | 9fa97a4ee7b5126be61eeb215fea02475e5350e3 [diff] |
Reduce number of CodeOwnersPluginConfiguration#getProjectConfig calls Each call of CodeOwnersPluginConfiguration#getProjectConfig causes a load of the plugin config with inheritance via pluginConfigFactory#getProjectPluginConfigWithInheritance(projectName, pluginName) which is not free. CodeOwnersPluginConfigSnapshot that is returned by CodeOwnersPluginConfiguration#getProjectConfig caches the plugin config, hence creating CodeOwnersPluginConfigSnapshot only once and reading multiple config param from it is more efficient. Reduce the number of CodeOwnersPluginConfiguration#getProjectConfig calls by calling it only once in methods that need to read multiple config parameters. Further improvements will be done in follow-up changes. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: I5a34a35f34697280794631c261290e73059996ff
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.