app/views/katello/api/v2/content_views/base.json.rabl in katello-4.4.0.rc1 vs app/views/katello/api/v2/content_views/base.json.rabl in katello-4.4.0.rc2

- old
+ new

@@ -34,14 +34,18 @@ unless content_view.versions.empty? content_view.versions.order(:created_at).last.created_at end end -child :environments => :environments do - attributes :id, :name, :label - node :permissions do |env| +node :environments do |cv| + cv.environments.map do |env| { - :readable => env.readable? + id: env.id, + label: env.label, + name: env.label, + activation_keys: cv&.activation_keys&.in_environment(env)&.ids, + hosts: cv&.hosts&.in_environment(env)&.ids, + permissions: {readable: env.readable?} } end end if @object.composite?