Skip to content

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

  1. Enable BitBucket Cloud Import in Admin -> Settings -> General -> Visibility and access controls -> Import Sources -> BitBucket
  2. Configure BitBucket Oauth
  3. Import a project from BitBucket
    • New Project
    • Import Project
    • Choose BitBucket
  4. 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.

Edited by Rodrigo Tomonari

Merge request reports