Bug #11784
closedHammer content-view remove-version does not work
Description
Trying to remove a content-view version by version number fails with error message "content_view_version found more than once"
hammer content-view remove-version --name <content-view-name> --organization-id 1 --content-view-version <version-number>
Attempting to use Version IDs appears to work, returning with message "The component version has been removed" and creating a task to update the content view (Actions::Katello::ContentView::Update). The task completes without error, but the version still appears in the Katello UI and when using Hammer content-view info
hammer content-view remove-version --name <content-view-name> --organization-id 1 --content-view-version-id <version-id>
Task raw input:
{"content_view"=>{"id"=>104, "name"=>"xxxxx-cv", "label"=>"xxxxx-cv"}, "organization"=>{"id"=>1, "name"=>"xxxxxxxx", "label"=>"xxxxxxxx"}, "locale"=>"en"}
We are using Katello 2.3
Updated by Rimma Ashkinadze about 9 years ago
This appears to be the same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1221122, but the content views are never deleted. It is not just asynchronous.
Updated by Eric Helms about 9 years ago
- Translation missing: en.field_release set to 70
- Triaged changed from No to Yes
Updated by Eric Helms about 9 years ago
- Translation missing: en.field_release changed from 70 to 86
Updated by Greg Koch over 8 years ago
This works for us with different command options:
hammer content-view remove --name content-view-name --organization-id 1 --content-view-version-ids 1234
Updated by Christine Fouant over 8 years ago
in Hammer, 'content-view remove-version' is used to remove a specific content-view component of a composite content view, not to remove versions of a content view from the content view. You would remove a specific version of a content-view using 'content-view remove'.
Updated by Christine Fouant over 8 years ago
- Status changed from New to Rejected
- Translation missing: en.field_release changed from 86 to 114
Updated by Jonathon Turel over 4 years ago
- Target version changed from Katello Backlog to Katello Recycle Bin