The default should be to migrate group(s) with projects.
User can choose to not include the projects if they wish to.
I wonder, would the backend effort be the same, if it should be possible to choose for each group not to migrate the projects? I wouldn't show it in UI (at first at least), but wonder if it would be implemented like this in the backend directly?
The way I proposed, the backend will be ready to accept the user's choice for each group. And the solution will also work if the UI only has one toggle for all groups.
So the backend won't need to change if initially we just have one toggle and later introduce multiple toggles.
From the API point of view, I'm considering adding the option for each entity, so the request to create a new bulk import will look like:
The way I proposed, the backend will be ready to accept the user's choice for each group. And the solution will also work if the UI only has one toggle for all groups.
That's great, thank you!
From the API point of view, I'm considering adding the option for each entity
At the moment, importing groups UI looks like that:
I'm not sure that it would be enough to have a toggle next to Import selected button saying "Without projects" or "Import without projects" or "Projects excluded" for a global setting.
As user can import groups one by one with the Import button on the right of each row, maybe it would be confusing or not clear enough, that if the global setting toggle is checked then it is valid also for imports performed by clicking on each Import button.
Could you help here and design how it should look like, so it's clear to the user how to import group(s) without project if they wish so?
I think it becomes clearer if we don't think of this as a global setting, but instead let the user choose to import without projects on each individual item in addition to performing a bulk import. What do you think @m_frankiewicz
Thank you @chrismicek! In general I like it, and backend changes will enable it, choosing for each group separately.
Some questions:
only when user selects groups with checkbox the toggle to the left of Import Selected appears?
for the toggle next to each Import button, when
user just clicks Import button, the setting is default, so Import with projects
when they click on the arrow down and choose Import without project option, how can they be sure, that they will be actually importing without projects? Choice next to individual Importbuttons is not shown, as there's no space. Do you think that's ok?
Magdalena Frankiewiczchanged title from GitLab Migration: Enable user to not include projects when migrating group to Enable user to not include projects when migrating group - backend
changed title from GitLab Migration: Enable user to not include projects when migrating group to Enable user to not include projects when migrating group - backend
Setting as no action on e2e test part because we try not to test negative scenarios too much on e2e level. Since the option will be true by default, no additional changes to tests should be needed.