Actions
User story #3015
openAllow to schedule activation or disactivation of rules
Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Config management
Target version:
Pull Request:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:
Description
We want to be able to enable or disable a Rule at a given Time/Date.
The schedule is configure directly in the rule's configuration screen.
Note that enabling or disabling a rule thanks to that mean actually trigger a Rule modification, and so that modification is submitted to validation retention rules (rudder.autoDeployOnModification=false)
So, we have to take special advertisement when validating deployment is enable:
- replace scheduled action configuration with the message "Scheduling Rules to be enabled/disabled at a given date and time is not compatible with manual promise deployments, which you have enabled. To make use of this feature, set the rudder.autoDeployOnModification property to "true" in Rudder's configuration (/opt/rudder/etc/rudder-web.properties)."
- add to "rudder.autoDeployOnModification"'s property description "WARNING: This feature is required to be able to schedule Rules to enabled/disabled at a given date and time. If set to "false", automatic enabling/disabling of Rules will not function."
- when the application start, if "rudder.autoDeployOnModification=false" then we have to check if there is some Rules with action scheduled, we log a warning in "rudder-core"'s log (and "webapp") saying: "ERROR: rudder.autoDeployOnModification is disabled, but the following Rules are set to be scheduled to be enabled/disabled at a given date and time. This schedule can NOT be respected unless rudder.autoDeployOnModification is enabled in configuration: UUID1, UUID2, ...".
- scheduled action are not erased when Rudder restart, even if rudder.autoDeployOnModification=false.
That bug is a meta-ticket, implementation, integration and documentation will be open in children tickets.
Actions