-
Notifications
You must be signed in to change notification settings - Fork 173
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
fix: fix simplify registration experiment bugs #1175
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1175 +/- ##
==========================================
- Coverage 84.81% 84.23% -0.58%
==========================================
Files 127 127
Lines 2371 2392 +21
Branches 671 678 +7
==========================================
+ Hits 2011 2015 +4
- Misses 345 357 +12
- Partials 15 20 +5 ☔ View full report in Codecov by Sentry. |
!expVariation || expVariation === NOT_INITIALIZED || expVariation === DEFAULT_VARIATION | ||
|| (expVariation === SIMPLIFIED_REGISTRATION_VARIATION | ||
&& ( |
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.
For my understanding can you explain this condition? What is this doing?
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.
We have four states of experiment
1- (!expVariation
) at start, when experiment is being initialized or not initialized because it was either embedded register page, tpaHint or currentProvider was available -> We want to show spinner when exp is being initialized and we want to show normal register page if its embedded register page, tpaHint or currentProvider is available.
2- (expVariation === NOT_INITIALIZED
) experiment could not be initialized due to any unknown reason -> we want to show normal register page
3- (expVariation === DEFAULT_VARIATION
) experiment is initialized and user is bucketed into the DEFAULT_VARIATION
. -> we want to show normal register page
4- expVariation === SIMPLIFIED_REGISTRATION_VARIATION
) experiment is initialized and user is bucketed into the SIMPLIFIED_REGISTRATION_VARIATION
. -> we want to show all fields except username on first step and username + honor_code in second step of simplified register page
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.
The above condition satisfies the above 4 scenarios
f80c21b
to
e3f8043
Compare
Description
Fix experiment initialization bug