[PM-36419] [BEEEP] Add collection management settings to seeder#7576
Conversation
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed PR #7576: adds collection management settings ( Code Review DetailsNo actionable findings. Notable verifications:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7576 +/- ##
==========================================
- Coverage 64.14% 59.76% -4.38%
==========================================
Files 2103 2103
Lines 92738 92738
Branches 8262 8262
==========================================
- Hits 59486 55425 -4061
- Misses 31207 35355 +4148
+ Partials 2045 1958 -87 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Working through a multi-agent-review with Claude, brought up an interesting, minor change to wording in the XML comments that worth considering. ♻️ Doc comments say "keep the plan default" but these settings are not plan-gated
Three doc comments in this diff describe a null override as "keeping the plan default":
None of the five settings ( What "plan default" implies: That the value is determined by which PlanType the org uses — Enterprise gets one default, Teams gets another, Free gets another, etc. What actually happens: None of these five settings appear anywhere in the PlanType switch in PlanFeatures.Apply. There is no per-plan logic for them — never was. They're org-level admin settings orthogonal to billing plan. If no override is supplied, the value falls back to whatever the Organization entity initializes to: the C# bool default of false. It's a ♻️ (not Why it matters: A developer reading "plan default" in the future might:
The accurate wording would be something like "keep the current value" or "leave unchanged from OrganizationSeeder.Create" — meaning null is purely a no-op passthrough, not a delegation to plan logic. Suggested fix — replace "plan default" with "entity default" or a reference to /// <summary>
/// Optional overrides applied on top of the organization's initial values.
/// Null properties mean "keep the value set by <see cref="OrganizationSeeder.Create"/>".
/// </summary> |
theMickster
left a comment
There was a problem hiding this comment.
Two minor changes to documentation, but otherwise support this 100%
…-collection-management-settings-to-seeder
|



🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-36419
📔 Objective
Allow control of collection management settings via the seeder. These alter organization/collection behavior significantly and go hand-in-hand with different collection/group assignments to set up a customer's preferred access controls.
I wanted to avoid appending lots of nullable parameters to various methods, so I've created an
OrganizationOverridesbucket to contain them. This should allow for easier modification in in the future as well.📸 Screenshots