Skip to content
Snippets Groups Projects

Add a Tag Name filter to the Incident Timeline API

7 unresolved threads
1 file
+ 7
4
Compare changes
  • Side-by-side
  • Inline
@@ -16,12 +16,15 @@ def execute
event.timeline_event_tags unless event.timeline_event_tags.empty?
end
if params[:tag_name]
collection = collection.joins(:timeline_event_tags).where(timeline_event_tags: {name: params[:tag_name]})
end
# rubocop:disable Rails/Output
puts 'START'
puts 'Entering if statement' if params[:tag_name]
puts timeline_tags_list.find(params[:tag_name])
puts params[:tag_name] if params[:tag_name]
puts collection.length
puts collection.to_yaml
puts 'END'
# rubocop:enable Rails/Output
Loading