cyprain-okeke
b48a09a338
Resolve the revoke for more than one Sponsorship ( #5827 )
2025-05-16 15:23:09 +01:00
cyprain-okeke
d58836bb60
Resolve the remove button issue ( #5811 )
2025-05-13 16:48:37 +01:00
cyprain-okeke
e4359f071c
[PM-21097] Fix: Prevent admin-added sponsored families from appearing in individual vault settings ( #5767 )
...
* Changes to resolve sponsorship showing in individual vault
* Resolve the failing unit test
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
* Resolve the failing test
* Resolve the failing test
* Resolve the failing test
* fix make IsAdminInitiated nullable
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
* Add the isAdminInitiated property
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
* Resolve the database error
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
* Resolve the failing unit test
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
* Resolve the scan error
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
* Resolve the database issue
* resolve the database build error
* Resolve the database build error
* Resolve the synchronization issue
---------
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
2025-05-12 18:21:07 +01:00
cyprain-okeke
887fa46374
Resolve the send email bug ( #5763 )
2025-05-05 16:17:31 +01:00
cyprain-okeke
dc5db5673f
[PM-17775] ( #5699 )
...
* Changes to allow admin to send F4E sponsorship
* Fix the failing unit tests
* Fix the failing test
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
* Merge Changes with pm-17777
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
* Add changes for autoscale
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
* Return the right error response
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
* Resolve the failing unit test
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
---------
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
2025-05-01 16:35:51 +01:00
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