From ab485200d403a5ae454f703b6202b60031182528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20PASTOURET?= Date: Mon, 14 Oct 2024 17:54:24 +0200 Subject: [PATCH] Application de la reformulation pour France Travail (#4631) * feat: suppression beta test et application de la reformulation * chore: suppression de l'ab testing question_debut_chomage --- lib/properties/individu-properties.ts | 19 +++++-------------- src/plugins/ab-testing-service.ts | 7 ------- src/router.ts | 1 - 3 files changed, 5 insertions(+), 22 deletions(-) diff --git a/lib/properties/individu-properties.ts b/lib/properties/individu-properties.ts index b39d7fd225..fbc6c98c9d 100644 --- a/lib/properties/individu-properties.ts +++ b/lib/properties/individu-properties.ts @@ -269,20 +269,11 @@ export default { }), date_debut_chomage: new DateProperty({ - question: ({ individu, abtestingService }) => { - const abtestingEnvironment = abtestingService.getEnvironment() - const version = abtestingEnvironment.question_debut_chomage.value - if (version === "actuelle") { - return `Quand ${IndividuMethods.label( - individu, - "avoir" - )} commencé à être au chômage ?` - } else { - return `Depuis quand ${IndividuMethods.label( - individu, - "être" - )} inscrit(e) à France Travail ?` - } + question: ({ individu }) => { + return `Depuis quand ${IndividuMethods.label( + individu, + "être" + )} inscrit(e) à France Travail ?` }, }), diff --git a/src/plugins/ab-testing-service.ts b/src/plugins/ab-testing-service.ts index dc3aa5f2d0..76f545e888 100644 --- a/src/plugins/ab-testing-service.ts +++ b/src/plugins/ab-testing-service.ts @@ -66,13 +66,6 @@ function getEnvironment() { versions[Math.floor(Math.random() * versions.length)] ABTestingEnvironment.CTA_EmailRecontact = ctaEmailRecontact - ABTestingEnvironment.question_debut_chomage = - ABTestingEnvironment.question_debut_chomage || {} - ABTestingEnvironment.question_debut_chomage.index = 1 - ABTestingEnvironment.question_debut_chomage.value = - ABTestingEnvironment.question_debut_chomage.value || - (Math.random() > 0.5 ? "reformulation" : "actuelle") - ABTestingEnvironment.Followup_SMS = ABTestingEnvironment.Followup_SMS || {} ABTestingEnvironment.Followup_SMS.index = 2 ABTestingEnvironment.Followup_SMS.value = diff --git a/src/router.ts b/src/router.ts index 95a18e8f98..e7736c4af5 100644 --- a/src/router.ts +++ b/src/router.ts @@ -284,7 +284,6 @@ const router = createRouter({ "aides_bafa", "aides_bafa_fusionnees_conserve_position" ) - ABTestingService.setVariant("question_debut_chomage", "reformulation") ABTestingService.setVariant("Followup_SMS", "show") return "/" },