[go: up one dir, main page]

Skip to content

Add Rake Task to Migrate Merge Request Diff Data from External Storage to Database

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Release notes

Proposing introducing a rake task to facilitate the migration of merge request diff data stored externally back to database storage. This feature will help administrators manage data storage, providing the flexibility to revert on disk storage of merge request diff data if required.

Problem to solve

Currently, GitLab does not provide a straightforward mechanism for administrators to migrate merge request diff data from external storage back to the database. This limitation poses challenges in scenarios where administrators need to reverse previous decisions to store the data externally and the use of alternative in-database storage is not suitable.

Issue raised in support ticket: https://gitlab.zendesk.com/agent/tickets/585579

Proposal

Introduce a new rake task, that can:

  • The task should identify merge request data stored in external storage.
  • Migrate this data back into the GitLab database.
  • Administrators should have the ability to perform a dry run to preview the migration impact without making changes.
  • Show detailed logs and progress updates during the process.

Intended users

Feature Usage Metrics

Does this feature require an audit event?

Edited by 🤖 GitLab Bot 🤖