Skip to content
Snippets Groups Projects

Add a Tag Name filter to the Incident Timeline API

7 unresolved threads
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -13,9 +13,11 @@ def execute
collection = incident.incident_management_timeline_events
# rubocop:disable Rails/Output
puts 'START'
puts collection.filter_map{|event| event.timeline_event_tags if !event.timeline_event_tags.empty? }.to_yaml
puts collection.filter_map { |event| event.timeline_event_tags unless event.timeline_event_tags.empty? }.to_yaml
puts 'END'
# rubocop:enable Rails/Output
collection = by_id(collection)
sort(collection)
Loading