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

Disabling experiment on debug builds #808

Merged
merged 5 commits into from
Aug 20, 2019
Merged

Conversation

Scollaco
Copy link
Contributor

📲 What

  • Disables experiments on non-Release builds.

🤔 Why

The Native Experiment currently makes the Native Checkout unavailable for users that are part of the control bucket, making the work and QA for that project impossible.

In order to revert this, we should enable experiments exclusively for Release builds, this way the Native Checkout work won't be interrupted.

🛠 How

Following @justinswart 's suggestion, we now have a debugDefault variable inside the Experiment.Name enum that currently enables both existing experiments.

✅ Acceptance criteria

  • On alpha, beta and debug builds, the native checkout show be available regardless the value of the bucket of the native_checkout_v1 experiment. *
  • Note: The app should still be sending control or experimental to db/Looker.

@@ -37,7 +42,7 @@ final class ExperimentName_HelpersTests: TestCase {
let config = Config.template
|> \.abExperiments .~ ["unknown": "experimental"]

withEnvironment(config: config) {
withEnvironment(config: config, mainBundle: self.releaseBundle) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a test to verify that when the bundle is not the .isRelease bundle, that the debugDefault is returned?

@Scollaco Scollaco merged commit ece1a90 into master Aug 20, 2019
@Scollaco Scollaco deleted the disabling_experiment_for_debug branch August 20, 2019 20:51
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.

2 participants