File tree 3 files changed +49
-42
lines changed
examples/feature_flags/src
3 files changed +49
-42
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "username" : " rubefons" ,
3
- "tier" : " premium" ,
4
- "basked_id" : " random_id"
2
+ "username" : " rubefons" ,
3
+ "tier" : " premium" ,
4
+ "basked_id" : " random_id"
5
5
}
Original file line number Diff line number Diff line change 1
1
{
2
- "weekend_premium_discount" : {
3
- "default" : false ,
4
- "rules" : {
5
- "customer tier equals premium" : {
6
- "when_match" : true ,
7
- "conditions" : [
8
- {
9
- "action" : " EQUALS" ,
10
- "key" : " tier" ,
11
- "value" : " premium"
12
- }
13
- ]
14
- },
15
- "is weekend" : {
16
- "when_match" : true ,
17
- "conditions" : [
18
- {
19
- "action" : " SCHEDULE_BETWEEN_DAYS_OF_WEEK" ,
20
- "key" : " CURRENT_DAY_OF_WEEK_UTC" ,
21
- "value" : [" SATURDAY" , " SUNDAY" ]
22
- }
23
- ]
2
+ "weekend_premium_discount" : {
3
+ "default" : false ,
4
+ "rules" : {
5
+ "customer tier equals premium" : {
6
+ "when_match" : true ,
7
+ "conditions" : [
8
+ {
9
+ "action" : " EQUALS" ,
10
+ "key" : " tier" ,
11
+ "value" : " premium"
12
+ }
13
+ ]
14
+ },
15
+ "is weekend" : {
16
+ "when_match" : true ,
17
+ "conditions" : [
18
+ {
19
+ "action" : " SCHEDULE_BETWEEN_DAYS_OF_WEEK" ,
20
+ "key" : " CURRENT_DAY_OF_WEEK" ,
21
+ "value" : {
22
+ "DAYS" : [
23
+ " SATURDAY" ,
24
+ " SUNDAY"
25
+ ],
26
+ "TIMEZONE" : " America/New_York"
24
27
}
25
- }
28
+ }
29
+ ]
30
+ }
26
31
}
32
+ }
27
33
}
Original file line number Diff line number Diff line change 1
1
{
2
- "happy_hour" : {
3
- "default" : false ,
4
- "rules" : {
5
- "is happy hour" : {
6
- "when_match" : true ,
7
- "conditions" : [
8
- {
9
- "action" : " SCHEDULE_BETWEEN_TIME_RANGE" ,
10
- "key" : " CURRENT_TIME_UTC" ,
11
- "value" : {
12
- "START" : " 17:00" ,
13
- "END" : " 19:00"
14
- }
15
- }
16
- ]
2
+ "happy_hour" : {
3
+ "default" : false ,
4
+ "rules" : {
5
+ "is happy hour" : {
6
+ "when_match" : true ,
7
+ "conditions" : [
8
+ {
9
+ "action" : " SCHEDULE_BETWEEN_TIME_RANGE" ,
10
+ "key" : " CURRENT_TIME" ,
11
+ "value" : {
12
+ "START" : " 17:00" ,
13
+ "END" : " 19:00" ,
14
+ "TIMEZONE" : " Europe/Copenhagen"
17
15
}
18
- }
16
+ }
17
+ ]
18
+ }
19
19
}
20
+ }
20
21
}
You can’t perform that action at this time.
0 commit comments