[PM-35357] Update Trial Length Parameter#7597
Conversation
…ation creation requests
…al length validation
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR adds a customizable Code Review DetailsNo new findings. All previously raised concerns are resolved:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7597 +/- ##
==========================================
+ Coverage 59.84% 59.95% +0.11%
==========================================
Files 2120 2120
Lines 93168 93179 +11
Branches 8264 8264
==========================================
+ Hits 55753 55866 +113
+ Misses 35440 35338 -102
Partials 1975 1975 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
refactor: update mail service interfaces and implementations
test: update `CloudOrganizationSignUpCommandTests` for trial validation
|
| .Select(d => d.Id.ToString()); | ||
| } | ||
|
|
||
| private static void ValidateTrialLength(OrganizationSignup signup) |
There was a problem hiding this comment.
❓ Now that this is just a range check, the [Range(0, 30)] on both request models already covers it for the public API path. Is the duplicate guard here for callers that bypass the model binder (provider signup, internal callers)? If so, fine — if not, we can drop it and let the model attribute be the single source of truth.
There was a problem hiding this comment.
Yep this is for internal calls that may not run into the model.
|
|
||
| await PerformConstantTimeOperationsAsync(); | ||
|
|
||
| if (trialLength != 0 && trialLength != 7) |



🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-35357
📔 Objective
This pull request implements a custom trial length to be specified.
API and model changes:
TrialLength(with validation of 0–30 days) properties to organization creation and signup models (OrganizationCreateRequestModel,OrganizationNoPaymentCreateRequest,OrganizationSignup) and ensured these are passed through to business logic and billing.Business logic and billing integration:
📸 Screenshots
Screen.Recording.2026-05-08.at.2.03.17.PM.mov