Skip to content

SenseOfProtection experiment: Cohort survey param#5889

Merged
nalcalag merged 4 commits intofeature/mike/sense-of-protection-test/add-test-frameworkfrom
feature/noelia/add_cohort_survey_param
Apr 16, 2025
Merged

SenseOfProtection experiment: Cohort survey param#5889
nalcalag merged 4 commits intofeature/mike/sense-of-protection-test/add-test-frameworkfrom
feature/noelia/add_cohort_survey_param

Conversation

@nalcalag
Copy link
Copy Markdown
Contributor

@nalcalag nalcalag commented Apr 9, 2025

Task/Issue URL: https://app.asana.com/0/1202552961248957/1209874180233369/f

Description

Added a temporary survey param for experiment cohort

Steps to test this PR

  • N/A

No UI changes

Copy link
Copy Markdown
Contributor

@cmonfortep cmonfortep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mikescamell mikescamell force-pushed the feature/mike/sense-of-protection-test/add-test-framework branch from a75ac5d to 2cff60a Compare April 16, 2025 14:38
@cmonfortep cmonfortep self-requested a review April 16, 2025 14:44
@mikescamell mikescamell force-pushed the feature/mike/sense-of-protection-test/add-test-framework branch from 2cff60a to cb2d266 Compare April 16, 2025 17:06
@nalcalag nalcalag force-pushed the feature/noelia/add_cohort_survey_param branch from df7c527 to 0736cf4 Compare April 16, 2025 17:08
@nalcalag nalcalag merged commit 66eb683 into feature/mike/sense-of-protection-test/add-test-framework Apr 16, 2025
1 of 4 checks passed
@nalcalag nalcalag deleted the feature/noelia/add_cohort_survey_param branch April 16, 2025 17:22
) : SurveyParameterPlugin {
override val surveyParamKey: String = "senseProtectionCohort"

override suspend fun evaluate(): String = senseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25().getCohort()?.name.orEmpty()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nalcalag shouldn't we checking that experiment is active?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we check if the experiment is active, a cohort will be assigned and we don't want that. We created a new survey for the experiment, so as soon as the experiment is disabled, we should also disable the survey or remove this survey param if they want to keep it.

malmstein pushed a commit that referenced this pull request Apr 25, 2025
Task/Issue URL:
https://app.asana.com/0/1202552961248957/1209874180233369/f

Added a temporary survey param for experiment cohort

- N/A

---------

Co-authored-by: Mike Scamell <mscamell@duckduckgo.com>
malmstein pushed a commit that referenced this pull request Apr 28, 2025
Task/Issue URL:
https://app.asana.com/0/1202552961248957/1209874180233369/f

Added a temporary survey param for experiment cohort

- N/A

---------

Co-authored-by: Mike Scamell <mscamell@duckduckgo.com>
malmstein pushed a commit that referenced this pull request Apr 28, 2025
Task/Issue URL:
https://app.asana.com/0/1202552961248957/1209874180233369/f

Added a temporary survey param for experiment cohort

- N/A

---------

Co-authored-by: Mike Scamell <mscamell@duckduckgo.com>
malmstein pushed a commit that referenced this pull request Apr 29, 2025
Task/Issue URL:
https://app.asana.com/0/1202552961248957/1209874180233369/f

Added a temporary survey param for experiment cohort

- N/A

---------

Co-authored-by: Mike Scamell <mscamell@duckduckgo.com>
malmstein pushed a commit that referenced this pull request Apr 30, 2025
Task/Issue URL:
https://app.asana.com/0/1202552961248957/1209874180233369/f

Added a temporary survey param for experiment cohort

- N/A

---------

Co-authored-by: Mike Scamell <mscamell@duckduckgo.com>
malmstein pushed a commit that referenced this pull request Apr 30, 2025
Task/Issue URL:
https://app.asana.com/0/1202552961248957/1209874180233369/f

Added a temporary survey param for experiment cohort

- N/A

---------

Co-authored-by: Mike Scamell <mscamell@duckduckgo.com>
malmstein pushed a commit that referenced this pull request Apr 30, 2025
Task/Issue URL:
https://app.asana.com/0/1202552961248957/1209874180233369/f

Added a temporary survey param for experiment cohort

- N/A

---------

Co-authored-by: Mike Scamell <mscamell@duckduckgo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants