Backups of Snippets Repositories
In Heptapod, Snippet Repositories work exactly as in upstream. In particular they are Git repositores. I was expecting their backup to work straight away which it did until I added a hard removal of the snippet repositories pre-restoration in the test case (rm -r $REPOSITORIES_ROOT/\@snippets
).
Upon further investigation, I couldn't find a single occurence of snippets in upstream backup code (whether from lib/backups/repository.rb
or lib/tasks
).
Finally I did try on a pristine GitLab 13.1.5-ce.0 container: start it, create a Project Snippet and a Personal Snippet, backup, destroy the whole data volume, start, restore. The results is the same: the snippets get displayed fine, but they don't have repositories (no clone button, actual clone attempt fails, no @snippets
on the file system).
I can only conclude that either there's a big piece I didn't grasp or it's simply not done upstream and it should be reported there.