-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add explicit option to disable thresholds from CLI (#329)
Previously, when setting the project thresholds from the CLI, a value of `0` would automatically disable the specified threshold. This does not correctly represent the backend configuration, since some thresholds cannot be disabled and it is possible to have a threshold enabled with a value of `0`. To address both of these issues, an explicit `Disabled` option has been added to the interactive `set-thresholds` command, which allows controlling the `active` state of the threshold independently from its value. To ensure that the "Total Project" threshold is not disabled, a special case has been added which will inform the user that a value must be set for this threshold. Closes #288.
- Loading branch information
Showing
2 changed files
with
53 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters