Skip to content

Remove empty design repos and their corresponding DesignManagement::Repository records

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

!116975 (merged) created Designmanagement::Repository records for all projects at that time, but many of them did not have corresponding git repos because design repos are not created for a project unless design files are added.

This was causing failed verification for Geo, so as a workaround, we created design repos on the fly when they were missing.

Eventually we want to remove all DesignManagement::Repository records that are not needed, i.e. if they only have empty git repos, and the git repos as well.

There is one open question though: is there a valid case for existent but empty design git repos? There is no way to determine whether the git repo was created as part of this workaround, or if they already existed. So, removing them would be an irreversible process. But as part of #414049 (closed) (!123917 (merged)) new code would be introduced that would add a git repo whenever project.design_repository is called.

Edited by 🤖 GitLab Bot 🤖