Project

General

Profile

Actions

Bug #22498

closed

Improve help and error messages when adding CVs to a CCV

Added by Peter Ondrejka almost 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Content Views
Target version:
Fixed in Releases:
Found in Releases:

Description

This came from discussion in https://bugzilla.redhat.com/show_bug.cgi?id=1309944

trying to add a different version of a CV that is already in the CCV, fails, which is I suppose correct but the message could be more informative:

~]# hammer content-view add-version --id 3 --content-view test2 --content-view-version-id 7
Could not add version:
Validation failed: Content view components is invalid, Content view components is invalid

Also the help descriptions could indicate which options relate to ccv and which to cv being added, currently we have:

~]# hammer content-view add-version -h
Usage:
hammer content-view add-version [OPTIONS]

Options:
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view version identifier
--id ID content view numeric identifier
--name NAME Content view name to search by

Actions

Also available in: Atom PDF