[Step 3] Create class GroupRepositoryStorageMove
After creating the table in #299053 (closed), we need to create a class to store the logic we need. This class is very similar to ProjectRepositoryStorageMove
or SnippetRepositoryStorageMove
. The only differences will be the relation to the owner object, one validation, and the after_transition initial: :scheduled
block.
Since this class has a lot in common with ProjectRepositoryStorageMove
and SnippetRepositoryStorageMove
we can reuse the existing concern.
For the after_transition
block, since the GroupUpdateRepositoryStorageWorker
won't be implemented now but in a follow-up MR, we will make it a no-op block.
We need to add the relation to the Group
model.
Edited by Francisco Javier López (ex-Gitlab)