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

chore: move onboarding phone verification experiment to feature gate #5563

Merged
merged 7 commits into from
Jun 24, 2024

Conversation

MuckT
Copy link
Collaborator

@MuckT MuckT commented Jun 20, 2024

Description

Moves the onboarding experiment from #5256 to a feature gate and sets it to default enabled.

Test plan

  • Tested locally on iOS
  • Tested locally on Android
  • Unit tests updated

Related issues

Backwards compatibility

Yes

Network scalability

N/A

Copy link

codecov bot commented Jun 21, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.45%. Comparing base (a373e54) to head (422906b).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5563      +/-   ##
==========================================
- Coverage   86.46%   86.45%   -0.01%     
==========================================
  Files         765      765              
  Lines       31506    31505       -1     
  Branches     5458     5458              
==========================================
- Hits        27243    27239       -4     
+ Misses       4220     4034     -186     
- Partials       43      232     +189     
Files Coverage Δ
src/statsig/constants.ts 100.00% <ø> (ø)
src/statsig/types.ts 100.00% <100.00%> (ø)
test/values.ts 100.00% <ø> (ø)
src/onboarding/steps.ts 91.52% <66.66%> (-0.08%) ⬇️

... and 78 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a373e54...422906b. Read the comment docs.

const { skipVerification } = getExperimentParams(
ExperimentConfigs[StatsigExperiments.ONBOARDING_PHONE_VERIFICATION]
)
const skipVerification = getFeatureGate(StatsigFeatureGates.SHOW_ONBOARDING_PHONE_VERIFICATION)
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be const skipVerification = !getFeatureGate(StatsigFeatureGates.SHOW_ONBOARDING_PHONE_VERIFICATION)? It looks like the feature gate is a boolean saying to show verification but then this const is a boolean saying to skip it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in 780994e! Interestingly, the tests missed this, but it appears expected due to how they set up mock props.

@MuckT
Copy link
Collaborator Author

MuckT commented Jun 21, 2024

It seems that these tests are failing because the feature gate isn't returning enabled yet: Statsig.

@MuckT MuckT added this pull request to the merge queue Jun 24, 2024
Merged via the queue into main with commit 3365fa7 Jun 24, 2024
16 checks passed
@MuckT MuckT deleted the tomm/act-1202 branch June 24, 2024 22:54
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.

None yet

3 participants