Commit a79fbbd6 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Use full release version on error details page

Use full (instead of short) release versions
in links on Sentry Error details page.
parent 22bfc4e8
...@@ -120,10 +120,10 @@ export default { ...@@ -120,10 +120,10 @@ export default {
]), ]),
...mapGetters('details', ['stacktrace']), ...mapGetters('details', ['stacktrace']),
firstReleaseLink() { firstReleaseLink() {
return `${this.error.externalBaseUrl}/releases/${this.error.firstReleaseShortVersion}`; return `${this.error.externalBaseUrl}/releases/${this.error.firstReleaseVersion}`;
}, },
lastReleaseLink() { lastReleaseLink() {
return `${this.error.externalBaseUrl}/releases/${this.error.lastReleaseShortVersion}`; return `${this.error.externalBaseUrl}/releases/${this.error.lastReleaseVersion}`;
}, },
showStacktrace() { showStacktrace() {
return Boolean(this.stacktrace?.length); return Boolean(this.stacktrace?.length);
...@@ -400,18 +400,18 @@ export default { ...@@ -400,18 +400,18 @@ export default {
<icon name="external-link" class="ml-1 flex-shrink-0" /> <icon name="external-link" class="ml-1 flex-shrink-0" />
</gl-link> </gl-link>
</li> </li>
<li v-if="error.firstReleaseShortVersion"> <li v-if="error.firstReleaseVersion">
<strong class="bold">{{ __('First seen') }}:</strong> <strong class="bold">{{ __('First seen') }}:</strong>
<time-ago-tooltip :time="error.firstSeen" /> <time-ago-tooltip :time="error.firstSeen" />
<gl-link :href="firstReleaseLink" target="_blank"> <gl-link :href="firstReleaseLink" target="_blank">
<span>{{ __('Release') }}: {{ error.firstReleaseShortVersion.substr(0, 10) }}</span> <span>{{ __('Release') }}: {{ error.firstReleaseVersion }}</span>
</gl-link> </gl-link>
</li> </li>
<li v-if="error.lastReleaseShortVersion"> <li v-if="error.lastReleaseVersion">
<strong class="bold">{{ __('Last seen') }}:</strong> <strong class="bold">{{ __('Last seen') }}:</strong>
<time-ago-tooltip :time="error.lastSeen" /> <time-ago-tooltip :time="error.lastSeen" />
<gl-link :href="lastReleaseLink" target="_blank"> <gl-link :href="lastReleaseLink" target="_blank">
<span>{{ __('Release') }}: {{ error.lastReleaseShortVersion.substr(0, 10) }}</span> <span>{{ __('Release') }}: {{ error.lastReleaseVersion }}</span>
</gl-link> </gl-link>
</li> </li>
<li> <li>
......
...@@ -18,8 +18,8 @@ query errorDetails($fullPath: ID!, $errorId: ID!) { ...@@ -18,8 +18,8 @@ query errorDetails($fullPath: ID!, $errorId: ID!) {
} }
externalUrl externalUrl
externalBaseUrl externalBaseUrl
firstReleaseShortVersion firstReleaseVersion
lastReleaseShortVersion lastReleaseVersion
gitlabCommit gitlabCommit
gitlabCommitPath gitlabCommitPath
gitlabIssuePath gitlabIssuePath
......
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