Project

General

Profile

Bug #15811

Cannot delete a RedHat Product or Products with Repositories published in a Content View error does not help user

Added by Brad Buckingham over 2 years ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
Content Views
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1183650
Description of problem:
When deleting a Product the error "An error occurred removing the Products: Cannot delete a Red Hat Products or Products with Repositories published in a Content View" is too generic. It is for the user unclear how to proceed when he wants to delete the product. E.g. there is no link to a Published Content View.

Also the Error message describes 2 different Errors:
- Not allowed to delete Red Hat Products
- Not allowed to delete a published repository
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
- Cross-references from Products to ContentViews so it is known where the Product is used.
- Separate error for trying to delete a RedHat Product
- Separate error for message that for deleting a published product including the name of the Content views that use the repositories.
Additional info:

Related issues

Blocks Katello - Tracker #15825: Sprint 1 : Content-FocusedNew2016-07-24

Associated revisions

Revision 63d1d08f (diff)
Added by Brad Buckingham over 2 years ago

fixes #15811 - product destroy - update error messages on failure

This commit provides more specific error messages when
attempting to delete a product that is not allowed.

Below are a couple of examples using the hammer-cli-katello:

hammer> product delete --id 2
Could not destroy the product:
Cannot delete product with repositories published in a
content view. Product: zoo, Content Views: view1, view2, view3

hammer> product delete --id 51
Could not destroy the product:
Cannot delete Red Hat product: Red Hat Enterprise Linux Server

hammer> product delete --id 3
Product destroyed

Revision 76cf0da1
Added by Brad Buckingham over 2 years ago

Merge pull request #6208 from bbuckingham/issue-15811

fixes #15811 - product destroy - update error messages on failure

History

#1 Updated by Brad Buckingham over 2 years ago

#2 Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Brad Buckingham
  • Pull request https://github.com/Katello/katello/pull/6208 added

#3 Updated by Justin Sherrill over 2 years ago

  • Subject changed from Cannot delete a RedHat Product or Products with Repositories published in a Content View error does not help user to Cannot delete a RedHat Product or Products with Repositories published in a Content View error does not help user
  • Legacy Backlogs Release (now unused) set to 162
  • Difficulty set to easy

#4 Updated by Brad Buckingham over 2 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF