Project

General

Profile

Bug #15796

hammer content-view version list ignores --organization{-id} options

Added by Andrew Kofink over 2 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1357477
Description of problem:
hammer content-view list ignores --organization{-id} options

Version-Release number of selected component (if applicable):
satellite-6.2.0-20.1.el7sat.noarch

How reproducible:
always

Steps to Reproduce:

  1. hammer content-view version list --organization-id 1
    ---|--------------------------------------------------------------|---------|-----------------------
    ID | NAME | VERSION | LIFECYCLE ENVIRONMENTS
    ---|--------------------------------------------------------------|---------|-----------------------
    9 | Red Hat Enterprise Linux Server (v. 7 for 64-bit x86_64) 1.0 | 1.0 | Library
    8 | RHN Tools for RHEL Server (v. 7 for x86_64) 1.0 | 1.0 | Library
    7 | Default Organization View 1.0 | 1.0 | Library
    2 | Docker View 1.0 | 1.0 | Library
    1 | Default Organization View 1.0 | 1.0 | Library
    ---|--------------------------------------------------------------|---------|-----------------------
  1. hammer content-view version list --organization-id 3
    ---|--------------------------------------------------------------|---------|-----------------------
    ID | NAME | VERSION | LIFECYCLE ENVIRONMENTS
    ---|--------------------------------------------------------------|---------|-----------------------
    9 | Red Hat Enterprise Linux Server (v. 7 for 64-bit x86_64) 1.0 | 1.0 | Library
    8 | RHN Tools for RHEL Server (v. 7 for x86_64) 1.0 | 1.0 | Library
    7 | Default Organization View 1.0 | 1.0 | Library
    2 | Docker View 1.0 | 1.0 | Library
    1 | Default Organization View 1.0 | 1.0 | Library
    ---|--------------------------------------------------------------|---------|-----------------------

Actual results:
lists all CVs

Expected results:
lists only CVs that belongs to a specific organization


Related issues

Has duplicate Katello - Bug #14231: "hammer content-view version list --organization Acme" lists all CVVs in all orgsDuplicate2016-03-16
Blocks Katello - Tracker #15825: Sprint 1 : Content-FocusedNew2016-07-24

Associated revisions

Revision 8e39aac8 (diff)
Added by Andrew Kofink over 2 years ago

Refs #15796 - Allow organization_id in CVVs#index (#6221)

Allow searching in ContentViewVersions#index by organization_id via
the ContentView relationship

Revision c2956945 (diff)
Added by Andrew Kofink over 2 years ago

Fixes #15796 - Allow CVVs to be listed by org (#432)

`hammer content-view version list` now responds to organization options.
This functionality is dependent on
https://github.com/Katello/katello/pull/6221.

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 Andrew Kofink
  • Pull request https://github.com/Katello/katello/pull/6220 added

#3 Updated by The Foreman Bot over 2 years ago

  • Pull request https://github.com/Katello/katello/pull/6221 added

#4 Updated by Andrew Kofink over 2 years ago

  • Pull request deleted (https://github.com/Katello/katello/pull/6220)

#5 Updated by The Foreman Bot over 2 years ago

  • Pull request https://github.com/Katello/hammer-cli-katello/pull/432 added

#6 Updated by Anonymous over 2 years ago

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

#7 Updated by Justin Sherrill over 2 years ago

  • Legacy Backlogs Release (now unused) set to 162

#8 Updated by David Davis over 2 years ago

  • Has duplicate Bug #14231: "hammer content-view version list --organization Acme" lists all CVVs in all orgs added

Also available in: Atom PDF