Better error messages when transferring a group with packages or Docker images

From maintainer review of !18515 (merged) :

  • @jprovaznik started a discussion: (+1 comment)

    If user tries to transfer a group having tens (or hundreds) of projects, he would have to go through all of them to find which project contains NPM packages? I wonder of we could show at least project names to make it easier to fix them (but this may be tricky from UX point of view if there are many projects - maybe something like "Project X and Y other projects contains NPM packages"?) 🤔

Problem

When transferring a group with NPM packages or Docker images, the action is blocked and one of the following error messages are displayed:

  • Cannot update the path because there are projects under this group that contain Docker images in their Container Registry. Please remove the images from your projects first and try again.
  • Group contains projects with NPM packages.

These error messages are not helpful if the user has a lot of projects. Basically, the user doesn't know which projects have the Docker images or NPM packages.

Proposal

  • Display the projects containing Docker images or NPM packages

Other considerations

  • Don't display all the projects containing Docker images or NPM packages as there can be a lot of them. Limit to the first 10 projects.
Edited Jan 06, 2020 by David Fernandez
Assignee Loading
Time tracking Loading