Add route for group imports direct upload
Rails MR to add Group Import API endpoint gitlab!20353 (merged) (does not contain workhorse changes for /authorize
yet).
File to be uploaded is a .tar.gz
archive as part of multipart form request, containing group.json
file that described Group and it's relations (epics/milestones/labels/members). Used for Group Import/Export functionality (that is very similar to Project Import/Export) gitlab!20353 (diffs)
This archive is then being processed by a sidekiq GroupImportWorker
https://gitlab.com/gitlab-org/gitlab/blob/georgekoltsov/group-import-api/app/workers/group_import_worker.rb#L1-0
On a high level it:
- untar's the archive
- reads json file
- restore's group settings and it's relations
Edited by George Koltsov