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

[NT-1175] Coalesce experimental variants to control #1173

Merged
merged 2 commits into from
Apr 23, 2020

Conversation

justinswart
Copy link
Contributor

πŸ“² What

Coalesces optional OptimizelyExperiment.Variant? values to .control.

πŸ€” Why

We've received a handful of bug reports in which the read more about the campaign button is missing on the project page. We suspect this might occur if the Optimizely client fails to initialize and the skipNil() on the signal that configures the button causes it to never emit.

πŸ›  How

Coalesced nil values to .control in functions where we return an optional value for the variant.

βœ… Acceptance criteria

  • Prevent the Optimizely client from being configured, navigate to the project page. The read more button should be visible.

@@ -27,6 +27,6 @@ extension OptimizelyExperiment {
.variant(
for: OptimizelyExperiment.Key.nativeProjectPageCampaignDetails,
userAttributes: optimizelyUserAttributes(with: project, refTag: refTag)
)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the function return value can also be changed to OptimizelyExperiment.Variant if we're coalescing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah thanks - I had it like that but then reverted to right a failing test and forgot to switch back πŸ˜…

@justinswart justinswart merged commit 281a7fa into master Apr 23, 2020
@justinswart justinswart deleted the NT-1175-read-more-button-bugfix branch April 23, 2020 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants