summaryrefslogtreecommitdiff
path: root/app/models/concerns/uniquify.rb
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-11-11 11:57:43 +0530
committerTimothy Andrew <mail@timothyandrew.net>2017-02-24 16:50:19 +0530
commitff19bbd3b40621ae94632b9aa68fd12645b6ed41 (patch)
tree7c198e54f2f3f6db5a9272bf79425f0b385bc96b /app/models/concerns/uniquify.rb
parent29540d6f35da643b4f1894dc5ffd4c0a22f7cd3e (diff)
downloadgitlab-ce-ff19bbd3b40621ae94632b9aa68fd12645b6ed41.tar.gz
Deleting a user shouldn't delete associated issues.
- "Associated" issues are issues the user has created + issues that the user is assigned to. - Issues that a user owns are transferred to a "Ghost User" (just a regular user with `state = 'ghost'` that is created when `User.ghost` is called). - Issues that a user is assigned to are moved to the "Unassigned" state. - Fix a spec failure in `profile_spec` — a spec was asserting that when a user is deleted, `User.count` decreases by 1. After this change, deleting a user creates (potentially) a ghost user, causing `User.count` not to change. The spec has been updated to look for the relevant user in the assertion.
Diffstat (limited to 'app/models/concerns/uniquify.rb')
0 files changed, 0 insertions, 0 deletions