Closed
Description
Use case
I've got a few use cases for feature flags rule actions. It's possible to due that today but its really finicky.
- I'd like to turn on/enable a feature flags rule only during a certain time of the day (between 10:00-23:00 24 hours clock)
- i'd like to turn on/enable a feature flags rule during a certain date range (UTC time)
- i'd like to turn on/enable a feature flags rule only during weekends, or just weekdays
- i'd like to turn on/enable a feature flags rule during certain week days and certain hours
I'd like to be able to do combine these conditions with other conditions.
I think the implementation is simple, just need to define the UX.
Solution/User Experience
Time based conditions are sorely missing from the current solution.
Alternative solutions
use regular actions. Use rules that define time as unix time ints and define actions like KEY_GREATER_THAN_VALUE and KEY_LESS_THAN_VALUE.
Not really readable when using unix time ints but it can work.
Not agreat UX.
Acknowledgment
- This feature request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript