Brandon Treston
81bff5e5cf
[PM-11622] use organization domains ( #5560 )
...
* DBO changes
* Add migration scripts
* wip
* wip
* wip
* add EF migrations
* run dotnet format
* cleanup
* revert business logic
* wip
* add update statement to mssql migration script
* fix user service tests
* increment license, add UseOrganizationDomains
* add migration helpers to seed initial value from UseSso
* clean up
* cleanup
* fix mssql migrations
* fix license version and test
* fix file names
* fix license json
* add missing property to license test
* rename file
* fix migrations
* fix migration
* add WHERE to helper scripts
* separate schema/data migrations
* restore comment
* Merge conflict
* fix migrations
* add new property to migration
* wip
* fix file names
* fix file name
2025-05-15 10:42:51 -04:00
Jonas Hendrickx
c182b37347
[PM-17830] Backend changes for admin initiated sponsorships ( #5531 )
...
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Add `Notes` column to `OrganizationSponsorships` table
* Add feature flag to `CreateAdminInitiatedSponsorshipHandler`
* Unit tests for `CreateSponsorshipHandler`
* More tests for `CreateSponsorshipHandler`
* Forgot to add `Notes` column to `OrganizationSponsorships` table in the migration script
* `CreateAdminInitiatedSponsorshipHandler` unit tests
* Fix `CreateSponsorshipCommandTests`
* Encrypt the notes field
* Wrong business logic checking for invalid permissions.
* Wrong business logic checking for invalid permissions.
* Remove design patterns
* duplicate definition in Constants.cs
* Allow rollback
* Fix stored procedures & type
* Fix stored procedures & type
* Properly encapsulating this PR behind its feature flag
* Removed comments
* Updated ValidateSponsorshipCommand to validate admin initiated requirements
---------
Co-authored-by: Conner Turnbull <133619638+cturnbull-bitwarden@users.noreply.github.com>
Co-authored-by: Conner Turnbull <cturnbull@bitwarden.com>
2025-04-16 11:27:58 -04:00
Alex Morask
a2e665cb96
[PM-16684] Integrate Pricing Service behind FF ( #5276 )
...
* Remove gRPC and convert PricingClient to HttpClient wrapper
* Add PlanType.GetProductTier extension
Many instances of StaticStore use are just to get the ProductTierType of a PlanType, but this can be derived from the PlanType itself without having to fetch the entire plan.
* Remove invocations of the StaticStore in non-Test code
* Deprecate StaticStore entry points
* Run dotnet format
* Matt's feedback
* Run dotnet format
* Rui's feedback
* Run dotnet format
* Replacements since approval
* Run dotnet format
2025-02-27 07:55:46 -05:00
Jimmy Vo
93f5b34223
Add limit item deletion server code ( #5308 )
2025-01-28 12:58:04 -05:00
Jared McCannon
217b86ba9e
Modified view and models to pull Provider Type from the provider table for The ProviderUserOrganizationDetailsViewQuery ( #5215 )
2025-01-06 10:34:52 -06:00
Addison Beck
092b0b8bd2
Remove LimitCollectionCreationDeletionSplit
feature flag ( #4809 )
...
* Remove references to feature flag
* Demote entity property to an EF shadow property
* Add a few excludes to license file tests
2024-12-06 11:46:17 +01:00
Vijay Oommen
1f1510f4d4
PM-15091 Add Feature Flag to DB called UseRiskInsights ( #5088 )
...
Add a new column called UseRiskInsights to `dbo.Organization`
2024-12-05 10:46:01 -06:00
Addison Beck
91409a45f0
Split Organization.LimitCollectionCreationDeletion
into two separate business rules ( #4730 )
...
* Add feature flag
* Promoted the new Entiy Framework properties
* Deprecate the old property
* Update references
* Fix mispelling
* Re-add contextual comment regarding dropped license properties
* Add back deleted assertion for deprecated property
* Add back removed fixture property assignment
* Improve feature toggling scenerios for self hosted org creation/update
* Unblock `PutCollectionManagement` for self host
* Simplify logic of a couple of conditionals
* Feature toggle route unblocking
* Adjust logic collection creation/deletion authorization handler
* Create tests
* Fix bug caught by tests
* Fix bugs caught during manual testing
* Remove remark about license
2024-10-18 11:00:01 -04:00
Vincent Salucci
903c412943
[AC-2648] Remove Organization.FlexibleCollections from Models ( #4529 )
...
* chore: remove FlexibleCollections refs from OrganizationAbility, AC-2648
* chore: remove FlexibleCollections property from OrganizationResponseModel, refs AC-2648
* chore: remove FlexibleCollections from ProfileOrganizationResponseModel and ProfileProviderOrganizationResponseModel, refs AC-2648
* chore: remove FlexibleCollections from SelfHostedOrganizationDetails, refs AC-2648
2024-07-23 16:03:02 -05:00
Conner Turnbull
721d2969d4
[PM-8830] Billing Enums Rename ( #4180 )
...
* Renamed ProductType to ProductTierType
* Renamed Product properties to ProductTier
* Moved ProductTierType to Bit.Core.Billing.Enums namespace from Bit.Core.Enums
* Moved PlanType enum to Bit.Core.Billing.Enums
* Moved StaticStore to Bit.Core.Billing.Models.StaticStore namespace
* Added ProductType enum
* dotnet format
2024-06-14 15:34:47 -04:00
Rui Tomé
7bf17a20f4
[AC-2104] Add flexible collections properties to provider organizations sync response ( #3717 )
2024-01-29 14:04:45 -06:00
Conner Turnbull
f9fc43dbb1
[AC-1650] [AC-1578] ( #3320 )
...
* Upgraded old 2019 plans to have the same features as 2020 and beyond
* Removed redundant test and moved additional test cases to GetByOrgIdAsync_SmNoneFreePlans_ReturnsNull
* Fixed issue where feature flag wasn't returning correct plans
* Resolved issue where getting plans would return a value that LINQ previously cached when feature flag was in a different state
---------
Co-authored-by: cyprain-okeke <108260115+cyprain-okeke@users.noreply.github.com>
2023-11-01 12:43:35 +00:00
Thomas Rittson
26dd8b0e47
[AC-1284] AC Team code ownership moves - Provider ( #3359 )
2023-10-26 13:38:29 -04:00
Thomas Rittson
37e9d70bee
AC Team code ownership moves - Api project ( #3351 )
2023-10-18 11:27:56 -04:00