[PM-31780] Add exempt from billing automation toggle#7438
[PM-31780] Add exempt from billing automation toggle#7438amorask-bitwarden merged 8 commits intomainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7438 +/- ##
==========================================
+ Coverage 58.66% 63.12% +4.46%
==========================================
Files 2066 2066
Lines 91089 91094 +5
Branches 8106 8107 +1
==========================================
+ Hits 53440 57507 +4067
+ Misses 35740 31592 -4148
- Partials 1909 1995 +86 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Great job! No new security vulnerabilities introduced in this pull request |
| [UseMyItems], | ||
| [ExemptFromBillingAutomation] | ||
| FROM | ||
| [dbo].[Organization] |
There was a problem hiding this comment.
Since the Organization table was updated, any view that selects from it should be refreshed (no need to refresh OrganizationView though since you're re-defining it anyway).
GO
EXEC sp_refreshview N'[dbo].[OrganizationCipherDetailsCollectionsView]';
EXEC sp_refreshview N'[dbo].[OrganizationUserOrganizationDetailsView]';
EXEC sp_refreshview N'[dbo].[ProviderOrganizationOrganizationDetailsView]';
EXEC sp_refreshview N'[dbo].[ProviderUserProviderOrganizationDetailsView]';
EXEC sp_refreshview N'[dbo].[UserPremiumAccessView]';There was a problem hiding this comment.
Thanks for catching - added here: ca1628b
|




🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-31780
📔 Objective
Adds an
ExemptFromBillingAutomationboolean property to the Organization entity, exposed as a checkbox in the admin portal's Billing section. When checked, the organization is marked as exempt from automated billing lifecycle operations (subscription cancellation, disabling for non-payment).The toggle is gated by the existing
Org_Billing_Editpermission, accessible to Owner, Admin, and Billing roles. No new permissions are introduced.This is the first of a set of related tickets:
Changes
ExemptFromBillingAutomation BIT NOT NULL DEFAULT(0)column with idempotent MSSQL migration + EF migrations for Postgres/MySQL/SQLiteOrganization.csOrg_Billing_Editblock), and view (checkbox in Billing section)Organization_Create,Organization_Update,OrganizationView📸 Screenshots
Screen.Recording.2026-04-10.at.9.43.50.AM.mov