Skip to content

Migrating old snippets to repositories commits using a random admin account

When a snippet-author no longer has access to the snippet, we create the initial commit in a background migration using an admin account: User.admins.active.first.

This might not be the right thing to do for some instances, should we perhaps do this using a newly created bot-account?


The following discussion from !29927 (merged) should be addressed:

  • @reprazent started a discussion: (+3 comments)

    Creating the commits as a random admin might not be the best solution for this: For GitLab.com this would be @jacobvosmaer-gitlab-admin. Should we create a fixed user for this?