Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application de la reformulation pour France Travail #4631

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading