[go: up one dir, main page]

Skip to content

Show error message when deleting container images

What does this MR do and why?

Protected containers: Show error details when deleting container images

This change refactors the code to display specific error details when the image deletion fails, providing better feedback to the user.

At the moment when deleting container images, the user is shown a generic error message without any details about the failure.

Changelog: other

🛠️ with ❤️ at Siemens

References

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Add the following line to the GraphQL mutation DestroyContainerRepository in order to trigger an error from the backend (that is then picked up by the frontend changes from this MR)
raise Gitlab::Graphql::Errors::BaseError, 'Custom error'
  1. Go to the container registry: http://gdk.test:3000/flightjs/Flight/container_registry
  2. Try to delete any image
  3. You should see the custom error message in the error as shown above

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #406797

Edited by Gerardo Navarro

Merge request reports

Loading