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
1255a4dc
Commit
1255a4dc
authored
Dec 21, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak some wording
update graphql docs
parent
573dd0e8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
changelogs/unreleased/262857-creation-rotation-graphql.yml
changelogs/unreleased/262857-creation-rotation-graphql.yml
+1
-1
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+2
-2
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+2
-2
ee/app/graphql/mutations/incident_management/oncall_rotation/create.rb
...l/mutations/incident_management/oncall_rotation/create.rb
+2
-2
ee/app/graphql/types/incident_management/oncall_user_input_type.rb
...aphql/types/incident_management/oncall_user_input_type.rb
+1
-1
ee/spec/graphql/mutations/incident_management/oncall_rotation/create_spec.rb
...ations/incident_management/oncall_rotation/create_spec.rb
+1
-1
No files found.
changelogs/unreleased/262857-creation-rotation-graphql.yml
View file @
1255a4dc
---
title
:
Add
create On-call rotations GraphQL mutation
title
:
Add
GraphQL mutation to create on-call rotations
merge_request
:
49206
author
:
type
:
added
doc/api/graphql/reference/gitlab_schema.graphql
View file @
1255a4dc
...
...
@@ -15710,7 +15710,7 @@ input OncallRotationCreateInput {
rotationLength
:
OncallRotationLengthInputType
!
"""
The
iid
of
the
on
-
call
schedule
to
create
the
on
-
call
rotation
in
.
The
IID
of
the
on
-
call
schedule
to
create
the
on
-
call
rotation
in
.
"""
scheduleIid
:
String
!
...
...
@@ -15950,7 +15950,7 @@ input OncallUserInputType {
colorWeight
:
DataVisualizationWeightEnum
"""
The
username
of
the
user
to
participate
in
the
on
-
call
rotation
.
i
.
e
user_one
.
The
username
of
the
user
to
participate
in
the
on
-
call
rotation
,
such
as
`
user_one
`
.
"""
username
:
String
!
}
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
1255a4dc
...
...
@@ -46622,7 +46622,7 @@
},
{
"name": "scheduleIid",
"description": "The
iid
of the on-call schedule to create the on-call rotation in.",
"description": "The
IID
of the on-call schedule to create the on-call rotation in.",
"type": {
"kind": "NON_NULL",
"name": null,
...
...
@@ -47297,7 +47297,7 @@
"inputFields": [
{
"name": "username",
"description": "The username of the user to participate in the on-call rotation
. i.e user_one
.",
"description": "The username of the user to participate in the on-call rotation
, such as `user_one`
.",
"type": {
"kind": "NON_NULL",
"name": null,
ee/app/graphql/mutations/incident_management/oncall_rotation/create.rb
View file @
1255a4dc
...
...
@@ -14,7 +14,7 @@ module Mutations
argument
:schedule_iid
,
GraphQL
::
STRING_TYPE
,
required:
true
,
description:
'The
iid
of the on-call schedule to create the on-call rotation in.'
,
description:
'The
IID
of the on-call schedule to create the on-call rotation in.'
,
as: :iid
argument
:name
,
GraphQL
::
STRING_TYPE
,
...
...
@@ -104,7 +104,7 @@ module Mutations
end
def
raise_user_not_found
raise
Gitlab
::
Graphql
::
Errors
::
ArgumentError
,
'A username that was provided could not be matched to a user'
raise
Gitlab
::
Graphql
::
Errors
::
ArgumentError
,
"A provided username couldn't be matched to a user"
end
end
end
...
...
ee/app/graphql/types/incident_management/oncall_user_input_type.rb
View file @
1255a4dc
...
...
@@ -9,7 +9,7 @@ module Types
argument
:username
,
GraphQL
::
STRING_TYPE
,
required:
true
,
description:
'The username of the user to participate in the on-call rotation
. i.e user_one
.'
description:
'The username of the user to participate in the on-call rotation
, such as `user_one`
.'
argument
:color_palette
,
::
Types
::
DataVisualizationPalette
::
ColorEnum
,
required:
false
,
...
...
ee/spec/graphql/mutations/incident_management/oncall_rotation/create_spec.rb
View file @
1255a4dc
...
...
@@ -66,7 +66,7 @@ RSpec.describe Mutations::IncidentManagement::OncallRotation::Create do
end
it
'raises an error'
do
expect
{
resolve
}.
to
raise_error
(
Gitlab
::
Graphql
::
Errors
::
ArgumentError
,
'A username that was provided could not be matched to a user'
)
expect
{
resolve
}.
to
raise_error
(
Gitlab
::
Graphql
::
Errors
::
ArgumentError
,
"A provided username couldn't be matched to a user"
)
end
end
...
...
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