Skip to content

Add imported_from to bb cloud resources

Carla Drago requested to merge 461210-bb-cloud-imported-from into master

What does this MR do and why?

This adds an imported_from value to issues, issue notes, pull requests, and pull request notes imported from bitbucket cloud. This will allow the imported badge to be displayed in the UI alongside other data.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

cloud3

Before After
issue-before issue-after
mr-before mr-after

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Set up is complex as it needs

  • a bitbucket account with a workspace with users, a project, pull requests, issues, and comments in issues and PRs
  • an oauth app set up on bitbucket and configured in the gdk
  • users set up on Gitlab with Identities linked to bitbucket uuids
  • a group on gdk with these users added as members

For simplicity I've included a video of the flow that shows the successful display of the imported badge in the UI.

I'm happy to jump on a call to QA changes together 👍

Related to #461210 (closed)

Edited by Carla Drago

Merge request reports