Project

General

Profile

Actions

Bug #19057

closed

Need to address Inconsistent Json between product content jsons

Added by Partha Aji almost 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Note:
https://github.com/Katello/katello/blob/master/app/views/katello/api/v2/activation_keys/product_content.json.rabl#L19 calls content overrides as overrides while
https://github.com/Katello/katello/blob/master/app/views/katello/api/v2/host_subscriptions/product_content.json.rabl#L15
calls the same as "content_overrides"

More over the bigger issue is that product content for host subs prints just one value for content overrides . This is because https://github.com/Katello/katello/blob/master/app/presenters/katello/product_content_presenter.rb#L21 does a

overrides.find { |pc| pc.content_label == content.label }

instead of
overrides.select { |pc| pc.content_label == content.label }


Related issues 1 (0 open1 closed)

Copied from Katello - Feature #18859: Need API's to content overrides for single hostClosedPartha Aji03/02/2017Actions
Actions #1

Updated by Partha Aji almost 7 years ago

  • Copied from Feature #18859: Need API's to content overrides for single host added
Actions #2

Updated by The Foreman Bot almost 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6706 added
Actions #3

Updated by Partha Aji almost 7 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF