Skip to content

[PM-19143] Refactor public API MembersController POST to use CommandResult pattern#7182

Open
r-tome wants to merge 4 commits intomainfrom
ac/pm-19143/memberscontroller-commandresult-refactor
Open

[PM-19143] Refactor public API MembersController POST to use CommandResult pattern#7182
r-tome wants to merge 4 commits intomainfrom
ac/pm-19143/memberscontroller-commandresult-refactor

Conversation

@r-tome
Copy link
Contributor

@r-tome r-tome commented Mar 9, 2026

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-19143

📔 Objective

Refactor the POST endpoint in the public api MembersController to use the new InviteOrganizationUsersCommand

r-tome added 4 commits March 9, 2026 17:18
…sersRequest

- Introduced ToInviteRequest method for transforming MemberCreateRequestModel into InviteOrganizationUsersRequest.
- Enhanced model with additional using directives for improved functionality.
…mand

Add a new code path behind the CommandResultRefactor feature flag that
replaces the legacy InviteUserAsync call with the InviteOrganizationUsersCommand.
Integration tests verify both paths produce identical results.
@r-tome r-tome marked this pull request as ready for review March 9, 2026 17:45
@r-tome r-tome requested a review from a team as a code owner March 9, 2026 17:45
@r-tome r-tome requested a review from JimmyVo16 March 9, 2026 17:45
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 9, 2026

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

Logo
Checkmarx One – Scan Summary & Detailsa6fea0b2-9df7-41bb-b357-426c3fab9197

Great job! No new security vulnerabilities introduced in this pull request

@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

❌ Patch coverage is 85.10638% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.11%. Comparing base (d86b7fa) to head (75d6dc4).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...minConsole/Public/Controllers/MembersController.cs 84.61% 3 Missing and 1 partial ⚠️
.../Public/Models/Request/MemberCreateRequestModel.cs 85.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7182      +/-   ##
==========================================
+ Coverage   57.06%   57.11%   +0.04%     
==========================================
  Files        2028     2028              
  Lines       88774    88839      +65     
  Branches     7913     7918       +5     
==========================================
+ Hits        50656    50736      +80     
+ Misses      36287    36268      -19     
- Partials     1831     1835       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant