Add Project Feature to Project Migration
What does this MR do and why?
Related to #339416 (closed)
bulk_import_projects feature flag that is currently off by default (and disabled on .com).
This MR adds Project Feature migration when using Group Migration that includes projects (https://docs.gitlab.com/ee/user/group/import/).
Please note that on the screencast below you might notice that LFS and Package settings are not the same value. This is because those 2 settings come from project model (lfs_enabled & packages_enabled) and are not coming from project_feature model.
Screenshots or screen recordings
How to set up and validate locally
-
Feature.enable(:bulk_import). -
Feature.enable(:bulk_import_projects). - Create a top level group and project in it.
- Update project feature settings on project general settings page
- Go to
/groups/new#import-group-panepage and enter instance url and access token (needs to beapi&read_repositoryscope). - Select newly created group and click Import.
- Wait for Group import to complete and verify imported project feature settings
Edited by George Koltsov