[PM-18236] - Use Single Org Requirement#6999
Conversation
|
Claude finished @jrmccannon's task in 4m 9s —— View job Re-Review: PM-18236 - Use Single Org RequirementScopeRe-review triggered by commit Changes Since Last ReviewCommit
Both use Why this is needed: Verification
Previous Findings Status
New FindingsNo new issues found. The change is a straightforward test fix. |
|
New Issues (2)Checkmarx found the following issues in this Pull Request
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6999 +/- ##
=======================================
Coverage 56.87% 56.87%
=======================================
Files 2028 2029 +1
Lines 88827 88831 +4
Branches 7917 7921 +4
=======================================
+ Hits 50523 50527 +4
+ Misses 36472 36469 -3
- Partials 1832 1835 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
eliykat
left a comment
There was a problem hiding this comment.
This looks good! I have started a thread in the dev channel about how we handle this feature flag, please let me know what you think there. I will have a closer look at call sites once we agree on an approach.
eliykat
left a comment
There was a problem hiding this comment.
Nobody objected, so I suggest you can remove the feature flag from these changes, and add the needs-qa label.
… Aligned error message with what other commands were returning.
# Conflicts: # src/Core/AdminConsole/OrganizationFeatures/Organizations/InitPendingOrganizationCommand.cs # test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/ConfirmOrganizationUserCommandTests.cs # test/Core.Test/AdminConsole/OrganizationFeatures/Organizations/InitPendingOrganizationCommandTests.cs
eliykat
left a comment
There was a problem hiding this comment.
Great work @jrmccannon , thanks for helping to close out this implementation. The call sites look a lot better.
# Conflicts: # src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/ConfirmOrganizationUserCommand.cs
…sers/RestoreUser/RestoreOrganizationUserCommandTests.cs Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
|
* Added new methods and ff for single org req * Changed req messages and added new method for creating orgs * Updated Requirement and Tests. * Updated commands and requirement to take a list of org users * Updated xml docs and renamed to be consistent * Changes from Code Review * Removed feature flag check for policy requirements around single org. Aligned error message with what other commands were returning. * Fixed test names. Updated error messages to be specific for each caller. * Updated tests to clean up details consturction * Added test for confirmed accepted user in another org. * fixed tests to use new factory * Update test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/RestoreUser/RestoreOrganizationUserCommandTests.cs Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> * Fixed tests by adding no op for req. --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>






🎟️ Tracking
PM-18236
📔 Objective
In order to help encapsulate all business logic around Policies, we are moving the logic into requirements that can take the raw data and provide meaningful methods to discern the state of the organization and what actions can be performed by a user.
For single organization, this captures that a user cannot be another member of an organization in order to join an exisitng org that has Single Org enabled. If a user is a member of anotehr orgh with Single Organization Policy enabled, they cannot join or create another org.
For more information see here
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes