Bitbucket Server Importer fails when pull request is deleted during migration
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Currently, when a pull request is deleted in Bitbucket Server while a migration is in progress via Bitbucket Server Importer, the migration process fails with the following error:
Error 404: No pull request exists with ID XXX for this repository XXX
This occurs specifically during the execution of Gitlab::BitbucketServerImport::Stage::ImportNotesWorker
when it attempts to fetch activities for pull requests.
Expected Behavior: The Bitbucket Server Importer should gracefully handle deleted pull requests and continue with the migration process.
Current Behavior: The migration fails when encountering a deleted pull request.
Suggested Solution:
Implement error handling in the Bitbucket Server Importer to:
- Detect when a pull request has been deleted
- Skip the deleted pull request
- Continue with the remaining items in the migration
Edited by 🤖 GitLab Bot 🤖