Bug #15811
Cannot delete a RedHat Product or Products with Repositories published in a Content View error does not help user
Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Pull request:
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
Associated revisions
History
#1
Updated by Brad Buckingham over 6 years ago
- Blocks Tracker #15825: Sprint 1 : Content-Focused added
#2
Updated by The Foreman Bot over 6 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 6 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 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|63d1d08f6168d26f14f61a8814506769727a50ef.
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