Skip to content

Commit

Permalink
Refs #37181 - Add module stream info to cv filter rules rabl
Browse files Browse the repository at this point in the history
  • Loading branch information
chris1984 committed Mar 21, 2024
1 parent ec68d4c commit 4ac06b4
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,13 @@ attributes :architecture, :if => lambda { |rule| rule.respond_to?(:architecture)
attributes :types, :if => lambda { |rule| rule.respond_to?(:types) && !rule.types.blank? }
attributes :date_type, :if => lambda { |rule| rule.respond_to?(:date_type) }
attributes :module_stream_id, :if => lambda { |rule| rule.respond_to?(:module_stream_id) && !rule.module_stream_id.blank? }
if @resource&.try(:module_stream)
node :module_stream do |rule|
{
:module_stream_id => rule.module_stream.id,
:module_stream_name => rule.module_stream.name,
:module_stream_stream => rule.module_stream.stream
}
end
end
extends 'katello/api/v2/common/timestamps'

0 comments on commit 4ac06b4

Please sign in to comment.