Skip to content

Commit

Permalink
Fixes #38179 - Remove duplicates for multiCV hosts & activation keys …
Browse files Browse the repository at this point in the history
…in content views
  • Loading branch information
pavanshekar committed Feb 12, 2025
1 parent 1ce9c22 commit a18a559
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/views/katello/api/v2/content_views/base.json.rabl
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,16 @@ child :content_view_components => :content_view_components do
extends "katello/api/v2/content_view_components/show"
end

child :activation_keys => :activation_keys do
attributes :id, :name
node :activation_keys do |cv|
cv.activation_keys.uniq.map do |ak|
{ id: ak.id, name: ak.name }
end
end

child :hosts => :hosts do
attributes :id, :name
node :hosts do |cv|
cv.hosts.uniq.map do |host|
{ id: host.id, name: host.name }
end
end

extends 'katello/api/v2/common/timestamps'

0 comments on commit a18a559

Please sign in to comment.