Fixes #24064 - Update upstream subs API response id
and always return local pool ids on index call.
This changes the index GET response for /katello/api/v2/organizations/$ORG/upstream_subscriptions. The `pool_id` attribute is removed since it is redundant, the id parameter will return the candlepin ID, so it was duplicating data.
Local pool ids are also always returned on an index call. Since upstream sub information is being returned to us when we import sub data from candlepin locally, its trivial to import this into our database. Having this info in our database means we can match the upstream subscriptions to local pool ids during the index call to /upstream_subscriptions without adding much complexity to the call.
Related issues
Bug #24064: Upstream Subscriptions API/GET is returning upstream id twice and missing local katello id
Fixes #24064 - Update upstream subs API response id
and always return local pool ids on index call.
This changes the index GET response for
/katello/api/v2/organizations/$ORG/upstream_subscriptions.
The `pool_id` attribute is removed since it is redundant, the
id parameter will return the candlepin ID, so it was duplicating data.
Local pool ids are also always returned on an index call. Since
upstream sub information is being returned to us when we import
sub data from candlepin locally, its trivial to import this into
our database. Having this info in our database means we can match
the upstream subscriptions to local pool ids during the index call
to /upstream_subscriptions without adding much complexity to the
call.