Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,763
    • Issues 44,763
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,329
    • Merge requests 1,329
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #343438
Closed
Open
Issue created Oct 20, 2021 by João Alexandre Cunha@Alexand🌴Maintainer

GitLab Migration - Migrate Snippets Repositories

This needs to be worked on after we close this: #339406 (closed)

The strategy to migrate Snippets and repositories is described here: #339406 (comment 707741948)

For an initial solution we want to:

  • Have 2 pipelines:
    • 1st pipeline imports snippest via ndjson
    • 2nd pipeline imports repos via graphql (queries all the imported snippets from db, then query all their url from graphql).
  • we will do the 2nd pipeline this sinchronously for now, but paginating the snippets by 100 batch.
  • NOT hardfail the migration if a snippet pipeline fails.

...

It is possible to use either, import_repository or fetch_as_mirror. For fetch_as_mirror we need to create the repository first with snippet.create_repository.

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited Oct 20, 2021 by 🤖 GitLab Bot 🤖
Assignee
Assign to
Time tracking