Project

General

Profile

Bug #18702

`hammer package list --product-id 1` returns all packages for all products

Added by Brad Buckingham about 2 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

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

Description of problem:
The `--product-id` flag in `hammer package list` command does not filter the search by product.

Version-Release number of selected component (if applicable):
6.2.7

How reproducible:
Always

Steps to Reproduce:
1. Create or sync some products
2. Run `hammer package list --product-id 1` for a single product ID

Actual results:
All packages are returned.

Expected results:
The API endpoint katello/api/v2/repositories/:id/packages is used, or a new API endpoint, katello/api/v2/products/:id/packages is used to return filtered results.

Associated revisions

Revision a7d0f269 (diff)
Added by Andrew Kofink about 2 years ago

Fixes #18702 - Add validations for prod and org (#487)

Add validations for product and organization options:

- product options required if repo name is specified
- org options required if product name is specified

History

#1 Updated by Brad Buckingham about 2 years ago

  • Target version set to 169

#2 Updated by Brad Buckingham about 2 years ago

  • Legacy Backlogs Release (now unused) set to 114

#3 Updated by Andrew Kofink about 2 years ago

  • Assignee set to Andrew Kofink

#4 Updated by The Foreman Bot about 2 years ago

  • Status changed from New to Ready For Testing
  • Legacy Backlogs Release (now unused) deleted (114)
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/487 added

#5 Updated by Anonymous about 2 years ago

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

#6 Updated by Justin Sherrill about 2 years ago

  • Legacy Backlogs Release (now unused) set to 211

Also available in: Atom PDF