Skip to content

Expose ability to import groups without projects

Illya Klymov requested to merge xanf/add-bulk-imports-migrate-projects into master

What does this MR do and why?

This MR allows user to select if he/she wants to import groups with or without projects

Related issue: Enable user to not include projects when migrat... (#385689 - closed)

CSS cleanup relates to Migrate CSS rules to utility classes in app/ass... (#367814 - closed)

Number of CSS lines deleted: 45

Screenshots or screen recordings

Screencast_from_2023-01-12_13-55-33

How to set up and validate locally

  • Enable feature flag :bulk_import_projects in rails console: Feature.enable(:bulk_import_projects)
  • In GitLab admin settings turn on Enable migrating GitLab groups and projects by direct transfer and save changes /admin/application_settings/general#js-visibility-settings
  • Open "New group" -> Import (/groups/new)
  • Use https://gitlab.com as source instance and GeK1Nis4j-SY1X4sqE5c as personal access token (this token is from separate user on GitLab instance with 0 real data available, so we do not expose any security risks here)
  • Import top-level-group-1 (it contains projects) with or without projects
  • Observe that the button you've used is respected

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 Illya Klymov

Merge request reports

Loading