Allow repositories and servers to be defined in separate JSON files.
Review Request #12100 — Created March 4, 2022 and submitted
This introduces two new settings:
reviewboard_servers_config_pathand
repositories_config_path. These are used to point to user-defined JSON
files for Review Board servers and repositories, respectively.The primary reason for these files is to allow the upcoming Docker
images to point to volume mounts for these configuration files,
separating the configuration in the images (for executable paths and
other settings) from any user-specified lists of servers and
repositories.The configuration loader will parse these files and append the results
to thereviewboard_serversandrepositorieslists. This means that
the repository support doesn't have to know anything about these files.
It's purely contained in the configuration loader.Documentation has been updated to cover these new options and to provide
examples.Unit tests have also been added to test validation and loading of these
files.
Unit tests passed.
Tested these settings in the upcoming Docker images.
Built the docs and checked that the results appeared correct.
| Summary | ID |
|---|---|
| c96093cd16ca42440f7ccdfa421187a8fb56d766 |
| Description | From | Last Updated |
|---|---|---|
|
E501 line too long (84 > 79 characters) |
|
|
|
F841 local variable 'config_file' is assigned to but never used |
|
|
|
F841 local variable 'config_file' is assigned to but never used |
|
|
|
F841 local variable 'config_file' is assigned to but never used |
|
|
|
F841 local variable 'config_file' is assigned to but never used |
|
|
|
F841 local variable 'config_file' is assigned to but never used |
|
|
|
F841 local variable 'config_file' is assigned to but never used |
|
|
|
F841 local variable 'config_file' is assigned to but never used |
|
|
|
F841 local variable 'config_file' is assigned to but never used |
|
|
|
F841 local variable 'config_file' is assigned to but never used |
|
|
|
F841 local variable 'config_file' is assigned to but never used |
|
- Change Summary:
-
- Fixed a line length error from a search-and-replace.
- Removed unused variables in configuration loading in unit tests.
- Commits:
-
Summary ID f322decbcbfb14e093f87f57515442c5105eee8b c96093cd16ca42440f7ccdfa421187a8fb56d766