Skip to content
Snippets Groups Projects

Add a Tag Name filter to the Incident Timeline API

7 unresolved threads
1 file
+ 2
12
Compare changes
  • Side-by-side
  • Inline
@@ -63,6 +63,26 @@
end
end
describe '.with_tag_name' do
let_it_be(:timeline_event_with_tag) do
create(:incident_management_timeline_event, project: project, incident: incident)
end
let_it_be(:timeline_event_tag) do
create(:incident_management_timeline_event_tag, project: project)
end
let_it_be(:timeline_event_tag_link) do
create(:incident_management_timeline_event_tag_link,
timeline_event: timeline_event_with_tag,
timeline_event_tag: timeline_event_tag)
end
it 'returns the correct event when filtering with a tag name' do
expect(described_class.with_tag_name('Start time')).to match_array([timeline_event_with_tag])
Please register or sign in to reply
end
end
describe '#cache_markdown_field' do
let(:note) { 'note **bold** _italic_ `code` ![image](/path/img.png) :+1:👍' }
Loading