-
Notifications
You must be signed in to change notification settings - Fork 555
/
JournalismSwitches.scala
87 lines (77 loc) · 2.57 KB
/
JournalismSwitches.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package conf.switches
import conf.switches.Expiry.never
import java.time.LocalDate
trait JournalismSwitches {
val RenderInArticleAudioAtomSwitch = Switch(
SwitchGroup.Journalism,
"render-in-article-audio-atoms",
"controls whether in-article audio atoms are displayed",
owners = Seq(Owner.withName("journalism team")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
)
val AudioOnwardJourneySwitch = Switch(
SwitchGroup.Journalism,
"audio-onward-journey-switch",
"Display latest podcast episodes on audio pages",
owners = Seq(Owner.withName("journalism team")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
)
val FlagshipEmailContainerSwitch = Switch(
SwitchGroup.Journalism,
"flagship-email-container",
"Display the Flagship podcast container in the daily emails",
owners = Seq(Owner.withName("journalism team")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
)
val FlagshipEmailContainerDynamicImageSwitch = Switch(
SwitchGroup.Journalism,
"flagship-email-container-dynamic-image",
"For: Today in Focus podcast container. When On: Display a story image. Off: Use default album art image.",
owners = Seq(Owner.withName("journalism team")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
)
val FlagshipFrontContainerSwitch = Switch(
SwitchGroup.Journalism,
"flagship-front-container",
"Display the Flagship podcast container on the /uk front",
owners = Seq(Owner.withName("journalism team")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
)
val Lightbox = Switch(
SwitchGroup.Journalism,
name = "lightbox",
description = "Enable lightbox for images",
owners = Seq(Owner.withEmail("dotcom.platform@theguardian.com")),
safeState = On,
sellByDate = never,
exposeClientSide = true,
)
val AbsoluteServerTimes = Switch(
SwitchGroup.Journalism,
name = "absolute-server-times",
description = "Force times on the server to be absolute to improve caching",
owners = Seq(Owner.withEmail("dotcom.platform@theguardian.com")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
)
val Euro2024Header = Switch(
SwitchGroup.Journalism,
name = "euro-2024-header",
description = "Show the Euro 2024 interactive atom header on football pages",
owners = Seq(Owner.withEmail("dotcom.platform@theguardian.com")),
safeState = Off,
sellByDate = LocalDate.of(2024, 7, 15),
exposeClientSide = true,
)
}