Commit d9b199ef authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'GL-218526_backstage_stop_creating_gitlab_issue_tracker_service_records' into 'master'

Stop creating GitlabIssueTrackerService records

See merge request gitlab-org/gitlab!34268
parents 811599d1 81f3d952
......@@ -1198,14 +1198,6 @@ class Project < ApplicationRecord
get_issue(issue_id)
end
def default_issue_tracker
gitlab_issue_tracker_service || create_gitlab_issue_tracker_service
end
def issues_tracker
external_issue_tracker || default_issue_tracker
end
def external_issue_reference_pattern
external_issue_tracker.class.reference_pattern(only_long: issues_enabled?)
end
......
......@@ -52,7 +52,7 @@ describe Banzai::Filter::ExternalIssueReferenceFilter do
it 'includes a title attribute' do
doc = filter("Issue #{reference}")
expect(doc.css('a').first.attr('title')).to include("Issue in #{project.issues_tracker.title}")
expect(doc.css('a').first.attr('title')).to include("Issue in #{project.external_issue_tracker.title}")
end
it 'escapes the title attribute' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment