| commit | 3a9afd6e57e171db8081befa29f950a610275c32 | [log] [tgz] |
|---|---|---|
| author | Milutin Kristofic <milutin@google.com> | Sun Jun 01 10:46:40 2025 +0200 |
| committer | Milutin Kristofic <milutin@google.com> | Sun Jun 01 05:33:14 2025 -0700 |
| tree | 5cb11abb401a958dcd865cb287a4c31ab890490d | |
| parent | 73b1e0e3862ea8249f9ec8fdd7bcfd75b72b2c2d [diff] |
Sort files in the owners selection list The file list presented in the code owners selection dialog was not sorted in any specific order. This was confusing to users because it did not match the alphabetical sorting of the main file list in the change view, making it difficult to find specific files. This change sorts the file list in the owners dialog to match the behavior of the main file list. It reuses the existing special path comparison logic from Gerrit's UI to ensure a consistent, alphabetical sort order across the application. Google-Bug-Id: b/421256625 Release-Notes: The file list in the code owners selection dialog is now sorted alphabetically. Change-Id: I5c85508e1f0288a7d10baf910b88008ea5fdd84d
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.
For a detailed description of the plugin functionality please refer to the plugin documentation.
IMPORTANT: Before installing/enabling the plugin follow the instructions from the setup guide.
NOTE: The plugin documentation only renders correctly when the plugin is installed in Gerrit and the documentation is accessed via https:///plugins/code-owners/Documentation/index.html. If you want to read the documentation before installing the plugin, you can find it properly rendered here.
From the root of the gerrit repository.
bazel test //plugins/code-owners/web:karma_test
For testing the plugin with the Gerrit FE Dev Helper the command below builds
bazel build //plugins/code-owners/web:code-owners
ln -s bazel-bin/plugins/code-owners/web/code-owners.js polygerrit-ui/app/plugins/
and let the Dev Helper redirect from .+/plugins/code-owners/static/code-owners.js to http://localhost:8081/plugins/code-owners.js.