Direct transfer - Importing multiple groups without selecting the destination parent group causes error
Summary
When attempting to bulk import groups using the "Import groups by direct transfer" feature, if the user does not select a parent group, instead of alerting the user to the mistake, it will raise the error TypeError: Cannot read properties of undefined (reading 'fullPath')
.
This does not happen if you click the "Import with projects" button to the right of the group, it only happens if you select the group and click the "Import with projects" button at the top.
Steps to reproduce
- Ensure the "Import groups by direct transfer" feature is enabled
- Visit https://gitlab.com/groups/new#import-group-pane and input the instance URL and token that you want to import from
- Select the checkbox for a group, and click "Import with projects" on the top right
- Observe an error in the console
What is the current bug behavior?
There is no feedback to the user. The button simply does not work, and an error is shown in the console.
What is the expected correct behavior?
The user is alerted to the mistake, in a similar manner as to when clicking the import button on the right.