Skip to content

Commit

Permalink
feat: Enleve AB-test sur la question en_couple (#3920)
Browse files Browse the repository at this point in the history
  • Loading branch information
baptou12 authored Aug 23, 2023
1 parent d31fc93 commit 562ef03
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 30 deletions.
15 changes: 0 additions & 15 deletions lib/properties/famille-properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,6 @@ export default {
}),

en_couple: new EnumProperty({
question: "Vivez-vous seul ou seule ou bien en couple ?",
questionType: "enum",
items: [
{
label: "Je vis seul ou seule",
value: false,
},
{
label: "Je vis en couple",
value: true,
},
],
}),

en_couple_new: new EnumProperty({
question: "Vivez-vous en couple ?",
questionType: "enum",
items: [
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 @@ -57,13 +57,6 @@ function getEnvironment() {
ABTesting.benefit_result_page.value ||
(Math.random() > 0.5 ? "OldUI" : "NewUI")

// Définition de la valeur d'AB testing pour la question de la vie en couple
ABTesting.en_couple_step = ABTesting.en_couple_step || {}
ABTesting.en_couple_step.index = 3
ABTesting.en_couple_step.value =
ABTesting.en_couple_step.value ||
(Math.random() > 0.5 ? "OldQuestion" : "NewQuestion")

// Définition de la valeur d'AB testing pour le formulaire du récapitulatif par email
ABTesting.recap_email_form = ABTesting.recap_email_form || {}
ABTesting.recap_email_form.index = 4
Expand Down
1 change: 0 additions & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ const router = createRouter({
name: "init-ci",
redirect: () => {
ABTestingService.setVariant("benefit_result_page", "NewUI")
ABTestingService.setVariant("en_couple_step", "NewQuestion")
ABTestingService.setVariant("recap_email_form", "Page")
return "/"
},
Expand Down
7 changes: 0 additions & 7 deletions src/views/simulation/mutualized-step.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ import { ENTITIES_PROPERTIES } from "@lib/mutualized-steps"
import { getAnswer, nullifyUndefinedValue } from "@lib/answers.js"
import { useIndividu } from "@/composables/individu.js"
import { useStore } from "@/stores/index.js"
import ABTestingService from "@/plugins/ab-testing-service.js"
export default {
name: "MutualizedStep",
Expand Down Expand Up @@ -165,12 +164,6 @@ export default {
}
},
step() {
if (
this.fieldName === "en_couple" &&
ABTestingService.getValues().en_couple_step === "NewQuestion"
) {
return this.entityProperties["en_couple_new"]
}
return this.entityProperties[this.fieldName]
},
},
Expand Down

0 comments on commit 562ef03

Please sign in to comment.