Project

General

Profile

Bug #16349

Newly published Content-view version info is not working with environment name in hammer cli

Added by Brad Buckingham almost 3 years ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1367659

Description of the Bugzilla?  
-> User has promoted the content-view version from 1.0 to 2.0 after that he is not able to view the info of new version using environment name, same is working with environment id.
How reproducible
1. Create a content view.
2. Publish the content view.
/usr/bin/hammer content-view publish --name 'cv' --organization 'redhat'
/usr/bin/hammer content-view version info --content-view "cv" --organization redhat --environment Library  #  able to see output
3. Publish new version of content view.
/usr/bin/hammer content-view publish --name 'cv' --organization 'redhat'
/usr/bin/hammer content-view version info --content-view cv --organization redhat --environment Library
Error: found more than one content_view_version
/usr/bin/hammer content-view version info --content-view cv --organization redhat --environment-id 2
ID: 6
Name: cv 2.0
Actual results:
Error: found more than one content_view_version
Expected results:
ID:                     6
Name: cv 2.0
Version: 2.0
Description:

History

#1 Updated by Brad Buckingham almost 3 years ago

  • Subject changed from Newly published Content-view version info is not working with environment name in hammer cli to Newly published Content-view version info is not working with environment name in hammer cli
  • Legacy Backlogs Release (now unused) set to 114

Also available in: Atom PDF