Commit 0ce46ab4 authored by Sean Arnold's avatar Sean Arnold

Update after SentryIssueFinder changes

- Return closed_issue_iid when issue is closed
- Modify issue update service to check for closed issue
parent 11df2291
......@@ -47,9 +47,9 @@ module ErrorTracking
end
def related_issue
SentryIssuesFinder
.new(project, current_user)
.find_by_identifier(params[:issue_id])
SentryIssueFinder
.new(project, current_user: current_user)
.execute(params[:issue_id])
&.issue
end
......
......@@ -48,8 +48,8 @@ describe ErrorTracking::IssueUpdateService do
let(:issue_close_service) { spy(:issue_close_service) }
before do
allow_any_instance_of(SentryIssuesFinder)
.to receive(:find_by_identifier)
allow_any_instance_of(SentryIssueFinder)
.to receive(:execute)
.and_return(sentry_issue)
allow(Issues::CloseService)
......
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