-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[NT-940] Activate Creator Details Experiment #1088
[NT-940] Activate Creator Details Experiment #1088
Conversation
…activate-creator-details-variant # Conflicts: # Library/ViewModels/ProjectPamphletContentViewModel.swift # Library/ViewModels/ProjectPamphletContentViewModelTests.swift
Library/OptimizelyExperiment.swift
Outdated
@@ -5,6 +5,7 @@ public enum OptimizelyExperiment { | |||
public enum Key: String { | |||
case pledgeCTACopy = "pledge_cta_copy" | |||
case nativeProjectPageCampaignDetails = "native_project_page_campaign_details" | |||
case projectPageConversionCreatorDetails = "project_page_conversion_creator_details" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the name of the experiment is native_project_page_conversion_creator_details
withEnvironment(apiService: mockService) { | ||
let optimizelyClient = MockOptimizelyClient() | ||
|> \.experiments .~ [ | ||
OptimizelyExperiment.Key.nativeProjectPageConversionCreatorDetails.rawValue: OptimizelyExperiment.Variant.variant1.rawValue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 | Line should be 110 characters or less: currently 131 charactersline_length ProjectPamphletContentViewModelTests.swift:410 |
|
||
let optimizelyClient = MockOptimizelyClient() | ||
|> \.experiments .~ [ | ||
OptimizelyExperiment.Key.nativeProjectPageConversionCreatorDetails.rawValue: OptimizelyExperiment.Variant.control.rawValue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 | Line should be 110 characters or less: currently 130 charactersline_length ProjectPamphletContentViewModelTests.swift:488 |
|
||
let optimizelyClient = MockOptimizelyClient() | ||
|> \.experiments .~ [ | ||
OptimizelyExperiment.Key.nativeProjectPageConversionCreatorDetails.rawValue: OptimizelyExperiment.Variant.variant1.rawValue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 | Line should be 110 characters or less: currently 131 charactersline_length ProjectPamphletContentViewModelTests.swift:633 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incredible 🛳
* [NT-878, NT-873] Add Experiment and Read More is a full-width button (#1073) * [NT-876] Add Pledge CTA to ProjectDescriptionViewController (#1072) * [NT-876] Pop ProjectPamphlet to root after project is backed (#1075) * [NT-876] Add Project Campaign Experiment Tests (#1076) * Hide the back this project button to creators of their own projects (#1078) * [NT-877] Project page Optimizely Events (#1079) * Add loader to read more button in second variant (#1077) * [NT-930] Add Project Creator Details Query and VM outputs (#1086) * [NT-940] Activate Creator Details Experiment (#1088) * [NT-931] Add creator byline view (#1089) Co-authored-by: Justin Swart <justinswart@users.noreply.github.com> * [NT- 956] CreatorByline View Model and Tests (#1095) * [NT-937] Creator Details Shimmer Loading View (#1097) * [NT- 939] Creator details tracking events (#1098) * translated copy (#1111) Co-authored-by: Christella <cdolm92@gmail.com>
📲 What
Activates the
project_page_conversion_creator_details
experiment.🤔 Why
A continuation of the work in #1086, this conditionally activates the experiment if the fetching of the project creator details succeeds.
🛠 How
✅ Acceptance criteria
Navigate to a project page.
fetchProjectCreatorDetails
fails and you are invariant1
the VM should output(nil, true)
forProjectCreatorDetailsData
.fetchProjectCreatorDetails
succeeds and you are invariant1
the VM should output(result, true)
forProjectCreatorDetailsData
.control
group, the VM should output(nil, true)
forProjectCreatorDetailsData
.