Hello, is it possible to automate the activation and deactivation of a feature flag periodically ? (Ex : we would like to activate a feature only during the day so from 9am to 6pm)
t
tall-wolf-59305
02/21/2024, 11:45 AM
configure a feature flag based on time property value, and pass current time to the property to the evaluation context. would that work for you ?
e
enough-diamond-9588
02/21/2024, 1:19 PM
Do you mean :
• add an attribute corresponding to time in SDK configuration
• go to the feature flag and click on Forced Value
• add attribute targeting matching the time attribute to the range I allow the feature flag to be activated ?
t
tall-wolf-59305
02/21/2024, 1:29 PM
sdk:
Copy code
value = evaluate("my-flag", Context("time"=currentTime))
flag targeting match condition:
"time" attribute value from 9am to 6pm