Skip to content
Snippets Groups Projects

Add a Tag Name filter to the Incident Timeline API

7 unresolved threads
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
@@ -12,6 +12,11 @@ def execute
return ::IncidentManagement::TimelineEvent.none unless allowed?
collection = incident.incident_management_timeline_events
puts 'START'
puts collection.filter_map{|event| event.timeline_event_tags if !event.timeline_event_tags.empty? }.to_yaml
puts 'END'
collection = by_id(collection)
sort(collection)
end
Loading