Skip to content

Fill project_repositories for hashed storage projects

Toon Claes requested to merge tc-backfill-hashed-project_repositories into master

What does this MR do?

This is the second implementation step for https://gitlab.com/gitlab-org/gitlab-ce/issues/48527

This adds a background migration that will ensure all projects that are on hashed storage have a row in project_repositories.

With having a row in that table, it will be easy to lookup a project that is on hashed storage:

ProjectRepository.find_project('@hashed/ab/cd/acbd0000000000000000ef')

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/48527

Does this MR meet the acceptance criteria?

Edited by Douglas Barbosa Alexandre

Merge request reports