Show preview of delete contributions when deleting user in admin

Summary

As pointed out by @cynthia there are 2 ways to delete a user, the Delete user and all contributions will end up deleting everything, groups, projects.

Sometimes it's not clear what "All contributions" mean here, and we can accidentally delete groups/subgroups and projects without the admin user knowing.

Proposal

Show a preview of the contributions that are going to be deleted. For users, it might be expensive to count everything, but if we can at least list the number of projects and groups, and then a general statement of what else might be included like comments?

image

contributions should link to:
https://docs.gitlab.com/ee/user/profile/index.html#user-contribution-events

Block user should link to:
https://docs.gitlab.com/ee/user/admin_area/moderate_users.html#block-and-unblock-users

Availability and Testing

  • No new E2E tests or updates needed at this time.
  • Recommend adding a new feature spec in addition to other unit and integration test updates.
Edited by Valerie Burton