[SIteSettings] Take project roles, edits into account when deleting a user#3971
[SIteSettings] Take project roles, edits into account when deleting a user#3971imnasnainaec merged 14 commits intomasterfrom
Conversation
Co-authored-by: imnasnainaec <6411521+imnasnainaec@users.noreply.github.com>
…ation Co-authored-by: imnasnainaec <6411521+imnasnainaec@users.noreply.github.com>
Co-authored-by: imnasnainaec <6411521+imnasnainaec@users.noreply.github.com>
|
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3971 +/- ##
==========================================
+ Coverage 74.58% 74.66% +0.07%
==========================================
Files 293 293
Lines 10817 10890 +73
Branches 1353 1364 +11
==========================================
+ Hits 8068 8131 +63
- Misses 2354 2362 +8
- Partials 395 397 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
imnasnainaec
left a comment
There was a problem hiding this comment.
@imnasnainaec reviewed all commit messages.
Reviewable status: 0 of 15 files reviewed, all discussions resolved (waiting on @copilot)
jasonleenaylor
left a comment
There was a problem hiding this comment.
Failing to get user info should fail the contents.
@jasonleenaylor reviewed 2 of 5 files at r2, 12 of 13 files at r3, all commit messages.
Reviewable status: 14 of 15 files reviewed, all discussions resolved (waiting on @copilot and @imnasnainaec)
Co-authored-by: jasonleenaylor <2295227+jasonleenaylor@users.noreply.github.com>
Fixed in e7d9591. When
Previously, the catch block only logged and showed a warning toast, leaving |
This reverts commit e7d9591.
imnasnainaec
left a comment
There was a problem hiding this comment.
@imnasnainaec reviewed all commit messages.
Reviewable status: 13 of 15 files reviewed, all discussions resolved (waiting on @jasonleenaylor)
jasonleenaylor
left a comment
There was a problem hiding this comment.
@jasonleenaylor reviewed 2 of 2 files at r4, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @copilot)
Implement cascading deletion of user roles and edits with project visibility
Backend Changes
DeleteUserto cascade delete all associated UserRole and UserEdit records. Added validation to prevent admin user deletion (returns 403).GetUserProjectsreturns project info and roles for deletion confirmation.Tests
Added 5 test cases covering:
Frontend Changes
getUserProjects()function.Screenshots
User without projects

User with lots of projects, some archived

Roles translated for UI language

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
This change is