-
Notifications
You must be signed in to change notification settings - Fork 569
Expand file tree
/
Copy pathFeatureSwitches.scala
More file actions
685 lines (622 loc) · 20.1 KB
/
Copy pathFeatureSwitches.scala
File metadata and controls
685 lines (622 loc) · 20.1 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
package conf.switches
import conf.switches.Expiry.never
import java.time.LocalDate
import conf.switches.Owner.group
import conf.switches.SwitchGroup.Commercial
trait FeatureSwitches {
val ContentPresser = Switch(
SwitchGroup.Feature,
"content-presser",
"Enables routes for pressing and cleaning articles and interactives.",
owners = Seq(Owner.withName("unknown")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val ShareCounts = Switch(
SwitchGroup.Feature,
"server-share-counts",
"If this switch is on, share counts are fetched from the Facebook Graph API on the server",
owners = Seq(Owner.withGithub("jfsoul")),
safeState = On,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val FixturesAndResultsContainerSwitch = Switch(
SwitchGroup.Feature,
"fixtures-and-results-container",
"Fixtures and results container on football tag pages",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val FacebookShareImageLogoOverlay = Switch(
SwitchGroup.Feature,
"facebook-share-image-logo-overlay",
"If this switch is turned on, we will overlay the guardian logo along the bottom of images shared on facebook",
owners = Seq(Owner.withGithub("dominickendrick")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val TwitterShareImageLogoOverlay = Switch(
SwitchGroup.Feature,
"twitter-share-image-logo-overlay",
"If this switch is turned on, we will overlay the guardian logo along the bottom of images shared on twitter",
owners = Seq(Owner.withName("unknown")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val GeoMostPopular = Switch(
SwitchGroup.Feature,
"geo-most-popular",
"If this is switched on users then 'most popular' will be upgraded to geo targeted",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = On,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val ExtendedMostPopular = Switch(
SwitchGroup.Feature,
"extended-most-popular",
"Extended 'Most Popular' component with space for DPMUs",
owners = group(Commercial),
safeState = On,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val MostViewedFronts = Switch(
SwitchGroup.Feature,
"most-viewed-fronts",
"If this is switched off, most viewed will not show on fronts",
owners = Seq(Owner.withName("unknown")),
safeState = On,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val FontSwitch = Switch(
SwitchGroup.Feature,
"web-fonts",
"If this is switched on then the custom Guardian web font will load.",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = On,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val FontKerningSwitch = Switch(
SwitchGroup.Feature,
"font-kerning",
"If this is switched on then fonts will be kerned/optimised for legibility.",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val SearchSwitch = Switch(
SwitchGroup.Feature,
"google-search",
"If this switch is turned on then Google search is added to the sections nav.",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = On,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val IdentityProfileNavigationSwitch = Switch(
SwitchGroup.Feature,
"id-profile-navigation",
"If this switch is on you will see the link in the topbar taking you through to the users profile or sign in..",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = On,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val FacebookShareUseTrailPicFirstSwitch = Switch(
SwitchGroup.Feature,
"facebook-shareimage",
"Facebook shares try to use article trail picture image first when switched ON, or largest available " +
"image when switched OFF.",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val IdentityAvatarUploadSwitch = Switch(
SwitchGroup.Feature,
"id-avatar-upload",
"If this switch is on, users can upload avatars on their profile page",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val EnhanceTweetsSwitch = Switch(
SwitchGroup.Feature,
"enhance-tweets",
"If this switch is turned on then embedded tweets will be enhanced using Twitter's widgets.",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val HistoryTags = Switch(
SwitchGroup.Feature,
"history-tags",
"If this is switched on then personalised history tags are shown in the meganav",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val IdentityBlockSpamEmails = Switch(
SwitchGroup.Feature,
"id-block-spam-emails",
"If switched on, any new registrations with emails from ae blacklisted domin will be blocked",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val IdentityLogRegistrationsFromTor = Switch(
SwitchGroup.Feature,
"id-log-tor-registrations",
"If switched on, any user registrations from a known tor exit node will be logged",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val CrosswordSvgThumbnailsSwitch = Switch(
SwitchGroup.Feature,
"crossword-svg-thumbnails",
"If switched on, crossword thumbnails will be accurate SVGs",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val SudokuSwitch = Switch(
SwitchGroup.Feature,
"sudoku",
"If switched on, sudokus will be available",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val CricketScoresSwitch = Switch(
SwitchGroup.Feature,
"cricket-scores",
"If switched on, cricket score and scorecard link will be displayed",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val RugbyScoresSwitch = Switch(
SwitchGroup.Feature,
"rugby-world-cup",
"If this switch is on rugby world cup scores will be loaded in to rugby match reports and liveblogs",
owners = Seq(Owner.withName("health team")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
// Decommissioned, see marker: 7dde429f00b1
val StocksWidgetSwitch = Switch(
SwitchGroup.Feature,
"stocks-widget",
"If switched on, a stocks widget will be displayed on the business front (note: code is currently decommissioned, so switch has no effect)",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val MissingVideoEndcodingsJobSwitch = Switch(
SwitchGroup.Feature,
"check-for-missing-video-encodings",
"If this switch is switched on then the job will run which will check all video content for missing encodings",
owners = Seq(Owner.withGithub("johnduffell")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val EmailInlineInFooterSwitch = Switch(
SwitchGroup.Feature,
"email-inline-in-footer",
"show the email sign-up in the footer",
owners = Seq(Owner.withName("unknown")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val UseAtomsSwitch = Switch(
SwitchGroup.Feature,
"use-atoms",
"use atoms from content api to enhance content",
owners = Seq(Owner.withName("unknown")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val AmpArticleSwitch = Switch(
SwitchGroup.Feature,
"amp-article-switch",
"If this switch is on, link to amp pages will be in the metadata for articles",
owners = Seq(Owner.withName("unknown")),
safeState = On,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val AmpLiveBlogSwitch = Switch(
SwitchGroup.Feature,
"amp-liveblog-switch",
"If this switch is on, link to amp pages will be in the metadata for liveblogs",
owners = Seq(Owner.withName("unknown")),
safeState = On,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val R2PagePressServiceSwitch = Switch(
SwitchGroup.Feature,
"r2-page-press-service",
"When ON, the R2 page press service will monitor the queue and press pages to S3",
owners = Seq(Owner.withGithub("JustinPinner")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
// Owner: Maria Livia Chiorean
val SmartAppBanner = Switch(
SwitchGroup.Feature,
"smart-app-banner",
"When ON, show the Apple smart app banner by adding a meta tag",
owners = Seq(Owner.withName("unknown")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
// Owner: Sam Cutler / Editorial Tools
val Targeting = Switch(
SwitchGroup.Feature,
"targeting",
"When ON will the targeting system will poll for updates and merge targeted campaigns into content",
owners = Seq(Owner.withName("unknown")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val InlineEmailStyles = Switch(
SwitchGroup.Feature,
"inline-email-styles",
"When ON, email styles will be stripped from the <head> and inlined into HTML style attributes",
owners = Seq(Owner.withName("unknown")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val WeAreHiring = Switch(
SwitchGroup.Feature,
"we-are-hiring",
"When ON, hiring messages will appear in browser console and HTML source",
owners = Seq(Owner.withName("unknown")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val Acast = Switch(
SwitchGroup.Feature,
"acast",
"When ON, requests to audio files will be routed to Acast if advertising is enabled",
owners = Seq(Owner.withName("journalism team")),
safeState = On,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
// Simple & Coherent
val ScAdFreeBanner = Switch(
SwitchGroup.Feature,
"sc-ad-free-banner",
"If switched on, ad free users will be told they have ad free.",
owners = Seq(Owner.withName("simple.and.coherent")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val slotBodyEnd = Switch(
SwitchGroup.Feature,
"slot-body-end",
"If on, will populate body end slot from Slot Machine (note, only relevant to DCR for now)",
owners = Seq(Owner.withEmail("slot.machine.dev@guardian.co.uk")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val remoteBanner = Switch(
SwitchGroup.Feature,
"remote-banner",
"Enables the banner fetched from support-dotcom-components",
owners = Seq(Owner.withGithub("tomrf1")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val remoteHeader = Switch(
SwitchGroup.Feature,
"remote-header",
"Enables the header fetched from support-dotcom-components",
owners = Seq(Owner.withGithub("tomrf1")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val InteractivePickerFeature = Switch(
SwitchGroup.Feature,
"interactive-picker",
"Activate the Interactive Picker (routing interactives between frontend and DCR)",
owners = Seq(Owner.withName("unknown")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val StickyVideos = Switch(
SwitchGroup.Feature,
"sticky-videos",
"When ON, videos in liveblogs will 'stick' on the screen as the reader scrolls up and down the blog",
owners = Seq(Owner.withName("unknown")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val NewsletterOnwards = Switch(
SwitchGroup.Feature,
"newsletter-onwards",
"When ON, we replace the standard related stories onwards container with a dedicated one for Newsletters",
owners = Seq(Owner.withName("unknown")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val KeyEventsCarousel = Switch(
SwitchGroup.Feature,
"key-events-carousel",
"When ON, shows the new key events timeline carousel and hides the old key events timeline",
owners = Seq(Owner.withName("unknown")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val AusRegionSelector = Switch(
SwitchGroup.Feature,
"aus-region-selector",
"When ON, facia containers with targeted territories in Australia will include a 'region switcher' for users to change their region",
owners = Seq(Owner.withName("unknown")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val Callout = Switch(
SwitchGroup.Feature,
"callouts",
"When ON, shows the new callout block component",
owners = Seq(Owner.withGithub("@guardian/editorial-experience")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val PersonaliseSignInGateAfterCheckout = Switch(
SwitchGroup.Feature,
"personalise-sign-in-gate-after-checkout",
"When ON, the sign in gate shows a personalised message to subscribers and supporters",
owners = Seq(Owner.withEmail("personalisation@guardian.co.uk")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val DCRAudioPages = Switch(
SwitchGroup.Feature,
"dcr-audio-pages",
"If this switch is on, we will render audio pages with DCR",
owners = Seq(Owner.withEmail("dotcom.platform@theguardian.com"), Owner.withEmail("devx.e2e@theguardian.com")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val DCRVideoPages = Switch(
SwitchGroup.Feature,
"dcr-video-pages",
"If this switch is on, we will render video pages with DCR",
owners = Seq(Owner.withEmail("dotcom.platform@theguardian.com"), Owner.withEmail("commercial.dev@theguardian.com")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val DCRTagPages = Switch(
group = SwitchGroup.Feature,
name = "dcr-tag-pages",
description = "Render tag pages with DCR",
owners = Seq(Owner.withGithub("dotcom.platform@theguardian.com")),
safeState = On,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val DCRCrosswords = Switch(
SwitchGroup.Feature,
"dcr-crosswords",
"If this switch is on, crosswords will be rendered with DCR",
owners = Seq(Owner.withGithub("dotcom.platform@theguardian.com"), Owner.withEmail("devx.e2e@theguardian.com")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val DCRFootballPages = Switch(
SwitchGroup.Feature,
"dcr-football-pages",
"If this switch is on, live, fixtures and results football pages will be rendered with DCR",
owners = Seq(Owner.withGithub("dotcom.platform@theguardian.com")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val DCRFootballMatchSummary = Switch(
SwitchGroup.Feature,
"dcr-football-match-summary",
"If this switch is on, football match summary pages will be rendered with DCR",
owners = Seq(Owner.withGithub("dotcom.platform@theguardian.com")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val DCRCricketPages = Switch(
SwitchGroup.Feature,
"dcr-cricket-pages",
"If this switch is on, cricket scorecard pages will be rendered with DCR",
owners = Seq(Owner.withGithub("dotcom.platform@theguardian.com")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val DCRFootballTablesPages = Switch(
SwitchGroup.Feature,
"dcr-football-table-pages",
"If this switch is on, football table pages will be rendered with DCR",
owners = Seq(Owner.withGithub("dotcom.platform@theguardian.com")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val WomensEuro2025Atom = Switch(
SwitchGroup.Feature,
"womens-euro-2025-atom",
"If this switch is on, the atom will be rendered on several football data pages",
owners = Seq(Owner.withGithub("dotcom.platform@theguardian.com")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val DCARGalleyPages = Switch(
SwitchGroup.Feature,
"dcar-gallery-pages",
"If this switch is on, the gallery article will be rendered by DCAR",
owners = Seq(Owner.withGithub("dotcom.platform@theguardian.com")),
safeState = Off,
sellByDate = never,
exposeClientSide = false,
highImpact = false,
)
val EnableNewServerSideABTestsHeader = Switch(
SwitchGroup.Feature,
"enable-new-server-side-tests-header",
"Enable new server-side AB tests header and add it to the vary header",
owners = Seq(Owner.withEmail("commercial.dev@guardian.co.uk")),
sellByDate = never,
safeState = Off,
exposeClientSide = false,
highImpact = false,
)
val ProductLeftColCards = Switch(
SwitchGroup.Feature,
"product-left-col-cards",
"Enables product element summary cards to be shown in the left column at wide breakpoints",
owners = Seq(Owner.withEmail("thefilter.dev@guardian.co.uk")),
sellByDate = never,
safeState = Off,
exposeClientSide = true,
highImpact = false,
)
val DCRHostedContent = Switch(
group = SwitchGroup.Feature,
name = "dcr-hosted-content",
description = "Render hosted content pages with DCR",
owners = Seq(Owner.withEmail("commercial.dev@guardian.co.uk")),
safeState = Off,
sellByDate = Some(LocalDate.of(2026, 8, 19)),
exposeClientSide = false,
highImpact = false,
)
val SignInGate = Switch(
group = SwitchGroup.Feature,
name = "sign-in-gate",
description = "Enable sign-in gate on articles",
owners = Seq(Owner.withEmail("value.dev@guardian.co.uk"), Owner.withEmail("growth.dev@guardian.co.uk")),
safeState = Off,
sellByDate = never,
exposeClientSide = true,
highImpact = false,
)
val FilterAtAGlanceTest = Switch(
group = SwitchGroup.Feature,
name = "filter-at-a-glance",
description = "Switch for at a glance A / B / C test",
owners = Seq(Owner.withEmail("thefilter.dev@guardian.co.uk")),
sellByDate = never,
safeState = Off,
exposeClientSide = true,
highImpact = false,
)
val UseTrailsFromS3 = Switch(
group = SwitchGroup.Feature,
name = "use-trails-from-s3",
description = "Use trails from S3",
owners = Seq(Owner.withEmail("dotcom.platform@theguardian.com")),
sellByDate = never,
safeState = Off,
exposeClientSide = false,
highImpact = false,
)
}