Skip to content
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

Conversation

justinswart
Copy link
Contributor

@justinswart justinswart commented Feb 28, 2020

📲 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

  • Added the experiment activation.
  • Added logic to only activate the experiment if we were able to successfully retrieve the project creator details from GraphQL as this is a secondary network request.

✅ Acceptance criteria

Navigate to a project page.

  • If fetchProjectCreatorDetails fails and you are in variant1 the VM should output (nil, true) for ProjectCreatorDetailsData.
  • If fetchProjectCreatorDetails succeeds and you are in variant1 the VM should output (result, true) for ProjectCreatorDetailsData.
  • If you are in the control group, the VM should output (nil, true) for ProjectCreatorDetailsData.

@@ -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"
Copy link
Contributor

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
Copy link
Collaborator

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 characters
line_length ProjectPamphletContentViewModelTests.swift:410


let optimizelyClient = MockOptimizelyClient()
|> \.experiments .~ [
OptimizelyExperiment.Key.nativeProjectPageConversionCreatorDetails.rawValue: OptimizelyExperiment.Variant.control.rawValue
Copy link
Collaborator

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 characters
line_length ProjectPamphletContentViewModelTests.swift:488


let optimizelyClient = MockOptimizelyClient()
|> \.experiments .~ [
OptimizelyExperiment.Key.nativeProjectPageConversionCreatorDetails.rawValue: OptimizelyExperiment.Variant.variant1.rawValue
Copy link
Collaborator

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 characters
line_length ProjectPamphletContentViewModelTests.swift:633

Copy link
Contributor

@cdolm92 cdolm92 left a comment

Choose a reason for hiding this comment

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

Incredible 🛳

@justinswart justinswart merged commit 5804aa5 into NT-863-feature-creator-details-experiment Mar 3, 2020
@justinswart justinswart deleted the NT-940-activate-creator-details-variant branch March 3, 2020 02:21
ifbarrera pushed a commit that referenced this pull request Mar 18, 2020
* [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>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants