Repository navigation
[2.0] Fixes #31770: restrict direct users to Group teams - #32372
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
✅ Playwright Results — workflow succeededValidated commit ✅ 784 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 49m 33s ⏱️ Max setup 3m 0s · max shard execution 17m 45s · max shard-job elapsed before upload 21m 8s · reporting 6s 🌐 201.86 requests/attempt · 2.54 app boots/UI scenario · 36.15% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Code Review ✅ Approved 1 resolved / 1 findingsBackports non-Group team user-membership validation to 2.0, restricting direct user assignments to Department, Division, and BusinessUnit teams across team and user write paths. The ✅ 1 resolved✅ Bug: validateGroupTeams(origTeams) blocks API cleanup of invalid data
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Describe your changes:
Fixes #31770
Backports the non-Group team user-membership validation to 2.0. Direct user memberships are now rejected for Department, Division, and BusinessUnit teams across team and user write paths. Existing invalid data requires the agreed DB cleanup; this PR intentionally adds no migration or API bypass.
Type of change:
High-level design:
Validation is at the relationship write boundaries. The shared test bootstrap assigns its users to existing child Group teams, so it remains valid without changing downstream test semantics.
Tests:
TeamResourceITandUserResourceITfor the affected API paths.mvn spotless:applypassed.UI screen recording / screenshots:
Not applicable.
Checklist:
Fixes #31770above.