Add migrating NPM packages
Overview
With increasing usage of the GitLab Package Registry so does the demand grow for migrating them.
As the most commonly used package type, and the most often requested, npm
is the first that we will offer.
The npm API offers download and upload endpoints to transfer the packages over.
Tasks
-
Add packages to the list of migrate_single_project_features
-
Add API wrappers for npm
download and upload endpoints -
Add migrate_npm_packages
functions to the packages client -
Store the downloaded packages in memory during transfer OR Include new sub-folder ( downloads/packages
) for locally storing downloaded packages- Auto-create on
congregate init
- Auto-create on
-
Update docs if needed (workflow, runbooks, README, migration metrics, etc.)
Acceptance Criteria
-
Existing UTs pass locally -
100% code coverage on new code
Edited by Michael Leopard