Commit 22bfc4e8 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Expose Sentry issue release versions in GraphQL

Expose Sentry issue first and last release versions
in GraphQL endpoint
parent aeffa281
......@@ -76,8 +76,14 @@ module Types
description: 'Commit the error was last seen'
field :first_release_short_version, GraphQL::STRING_TYPE,
null: true,
description: 'Release version the error was first seen'
description: 'Release short version the error was first seen'
field :last_release_short_version, GraphQL::STRING_TYPE,
null: true,
description: 'Release short version the error was last seen'
field :first_release_version, GraphQL::STRING_TYPE,
null: true,
description: 'Release version the error was first seen'
field :last_release_version, GraphQL::STRING_TYPE,
null: true,
description: 'Release version the error was last seen'
field :gitlab_commit, GraphQL::STRING_TYPE,
......
......@@ -11375,10 +11375,15 @@ type SentryDetailedError {
firstReleaseLastCommit: String
"""
Release version the error was first seen
Release short version the error was first seen
"""
firstReleaseShortVersion: String
"""
Release version the error was first seen
"""
firstReleaseVersion: String
"""
Timestamp when the error was first seen
"""
......@@ -11415,10 +11420,15 @@ type SentryDetailedError {
lastReleaseLastCommit: String
"""
Release version the error was last seen
Release short version the error was last seen
"""
lastReleaseShortVersion: String
"""
Release version the error was last seen
"""
lastReleaseVersion: String
"""
Timestamp when the error was last seen
"""
......
......@@ -33402,6 +33402,20 @@
},
{
"name": "firstReleaseShortVersion",
"description": "Release short version the error was first seen",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "firstReleaseVersion",
"description": "Release version the error was first seen",
"args": [
......@@ -33534,6 +33548,20 @@
},
{
"name": "lastReleaseShortVersion",
"description": "Release short version the error was last seen",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "lastReleaseVersion",
"description": "Release version the error was last seen",
"args": [
......@@ -1667,7 +1667,8 @@ A Sentry error.
| `externalBaseUrl` | String! | External Base URL of the Sentry Instance |
| `externalUrl` | String! | External URL of the error |
| `firstReleaseLastCommit` | String | Commit the error was first seen |
| `firstReleaseShortVersion` | String | Release version the error was first seen |
| `firstReleaseShortVersion` | String | Release short version the error was first seen |
| `firstReleaseVersion` | String | Release version the error was first seen |
| `firstSeen` | Time! | Timestamp when the error was first seen |
| `frequency` | SentryErrorFrequency! => Array | Last 24hr stats of the error |
| `gitlabCommit` | String | GitLab commit SHA attributed to the Error based on the release version |
......@@ -1675,7 +1676,8 @@ A Sentry error.
| `gitlabIssuePath` | String | URL of GitLab Issue |
| `id` | ID! | ID (global ID) of the error |
| `lastReleaseLastCommit` | String | Commit the error was last seen |
| `lastReleaseShortVersion` | String | Release version the error was last seen |
| `lastReleaseShortVersion` | String | Release short version the error was last seen |
| `lastReleaseVersion` | String | Release version the error was last seen |
| `lastSeen` | Time! | Timestamp when the error was last seen |
| `message` | String | Sentry metadata message of the error |
| `sentryId` | String! | ID (Sentry ID) of the error |
......
......@@ -31,6 +31,8 @@ RSpec.describe GitlabSchema.types['SentryDetailedError'] do
lastReleaseLastCommit
firstReleaseShortVersion
lastReleaseShortVersion
firstReleaseVersion
lastReleaseVersion
gitlabIssuePath
gitlabCommit
gitlabCommitPath
......
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