Project

General

Profile

Actions

Bug #35879

closed

Katello API activation_key/:id/product_content does not expose per_page

Added by Beat Rubischon over 1 year ago. Updated over 1 year ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
API
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Katello's API documentation doesn't expose paging in /katello/api/activation_keys/:id/product_content [1]. This limits the theforeman.foreman.activation_key Ansible module [2] to a maximum of 20 products - in case you have more, the module doesn't know about all products and is no longer idempotent. The same is true for hammer, it shows about additional pages, but doesn't accept to page or increase the page size. This becomes painful when creating keys for Library, Organization View on a Red Hat Satellite with Simple Content Access enabled.

[1] https://theforeman.org/plugins/katello/3.17/api/apidoc/v2/activation_keys/product_content.html
[2] https://docs.ansible.com/ansible/latest/collections/theforeman/foreman/activation_key_module.html

From my understanding it's sufficient to announce the per_page and page parameters in the API documentation to make apypie aware of the parameters. I'm not sure if hammer needs special treating.


Related issues 1 (0 open1 closed)

Is duplicate of Katello - Bug #35633: Activation Keys "product_content" API doesn't expose the "per_page" parameterClosedEvgeni GolovActions
Actions #2

Updated by Evgeni Golov over 1 year ago

  • Status changed from New to Duplicate
Actions #3

Updated by Evgeni Golov over 1 year ago

  • Is duplicate of Bug #35633: Activation Keys "product_content" API doesn't expose the "per_page" parameter added
Actions #4

Updated by Evgeni Golov over 1 year ago

This is a duplicate, and FAM has a workaround for that implemented (see https://github.com/theforeman/foreman-ansible-modules/pull/1501 and https://bugzilla.redhat.com/show_bug.cgi?id=2134605) which still needs a release :)

Actions #5

Updated by Samir Jha over 1 year ago

  • Target version set to Katello Recycle Bin
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF