Commit aeffa281 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Add last release version to detailed sentry error

Sentry detailed issue contains "last release version"
parent a57638be
......@@ -22,6 +22,7 @@ module Gitlab
:id,
:last_release_last_commit,
:last_release_short_version,
:last_release_version,
:last_seen,
:message,
:project_id,
......
......@@ -168,7 +168,8 @@ module Sentry
first_release_short_version: issue.dig('firstRelease', 'shortVersion'),
first_release_version: issue.dig('firstRelease', 'version'),
last_release_last_commit: issue.dig('lastRelease', 'lastCommit'),
last_release_short_version: issue.dig('lastRelease', 'shortVersion')
last_release_short_version: issue.dig('lastRelease', 'shortVersion'),
last_release_version: issue.dig('lastRelease', 'version')
})
end
......
......@@ -42,7 +42,30 @@
"isBookmarked": false,
"isPublic": false,
"isSubscribed": true,
"lastRelease": null,
"lastRelease": {
"dateReleased": null,
"commitCount": 1,
"url": null,
"data": {},
"lastDeploy": {},
"deployCount": 3,
"dateCreated": "2020-06-29T08:10:45.909Z",
"lastEvent": "2020-06-30T09:47:19.651Z",
"version": "17642328ead24b51867165985996d04b29321448",
"firstEvent": "2020-06-29T09:13:36.696Z",
"lastCommit": {},
"shortVersion": "27de6b42eb4",
"authors": [],
"owner": null,
"newGroups": 208,
"ref": null,
"projects": [
{
"name": "Pump Station",
"slug": "pump-station"
}
]
},
"lastSeen": "2018-11-06T21:19:55Z",
"level": "error",
"logger": null,
......
......@@ -234,6 +234,7 @@ RSpec.describe Sentry::Client::Issue do
:first_release_short_version | [:firstRelease, :shortVersion]
:last_release_short_version | [:lastRelease, :shortVersion]
:first_release_version | [:firstRelease, :version]
:last_release_version | [:lastRelease, :version]
end
with_them 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