PM-40657: feat: Add support for disableUserRegistration boolean - #7186
Conversation
🤖 Bitwarden Claude Code ReviewOverall Assessment: REQUEST CHANGES This PR adds a Code Review Details
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #7186 +/- ##
==========================================
+ Coverage 85.94% 86.08% +0.13%
==========================================
Files 1124 886 -238
Lines 68200 64756 -3444
Branches 9799 9683 -116
==========================================
- Hits 58612 55742 -2870
+ Misses 6065 5538 -527
+ Partials 3523 3476 -47
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
40c63af to
64d97ae
Compare
64d97ae to
78c0abd
Compare
| */ | ||
| val allowCreateAccount: Boolean | ||
| get() = selectedEnvironmentType != Environment.Type.FED_RAMP | ||
| get() = !disableCreateAccount && selectedEnvironmentType != Environment.Type.FED_RAMP |
There was a problem hiding this comment.
🤔 more of a thought, we are adding the disableCreateAccount for the FED_RAMP environment but we are keeping the hard check on the env.
As I believe we never want to display this on FED_RAMP env, also feel that it is more of a server responsability 🤔 also on other places we are simply relying on the disableUserRegistration value
There was a problem hiding this comment.
This is the only screen that allows a full FedRamp type to be selected. Since we know the type directly here we can block account creation. Whereas on the StartRegistrationScreen, we completely filter out the FedRamp option. but the individual environments might still have the disableUserRegistration boolean set.
Keeping the check for the FED_RAMP type just means we do not need to wait for the config request go through. It's a minor optimization that was added to the requirements.
aj-rosado
left a comment
There was a problem hiding this comment.
LGTM, just left a little non blocking comment
|
Thanks @aj-rosado |
🎟️ Tracking
PM-35124
PM-40675
PM-40657
📔 Objective
This PR adds the
settingto theConfigResponseJsonand uses that data to hide theCreate accountbutton on the Landing screen and the Welcome screen.