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