Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bb0eb279
Commit
bb0eb279
authored
May 07, 2021
by
pburdette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add stuck field
Add the stuck field to the job type. Changelog: added
parent
27621069
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
0 deletions
+9
-0
app/graphql/types/ci/job_type.rb
app/graphql/types/ci/job_type.rb
+2
-0
changelogs/unreleased/pb-add-stuck-field-to-job-type.yml
changelogs/unreleased/pb-add-stuck-field-to-job-type.yml
+5
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-0
spec/graphql/types/ci/job_type_spec.rb
spec/graphql/types/ci/job_type_spec.rb
+1
-0
No files found.
app/graphql/types/ci/job_type.rb
View file @
bb0eb279
...
...
@@ -71,6 +71,8 @@ module Types
description:
'Indicates the job can be canceled.'
field
:active
,
GraphQL
::
BOOLEAN_TYPE
,
null:
false
,
method: :active?
,
description:
'Indicates the job is active.'
field
:stuck
,
GraphQL
::
BOOLEAN_TYPE
,
null:
false
,
method: :stuck?
,
description:
'Indicates the job is stuck.'
field
:coverage
,
GraphQL
::
FLOAT_TYPE
,
null:
true
,
description:
'Coverage level of the job.'
field
:created_by_tag
,
GraphQL
::
BOOLEAN_TYPE
,
null:
false
,
...
...
changelogs/unreleased/pb-add-stuck-field-to-job-type.yml
0 → 100644
View file @
bb0eb279
---
title
:
Add stuck field to CiJob
merge_request
:
61247
author
:
type
:
added
doc/api/graphql/reference/index.md
View file @
bb0eb279
...
...
@@ -7298,6 +7298,7 @@ Represents the total number of issues and their weights for a particular day.
|
<a
id=
"cijobstage"
></a>
`stage`
|
[
`CiStage`
](
#cistage
)
| Stage of the job. |
|
<a
id=
"cijobstartedat"
></a>
`startedAt`
|
[
`Time`
](
#time
)
| When the job was started. |
|
<a
id=
"cijobstatus"
></a>
`status`
|
[
`CiJobStatus`
](
#cijobstatus
)
| Status of the job. |
|
<a
id=
"cijobstuck"
></a>
`stuck`
|
[
`Boolean!`
](
#boolean
)
| Indicates the job is stuck. |
|
<a
id=
"cijobtags"
></a>
`tags`
|
[
`[String!]`
](
#string
)
| Tags for the current job. |
|
<a
id=
"cijobtriggered"
></a>
`triggered`
|
[
`Boolean`
](
#boolean
)
| Whether the job was triggered. |
|
<a
id=
"cijobuserpermissions"
></a>
`userPermissions`
|
[
`JobPermissions!`
](
#jobpermissions
)
| Permissions for the current user on the resource. |
...
...
spec/graphql/types/ci/job_type_spec.rb
View file @
bb0eb279
...
...
@@ -37,6 +37,7 @@ RSpec.describe Types::Ci::JobType do
stage
started_at
status
stuck
tags
triggered
userPermissions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment