From 5ef497c4d11da4d2ef1ecdc9f74c0948fdbff33a Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Mon, 27 Jan 2025 14:45:10 +0000 Subject: [PATCH 01/16] Create ab-test for Consent or Pay --- common/app/conf/switches/ABTestSwitches.scala | 31 +++++++++++++------ .../common/modules/experiments/ab-tests.ts | 2 ++ .../tests/consent-or-pay-banner.js | 27 ++++++++++++++++ 3 files changed, 50 insertions(+), 10 deletions(-) create mode 100644 static/src/javascripts/projects/common/modules/experiments/tests/consent-or-pay-banner.js diff --git a/common/app/conf/switches/ABTestSwitches.scala b/common/app/conf/switches/ABTestSwitches.scala index 5dacefdd7fa..66aceb93aba 100644 --- a/common/app/conf/switches/ABTestSwitches.scala +++ b/common/app/conf/switches/ABTestSwitches.scala @@ -60,16 +60,16 @@ trait ABTestSwitches { highImpact = false, ) - Switch( - ABTests, - "ab-region-specific-prebid", - "Test impact of splitting the Prebid bundle by region", - owners = Seq(Owner.withEmail("commercial.dev@theguardian.com")), - safeState = Off, - sellByDate = Some(LocalDate.of(2025, 1, 24)), - exposeClientSide = true, - highImpact = false, - ) + // Switch( + // ABTests, + // "ab-region-specific-prebid", + // "Test impact of splitting the Prebid bundle by region", + // owners = Seq(Owner.withEmail("commercial.dev@theguardian.com")), + // safeState = Off, + // sellByDate = Some(LocalDate.of(2025, 1, 24)), + // exposeClientSide = true, + // highImpact = false, + // ) Switch( ABTests, @@ -92,4 +92,15 @@ trait ABTestSwitches { exposeClientSide = true, highImpact = false, ) + + Switch( + ABTests, + "ab-consent-or-pay-banner", + "Test impact of adding consent or pay banner", + owners = Seq(Owner.withEmail("transparencyandconsent@theguardian.com")), + safeState = Off, + sellByDate = Some(LocalDate.of(2025, 12, 24)), + exposeClientSide = true, + highImpact = false, + ) } diff --git a/static/src/javascripts/projects/common/modules/experiments/ab-tests.ts b/static/src/javascripts/projects/common/modules/experiments/ab-tests.ts index e727132aafa..6a12f875508 100644 --- a/static/src/javascripts/projects/common/modules/experiments/ab-tests.ts +++ b/static/src/javascripts/projects/common/modules/experiments/ab-tests.ts @@ -1,5 +1,6 @@ import type { ABTest } from '@guardian/ab-core'; import { auxiaSignInGate } from './tests/auxia-sign-in-gate'; +import { consentOrPayBannerTest } from './tests/consent-or-pay-banner'; import { remoteRRHeaderLinksTest } from './tests/remote-header-test'; import { signInGateMainControl } from './tests/sign-in-gate-main-control'; import { signInGateMainVariant } from './tests/sign-in-gate-main-variant'; @@ -7,6 +8,7 @@ import { signInGateMainVariant } from './tests/sign-in-gate-main-variant'; // keep in sync with ab-tests in dotcom-rendering // https://github.com/guardian/dotcom-rendering/blob/main/dotcom-rendering/src/web/experiments/ab-tests.ts export const concurrentTests: readonly ABTest[] = [ + consentOrPayBannerTest, signInGateMainVariant, signInGateMainControl, remoteRRHeaderLinksTest, diff --git a/static/src/javascripts/projects/common/modules/experiments/tests/consent-or-pay-banner.js b/static/src/javascripts/projects/common/modules/experiments/tests/consent-or-pay-banner.js new file mode 100644 index 00000000000..634be0ef7fe --- /dev/null +++ b/static/src/javascripts/projects/common/modules/experiments/tests/consent-or-pay-banner.js @@ -0,0 +1,27 @@ +export const consentOrPayBannerTest = { + id: 'ConsentOrPayBanner', + start: '2025-01-01', + expiry: '2025-12-31', + author: 'Akinsola Lawanson', + description: + 'Test the consent or pay banner', + audience: 0.1, + audienceOffset: 0, + successMeasure: 'TBC', + audienceCriteria: + 'all pageviews in UK', + dataLinkNames: 'consent-or-pay-banner', + idealOutcome: 'TBC', + showForSensitive: false, + canRun : () => true, + variants: [ + { + id: 'control', + test: () => {}, + }, + { + id: 'variant', + test: () => {}, + }, + ], +} From a66026abc3730ed222d06cfe34d45e546b975f0c Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Mon, 27 Jan 2025 15:47:47 +0000 Subject: [PATCH 02/16] Change names of variant --- .../common/modules/experiments/tests/consent-or-pay-banner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/src/javascripts/projects/common/modules/experiments/tests/consent-or-pay-banner.js b/static/src/javascripts/projects/common/modules/experiments/tests/consent-or-pay-banner.js index 634be0ef7fe..81251f49eff 100644 --- a/static/src/javascripts/projects/common/modules/experiments/tests/consent-or-pay-banner.js +++ b/static/src/javascripts/projects/common/modules/experiments/tests/consent-or-pay-banner.js @@ -16,11 +16,11 @@ export const consentOrPayBannerTest = { canRun : () => true, variants: [ { - id: 'control', + id: 'activate', test: () => {}, }, { - id: 'variant', + id: 'deactivate', test: () => {}, }, ], From 3709b6dbb5a86eba1b39ac97f369989995d4ffa6 Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Tue, 28 Jan 2025 08:51:46 +0000 Subject: [PATCH 03/16] Use beta libs --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 85f4555e7b1..b9866db60dd 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@guardian/eslint-config-typescript": "9.0.1", "@guardian/identity-auth": "3.0.0", "@guardian/identity-auth-frontend": "6.0.3", - "@guardian/libs": "20.0.0", + "@guardian/libs": "0.0.0-canary-20250128084445", "@guardian/prettier": "^8.0.1", "@guardian/shimport": "^1.0.2", "@guardian/source-foundations": "16.0.0", diff --git a/yarn.lock b/yarn.lock index 2036a399dd4..e78480abbe2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3704,7 +3704,7 @@ __metadata: "@guardian/eslint-config-typescript": "npm:9.0.1" "@guardian/identity-auth": "npm:3.0.0" "@guardian/identity-auth-frontend": "npm:6.0.3" - "@guardian/libs": "npm:20.0.0" + "@guardian/libs": "npm:0.0.0-canary-20250128084445" "@guardian/prettier": "npm:^8.0.1" "@guardian/shimport": "npm:^1.0.2" "@guardian/source-foundations": "npm:16.0.0" @@ -3861,16 +3861,16 @@ __metadata: languageName: node linkType: hard -"@guardian/libs@npm:20.0.0": - version: 20.0.0 - resolution: "@guardian/libs@npm:20.0.0" +"@guardian/libs@npm:0.0.0-canary-20250128084445": + version: 0.0.0-canary-20250128084445 + resolution: "@guardian/libs@npm:0.0.0-canary-20250128084445" peerDependencies: tslib: ^2.6.2 typescript: ~5.5.2 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/0ab14266f3de53da978a60dc0bcbf09cf9f5350fe070dbfd858d1bfa55bf8e802c18513c579674777e9a69efb2b1f672b815eb7c81b98c97b993ac68f73bda3c + checksum: 10c0/5ba979bea4a85450124f52cbb867b6296cfb98d03b8b5751be5d21d57a297d4dd24680f024258c539915c4506db5c7955cb584711c6207b883fde3db55e124d5 languageName: node linkType: hard From 17177e21dd7cc9ec67baf62bb159c2d801d58659 Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Tue, 4 Feb 2025 12:11:46 +0000 Subject: [PATCH 04/16] Bump libs beta --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 4e94daafb34..30d576e0363 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@guardian/eslint-config-typescript": "9.0.1", "@guardian/identity-auth": "3.0.0", "@guardian/identity-auth-frontend": "6.0.3", - "@guardian/libs": "0.0.0-canary-20250128084445", + "@guardian/libs": "0.0.0-canary-20250204085445", "@guardian/prettier": "^8.0.1", "@guardian/shimport": "^1.0.2", "@guardian/source-foundations": "16.0.0", diff --git a/yarn.lock b/yarn.lock index 8dfd33d1b1c..31752067846 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3758,7 +3758,7 @@ __metadata: "@guardian/eslint-config-typescript": "npm:9.0.1" "@guardian/identity-auth": "npm:3.0.0" "@guardian/identity-auth-frontend": "npm:6.0.3" - "@guardian/libs": "npm:0.0.0-canary-20250128084445" + "@guardian/libs": "npm:0.0.0-canary-20250204085445" "@guardian/prettier": "npm:^8.0.1" "@guardian/shimport": "npm:^1.0.2" "@guardian/source-foundations": "npm:16.0.0" @@ -3915,16 +3915,16 @@ __metadata: languageName: node linkType: hard -"@guardian/libs@npm:0.0.0-canary-20250128084445": - version: 0.0.0-canary-20250128084445 - resolution: "@guardian/libs@npm:0.0.0-canary-20250128084445" +"@guardian/libs@npm:0.0.0-canary-20250204085445": + version: 0.0.0-canary-20250204085445 + resolution: "@guardian/libs@npm:0.0.0-canary-20250204085445" peerDependencies: tslib: ^2.6.2 typescript: ~5.5.2 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/5ba979bea4a85450124f52cbb867b6296cfb98d03b8b5751be5d21d57a297d4dd24680f024258c539915c4506db5c7955cb584711c6207b883fde3db55e124d5 + checksum: 10c0/292a96152254d4a3e475d4a3447e1dfd034ccf61bace6805bcadb62bef833edadbd68cc985e37a2124139e813ecd582a50eeae9a8c1472da78ff1286eabe64b1 languageName: node linkType: hard From 11a5f4050db802f0d66422752727ef5b1964fb34 Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Wed, 5 Feb 2025 10:09:02 +0000 Subject: [PATCH 05/16] Bump libs beta --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 30d576e0363..46a11fdfe73 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@guardian/eslint-config-typescript": "9.0.1", "@guardian/identity-auth": "3.0.0", "@guardian/identity-auth-frontend": "6.0.3", - "@guardian/libs": "0.0.0-canary-20250204085445", + "@guardian/libs": "0.0.0-canary-20250205100230", "@guardian/prettier": "^8.0.1", "@guardian/shimport": "^1.0.2", "@guardian/source-foundations": "16.0.0", diff --git a/yarn.lock b/yarn.lock index 31752067846..dfb2fcbbca0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3758,7 +3758,7 @@ __metadata: "@guardian/eslint-config-typescript": "npm:9.0.1" "@guardian/identity-auth": "npm:3.0.0" "@guardian/identity-auth-frontend": "npm:6.0.3" - "@guardian/libs": "npm:0.0.0-canary-20250204085445" + "@guardian/libs": "npm:0.0.0-canary-20250205100230" "@guardian/prettier": "npm:^8.0.1" "@guardian/shimport": "npm:^1.0.2" "@guardian/source-foundations": "npm:16.0.0" @@ -3915,16 +3915,16 @@ __metadata: languageName: node linkType: hard -"@guardian/libs@npm:0.0.0-canary-20250204085445": - version: 0.0.0-canary-20250204085445 - resolution: "@guardian/libs@npm:0.0.0-canary-20250204085445" +"@guardian/libs@npm:0.0.0-canary-20250205100230": + version: 0.0.0-canary-20250205100230 + resolution: "@guardian/libs@npm:0.0.0-canary-20250205100230" peerDependencies: tslib: ^2.6.2 typescript: ~5.5.2 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/292a96152254d4a3e475d4a3447e1dfd034ccf61bace6805bcadb62bef833edadbd68cc985e37a2124139e813ecd582a50eeae9a8c1472da78ff1286eabe64b1 + checksum: 10c0/f335752a9bc549c4cb71d0520e2d7d5c64742b0155f8465198a698187dc0fb0bc425214e187a4cd127b380ffab8f65b0a3ab44c243e0e241224d75df55821032 languageName: node linkType: hard From 673c804f1a563cdf65451148f7a14e696ec27279 Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Wed, 5 Feb 2025 11:13:29 +0000 Subject: [PATCH 06/16] Update boot.js --- static/src/javascripts/boot.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/src/javascripts/boot.js b/static/src/javascripts/boot.js index 47fab0c5a70..25deacdf6f7 100644 --- a/static/src/javascripts/boot.js +++ b/static/src/javascripts/boot.js @@ -118,7 +118,12 @@ const go = () => { }); - cmp.init({ pubData, country: await getLocale() }); + cmp.init({ + pubData, + country: await getLocale(), + isUserSignedIn: window.location.search.includes('CMP_SIGNED_IN'), + useNonAdvertisedList: window.location.search.includes('CMP_MAIN'), + }); /** * Handle Ad blockers From d99f03b41553c66f5c910b66abbb0130ea1745d0 Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Wed, 5 Feb 2025 11:14:12 +0000 Subject: [PATCH 07/16] Change audience to zero --- .../common/modules/experiments/tests/consent-or-pay-banner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/src/javascripts/projects/common/modules/experiments/tests/consent-or-pay-banner.js b/static/src/javascripts/projects/common/modules/experiments/tests/consent-or-pay-banner.js index 81251f49eff..5888f4ff18a 100644 --- a/static/src/javascripts/projects/common/modules/experiments/tests/consent-or-pay-banner.js +++ b/static/src/javascripts/projects/common/modules/experiments/tests/consent-or-pay-banner.js @@ -5,7 +5,7 @@ export const consentOrPayBannerTest = { author: 'Akinsola Lawanson', description: 'Test the consent or pay banner', - audience: 0.1, + audience: 0.0, audienceOffset: 0, successMeasure: 'TBC', audienceCriteria: From aa392bef2b4a6a8b14c5f42b588b471fedff1ae0 Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Wed, 5 Feb 2025 12:08:47 +0000 Subject: [PATCH 08/16] Update beta --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 46a11fdfe73..a1a0bd01b32 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@guardian/eslint-config-typescript": "9.0.1", "@guardian/identity-auth": "3.0.0", "@guardian/identity-auth-frontend": "6.0.3", - "@guardian/libs": "0.0.0-canary-20250205100230", + "@guardian/libs": "0.0.0-canary-20250205113523", "@guardian/prettier": "^8.0.1", "@guardian/shimport": "^1.0.2", "@guardian/source-foundations": "16.0.0", diff --git a/yarn.lock b/yarn.lock index dfb2fcbbca0..da3906acfc5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3758,7 +3758,7 @@ __metadata: "@guardian/eslint-config-typescript": "npm:9.0.1" "@guardian/identity-auth": "npm:3.0.0" "@guardian/identity-auth-frontend": "npm:6.0.3" - "@guardian/libs": "npm:0.0.0-canary-20250205100230" + "@guardian/libs": "npm:0.0.0-canary-20250205113523" "@guardian/prettier": "npm:^8.0.1" "@guardian/shimport": "npm:^1.0.2" "@guardian/source-foundations": "npm:16.0.0" @@ -3915,16 +3915,16 @@ __metadata: languageName: node linkType: hard -"@guardian/libs@npm:0.0.0-canary-20250205100230": - version: 0.0.0-canary-20250205100230 - resolution: "@guardian/libs@npm:0.0.0-canary-20250205100230" +"@guardian/libs@npm:0.0.0-canary-20250205113523": + version: 0.0.0-canary-20250205113523 + resolution: "@guardian/libs@npm:0.0.0-canary-20250205113523" peerDependencies: tslib: ^2.6.2 typescript: ~5.5.2 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/f335752a9bc549c4cb71d0520e2d7d5c64742b0155f8465198a698187dc0fb0bc425214e187a4cd127b380ffab8f65b0a3ab44c243e0e241224d75df55821032 + checksum: 10c0/fc3c2016474f0ca226a7c7591c78817170dfb9cc665e00ede69a2b60f85c0749aca631815f69ba5f79ec131532ca345b4a52b5b7646e21f4b362447109806d1c languageName: node linkType: hard From 809f46fac054fc15a18a561dcadc4b62781c788a Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Fri, 7 Feb 2025 10:58:09 +0000 Subject: [PATCH 09/16] Add Consent or Pay switch --- common/app/conf/switches/PrivacySwitches.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common/app/conf/switches/PrivacySwitches.scala b/common/app/conf/switches/PrivacySwitches.scala index 2b4ba929691..4d465b89a69 100644 --- a/common/app/conf/switches/PrivacySwitches.scala +++ b/common/app/conf/switches/PrivacySwitches.scala @@ -20,4 +20,16 @@ trait PrivacySwitches { "Warning: Requires ExCo sign-off. Disabling this switch will cost £160,000/day in ad-revenue, impact marketing, impact reader revenue...", ), ) + + val ConsentOrPay = Switch( + group = SwitchGroup.Feature, + name = "consent-or-pay", + description = "Enable consent or pay logic", + owners = + Seq(Owner.withEmail("Transparency.and.consent@guardian.co.uk"), Owner.withEmail("identitydev@guardian.co.uk")), + safeState = On, + sellByDate = never, + exposeClientSide = true, + highImpact = true, + ) } From 02bf6203b23a231ceb93dfa6b9413dc66ef08603 Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Fri, 7 Feb 2025 13:43:32 +0000 Subject: [PATCH 10/16] Update PrivacySwitches.scala --- common/app/conf/switches/PrivacySwitches.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/app/conf/switches/PrivacySwitches.scala b/common/app/conf/switches/PrivacySwitches.scala index 4d465b89a69..41b6581e3cf 100644 --- a/common/app/conf/switches/PrivacySwitches.scala +++ b/common/app/conf/switches/PrivacySwitches.scala @@ -22,7 +22,7 @@ trait PrivacySwitches { ) val ConsentOrPay = Switch( - group = SwitchGroup.Feature, + group = SwitchGroup.Privacy, name = "consent-or-pay", description = "Enable consent or pay logic", owners = From 93ff268e3c0512cf008c61a493d50b29c3f46172 Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Mon, 10 Feb 2025 09:20:43 +0000 Subject: [PATCH 11/16] Update beta libs --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index a1a0bd01b32..7c6c5712d4f 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@guardian/eslint-config-typescript": "9.0.1", "@guardian/identity-auth": "3.0.0", "@guardian/identity-auth-frontend": "6.0.3", - "@guardian/libs": "0.0.0-canary-20250205113523", + "@guardian/libs": "0.0.0-canary-20250205104100", "@guardian/prettier": "^8.0.1", "@guardian/shimport": "^1.0.2", "@guardian/source-foundations": "16.0.0", diff --git a/yarn.lock b/yarn.lock index da3906acfc5..ab0a0803415 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3758,7 +3758,7 @@ __metadata: "@guardian/eslint-config-typescript": "npm:9.0.1" "@guardian/identity-auth": "npm:3.0.0" "@guardian/identity-auth-frontend": "npm:6.0.3" - "@guardian/libs": "npm:0.0.0-canary-20250205113523" + "@guardian/libs": "npm:0.0.0-canary-20250205104100" "@guardian/prettier": "npm:^8.0.1" "@guardian/shimport": "npm:^1.0.2" "@guardian/source-foundations": "npm:16.0.0" @@ -3915,16 +3915,16 @@ __metadata: languageName: node linkType: hard -"@guardian/libs@npm:0.0.0-canary-20250205113523": - version: 0.0.0-canary-20250205113523 - resolution: "@guardian/libs@npm:0.0.0-canary-20250205113523" +"@guardian/libs@npm:0.0.0-canary-20250205104100": + version: 0.0.0-canary-20250205104100 + resolution: "@guardian/libs@npm:0.0.0-canary-20250205104100" peerDependencies: tslib: ^2.6.2 typescript: ~5.5.2 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/fc3c2016474f0ca226a7c7591c78817170dfb9cc665e00ede69a2b60f85c0749aca631815f69ba5f79ec131532ca345b4a52b5b7646e21f4b362447109806d1c + checksum: 10c0/477c75ea567c5faf08d6a3841259021e4e57acf818ce5a7af1c33b3167fffc95217bc72e38dbbbda964c3e29fe0073022ccf307589242947ff4ff1752f2d042f languageName: node linkType: hard From 1a76bf396007f919052b1fbe13f447a6d8aa92f1 Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Mon, 10 Feb 2025 09:27:49 +0000 Subject: [PATCH 12/16] Bump beta libs --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 7c6c5712d4f..f3273a59c15 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@guardian/eslint-config-typescript": "9.0.1", "@guardian/identity-auth": "3.0.0", "@guardian/identity-auth-frontend": "6.0.3", - "@guardian/libs": "0.0.0-canary-20250205104100", + "@guardian/libs": "0.0.0-canary-20250207173220", "@guardian/prettier": "^8.0.1", "@guardian/shimport": "^1.0.2", "@guardian/source-foundations": "16.0.0", diff --git a/yarn.lock b/yarn.lock index ab0a0803415..ce1d0ccea8d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3758,7 +3758,7 @@ __metadata: "@guardian/eslint-config-typescript": "npm:9.0.1" "@guardian/identity-auth": "npm:3.0.0" "@guardian/identity-auth-frontend": "npm:6.0.3" - "@guardian/libs": "npm:0.0.0-canary-20250205104100" + "@guardian/libs": "npm:0.0.0-canary-20250207173220" "@guardian/prettier": "npm:^8.0.1" "@guardian/shimport": "npm:^1.0.2" "@guardian/source-foundations": "npm:16.0.0" @@ -3915,16 +3915,16 @@ __metadata: languageName: node linkType: hard -"@guardian/libs@npm:0.0.0-canary-20250205104100": - version: 0.0.0-canary-20250205104100 - resolution: "@guardian/libs@npm:0.0.0-canary-20250205104100" +"@guardian/libs@npm:0.0.0-canary-20250207173220": + version: 0.0.0-canary-20250207173220 + resolution: "@guardian/libs@npm:0.0.0-canary-20250207173220" peerDependencies: tslib: ^2.6.2 typescript: ~5.5.2 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/477c75ea567c5faf08d6a3841259021e4e57acf818ce5a7af1c33b3167fffc95217bc72e38dbbbda964c3e29fe0073022ccf307589242947ff4ff1752f2d042f + checksum: 10c0/80cb3edb980ec80e237c4fe9cfcb29bf6893b6a8412f4ea4ddc2b4507d737a133155457b82d9d5424d2681302410e621f027c218e5b9c5a4fcc926fe9eb9d729 languageName: node linkType: hard From 8326ead050f7d8cab1f57609f6c2087d75f52782 Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Mon, 10 Feb 2025 15:42:28 +0000 Subject: [PATCH 13/16] Add serverside test --- common/app/experiments/Experiments.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/app/experiments/Experiments.scala b/common/app/experiments/Experiments.scala index 27a8da32e02..f7cf2acc3a2 100644 --- a/common/app/experiments/Experiments.scala +++ b/common/app/experiments/Experiments.scala @@ -15,6 +15,7 @@ object ActiveExperiments extends ExperimentsDefinition { DCRCrosswords, DarkModeWeb, UseUserBenefitsApi, + ConsentOrPay, ) implicit val canCheckExperiment: CanCheckExperiment = new CanCheckExperiment(this) } @@ -58,3 +59,12 @@ object UseUserBenefitsApi sellByDate = LocalDate.of(2025, 6, 30), participationGroup = Perc50, ) + +object ConsentOrPay + extends Experiment( + name = "consent-or-pay", + description = "Enable the switch for consent or paywall", + owners = Seq(Owner.withEmail("transparency.and.consent@guardian.co.uk ")), + sellByDate = LocalDate.of(2025, 12, 30), + participationGroup = Perc0B, + ) From d1fa102605663a6cf931a7ff7bde553ff4b2d72f Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Mon, 10 Feb 2025 16:10:30 +0000 Subject: [PATCH 14/16] Update participationGroup --- common/app/experiments/Experiments.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/app/experiments/Experiments.scala b/common/app/experiments/Experiments.scala index 50d92ecff09..e96b886edcc 100644 --- a/common/app/experiments/Experiments.scala +++ b/common/app/experiments/Experiments.scala @@ -66,5 +66,5 @@ object ConsentOrPay description = "Enable the switch for consent or paywall", owners = Seq(Owner.withEmail("transparency.and.consent@guardian.co.uk ")), sellByDate = LocalDate.of(2025, 12, 30), - participationGroup = Perc0B, + participationGroup = Perc0E, ) From da5e69b8b1c7f98fd365bdfb352aaf3eac6c8c5f Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Mon, 10 Feb 2025 17:00:56 +0000 Subject: [PATCH 15/16] Update beta --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index f3273a59c15..a8f72cfa187 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@guardian/eslint-config-typescript": "9.0.1", "@guardian/identity-auth": "3.0.0", "@guardian/identity-auth-frontend": "6.0.3", - "@guardian/libs": "0.0.0-canary-20250207173220", + "@guardian/libs": "0.0.0-canary-20250210165419", "@guardian/prettier": "^8.0.1", "@guardian/shimport": "^1.0.2", "@guardian/source-foundations": "16.0.0", diff --git a/yarn.lock b/yarn.lock index ce1d0ccea8d..fe4fffa289c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3758,7 +3758,7 @@ __metadata: "@guardian/eslint-config-typescript": "npm:9.0.1" "@guardian/identity-auth": "npm:3.0.0" "@guardian/identity-auth-frontend": "npm:6.0.3" - "@guardian/libs": "npm:0.0.0-canary-20250207173220" + "@guardian/libs": "npm:0.0.0-canary-20250210165419" "@guardian/prettier": "npm:^8.0.1" "@guardian/shimport": "npm:^1.0.2" "@guardian/source-foundations": "npm:16.0.0" @@ -3915,16 +3915,16 @@ __metadata: languageName: node linkType: hard -"@guardian/libs@npm:0.0.0-canary-20250207173220": - version: 0.0.0-canary-20250207173220 - resolution: "@guardian/libs@npm:0.0.0-canary-20250207173220" +"@guardian/libs@npm:0.0.0-canary-20250210165419": + version: 0.0.0-canary-20250210165419 + resolution: "@guardian/libs@npm:0.0.0-canary-20250210165419" peerDependencies: tslib: ^2.6.2 typescript: ~5.5.2 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/80cb3edb980ec80e237c4fe9cfcb29bf6893b6a8412f4ea4ddc2b4507d737a133155457b82d9d5424d2681302410e621f027c218e5b9c5a4fcc926fe9eb9d729 + checksum: 10c0/443a02cbe748f297df690f41e4f19c80b17ddff614849a15902f9ed33aa4fd3853133107ccd07b56f4db34e43fa60c7c68e1cb94fa6f918a3945137a55942cba languageName: node linkType: hard From 412886e38be2302a854c7d199083ff25d82dbe56 Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson <106528085+akinsola-guardian@users.noreply.github.com> Date: Mon, 10 Feb 2025 17:31:21 +0000 Subject: [PATCH 16/16] Bump libs --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index a8f72cfa187..28d67791d55 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@guardian/eslint-config-typescript": "9.0.1", "@guardian/identity-auth": "3.0.0", "@guardian/identity-auth-frontend": "6.0.3", - "@guardian/libs": "0.0.0-canary-20250210165419", + "@guardian/libs": "0.0.0-canary-20250210172703", "@guardian/prettier": "^8.0.1", "@guardian/shimport": "^1.0.2", "@guardian/source-foundations": "16.0.0", diff --git a/yarn.lock b/yarn.lock index fe4fffa289c..461e15a011c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3758,7 +3758,7 @@ __metadata: "@guardian/eslint-config-typescript": "npm:9.0.1" "@guardian/identity-auth": "npm:3.0.0" "@guardian/identity-auth-frontend": "npm:6.0.3" - "@guardian/libs": "npm:0.0.0-canary-20250210165419" + "@guardian/libs": "npm:0.0.0-canary-20250210172703" "@guardian/prettier": "npm:^8.0.1" "@guardian/shimport": "npm:^1.0.2" "@guardian/source-foundations": "npm:16.0.0" @@ -3915,16 +3915,16 @@ __metadata: languageName: node linkType: hard -"@guardian/libs@npm:0.0.0-canary-20250210165419": - version: 0.0.0-canary-20250210165419 - resolution: "@guardian/libs@npm:0.0.0-canary-20250210165419" +"@guardian/libs@npm:0.0.0-canary-20250210172703": + version: 0.0.0-canary-20250210172703 + resolution: "@guardian/libs@npm:0.0.0-canary-20250210172703" peerDependencies: tslib: ^2.6.2 typescript: ~5.5.2 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/443a02cbe748f297df690f41e4f19c80b17ddff614849a15902f9ed33aa4fd3853133107ccd07b56f4db34e43fa60c7c68e1cb94fa6f918a3945137a55942cba + checksum: 10c0/8132f86b9a3a239db7ebd803b2c47301ffa3457643a8283983e5226bb9fb091ff66b4707179e96ed7fee79a5a02260022d03b9dee86455f312d81c8aee42fdd9 languageName: node linkType: hard