Skip to content

Set imported_from value for project export import

Carla Drago requested to merge set-imported-from-gitlab-project into master

What does this MR do and why?

Adds gitlab_project to the imported_from column for relevant relations during project export import. This means the 'imported' badge will be shown.

It also removes the (imported from GitLab) text that's added to notes and events when the author is not found on the destination. This will fix #462010 (closed)

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

issue-after-2

design-after-2

How to set up and validate locally

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

  1. Check out the branch and restart gdk.
  2. Export a project with an issue and designs using the UI project export feature Project > Settings > General > Advanced > Export Project
  3. Refresh this page until the Download button has appeared and download the export file.
  4. Create a new project by importing the export file New Project > Import Project > Gitlab Export
  5. Once the group and project has imported, open one of its issues and observe it has an "imported" badge next to the title, next to events, next to a comment, and next to a design title (on the design page)

Relates to #462010 (closed)

Edited by Carla Drago

Merge request reports