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. |
...sole/OrganizationFeatures/Policies/PolicyRequirements/SingleOrganizationPolicyRequirement.cs
Outdated
Show resolved
Hide resolved
...sole/OrganizationFeatures/Policies/PolicyRequirements/SingleOrganizationPolicyRequirement.cs
Outdated
Show resolved
Hide resolved
|
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.
...sole/OrganizationFeatures/Policies/PolicyRequirements/SingleOrganizationPolicyRequirement.cs
Outdated
Show resolved
Hide resolved
...OrganizationFeatures/Policies/PolicyRequirements/SingleOrganizationPolicyRequirementTests.cs
Show resolved
Hide resolved
...OrganizationFeatures/Policies/PolicyRequirements/SingleOrganizationPolicyRequirementTests.cs
Show resolved
Hide resolved
...sole/OrganizationFeatures/Policies/PolicyRequirements/SingleOrganizationPolicyRequirement.cs
Outdated
Show resolved
Hide resolved
...sole/OrganizationFeatures/Policies/PolicyRequirements/SingleOrganizationPolicyRequirement.cs
Show resolved
Hide resolved
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.
...sole/OrganizationFeatures/OrganizationUsers/RestoreUser/v1/RestoreOrganizationUserCommand.cs
Outdated
Show resolved
Hide resolved
...sole/OrganizationFeatures/Policies/PolicyRequirements/SingleOrganizationPolicyRequirement.cs
Show resolved
Hide resolved
...OrganizationFeatures/Organizations/OrganizationSignUp/CloudOrganizationSignUpCommandTests.cs
Outdated
Show resolved
Hide resolved
...OrganizationFeatures/Organizations/OrganizationSignUp/CloudOrganizationSignUpCommandTests.cs
Outdated
Show resolved
Hide resolved
...OrganizationFeatures/Policies/PolicyRequirements/SingleOrganizationPolicyRequirementTests.cs
Show resolved
Hide resolved
# Conflicts: # src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/ConfirmOrganizationUserCommand.cs
...le/OrganizationFeatures/OrganizationUsers/RestoreUser/RestoreOrganizationUserCommandTests.cs
Outdated
Show resolved
Hide resolved
…sers/RestoreUser/RestoreOrganizationUserCommandTests.cs 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