Skip to content

Commit

Permalink
Application de la reformulation pour France Travail (#4631)
Browse files Browse the repository at this point in the history
* feat: suppression beta test et application de la reformulation

* chore: suppression de l'ab testing question_debut_chomage
  • Loading branch information
jenovateurs authored Oct 14, 2024
1 parent 582e0e3 commit ab48520
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
19 changes: 5 additions & 14 deletions lib/properties/individu-properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?`
},
}),

Expand Down
7 changes: 0 additions & 7 deletions src/plugins/ab-testing-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
1 change: 0 additions & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 "/"
},
Expand Down

0 comments on commit ab48520

Please sign in to comment.