Prevent BitBucket Cloud Import from importing duplicated items
What does this MR do and why?
When RepositoryImportWorker restarts due to a retry, BitBucket Import attempts to import the same record as the import restarts from the begging.
This change stores the ID of previously imported records on Redis and skips the records that the ID is present on Redis.
Related to: #409447 (closed)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- Enable BitBucket Cloud Import in Admin -> Settings -> General -> Visibility and access controls -> Import Sources -> BitBucket
- Configure BitBucket Oauth
- Import a project from BitBucket
- New Project
- Import Project
- Choose BitBucket
- Check if the project was imported
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Rodrigo Tomonari