When a user wants to add subscriptions to an activation key, currently they can use the pool_id to get an exact match, but using the subscription name will fail in the common case that the name is one to many. Searching by name should be able to handle the one to many case and provide additional search filters such as service_level and expiration_date to give the user better control over what subscriptions are added to the activation key without depending on the pool_id which won't be available until manifest has been imported and/or custom products have been created.
@sean797 : I have opened https://github.com/Katello/katello/pull/8396 to allow Katello API users to search subscriptions using upstream_pool_id so that we can use the functionality here
SUMMARY
When a user wants to add subscriptions to an activation key, currently they can use the
pool_id
to get an exact match, but using the subscriptionname
will fail in the common case that thename
is one to many. Searching byname
should be able to handle the one to many case and provide additional search filters such asservice_level
andexpiration_date
to give the user better control over what subscriptions are added to the activation key without depending on thepool_id
which won't be available until manifest has been imported and/or custom products have been created.ISSUE TYPE