Conner Turnbull
8a2012bb83
[PM-17777] sponsorships consume seats ( #5694 )
...
* Admin initiated sponsorships now use seats similarly to inviting an organization user
* Updated f4e endpoint to not expect a user ID, and instead just send a boolean
* Fixed failing tests
* Updated OrganizationUserReadOccupiedSeatCountByOrganizationIdQuery to ensure both left and right sides are selecting the same columns
2025-04-24 10:53:34 -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
Conner Turnbull
30ad7d3f73
[PM-18564] Added policy validation before creating or sending org sponsorship invite ( #5459 )
...
* Added policy validation before creating or sending org sponsorship invite
* dotnet format strikes again
2025-03-31 12:25:41 -04:00
cyprain-okeke
a8a08a0c8f
Remove the feature flag ( #5331 )
2025-02-05 09:18:23 +01:00
cyprain-okeke
c76d615fad
[PM-13346] Email notification impacts ( #5027 )
...
* Changes for the email notification
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
* Remove Get SponsoringSponsoredEmailAsync method
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
* Remove unused policyRepository referrence
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
* Removed unused OrganizationSponsorshipResponse
* Rollback unrelated code changes
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
* Resolve the failing test
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
* Method to get policy status without login
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
* Refactor the email notification
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
* Remove unused property
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
* Remove unused property
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
* Fix line spacing
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
* remove extra line
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
* Refactor base on the pr review
* Remove the unused interface
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
* Add changes for error message for disable policy
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
---------
Signed-off-by: Cy Okeke <cokeke@bitwarden.com >
2024-11-19 17:37:01 +01:00
Conner Turnbull
395d6e845c
[AC-2678] Enterprise to Families Sponsorship Bugs ( #4118 )
...
* Removed prorationDate as it wasn't used, and wasn't needed
* Fixed logic to detect if a subscription was sponsored
* Moved OrganizationSponsorshipsController.cs to Billing folder
2024-06-03 13:18:46 -04:00