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
573dd0e8
Commit
573dd0e8
authored
Dec 15, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update description to include period
- update docs
parent
3363230b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
45 additions
and
45 deletions
+45
-45
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+14
-14
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+14
-14
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+3
-3
ee/app/graphql/mutations/incident_management/oncall_rotation/base.rb
...hql/mutations/incident_management/oncall_rotation/base.rb
+1
-1
ee/app/graphql/mutations/incident_management/oncall_rotation/create.rb
...l/mutations/incident_management/oncall_rotation/create.rb
+6
-6
ee/app/graphql/types/incident_management/oncall_participant_type.rb
...phql/types/incident_management/oncall_participant_type.rb
+2
-2
ee/app/graphql/types/incident_management/oncall_rotation_date_input_type.rb
...es/incident_management/oncall_rotation_date_input_type.rb
+2
-2
ee/app/graphql/types/incident_management/oncall_rotation_length_input_type.rb
.../incident_management/oncall_rotation_length_input_type.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
No files found.
doc/api/graphql/reference/gitlab_schema.graphql
View file @
573dd0e8
...
@@ -15635,12 +15635,12 @@ type OncallParticipantType {
...
@@ -15635,12 +15635,12 @@ type OncallParticipantType {
colorWeight
:
String
colorWeight
:
String
"""
"""
ID
of
the
on
-
call
participant
ID
of
the
on
-
call
participant
.
"""
"""
id
:
IncidentManagementOncallParticipantID
!
id
:
IncidentManagementOncallParticipantID
!
"""
"""
The
user
who
is
participating
The
user
who
is
participating
.
"""
"""
user
:
User
!
user
:
User
!
}
}
...
@@ -15690,32 +15690,32 @@ input OncallRotationCreateInput {
...
@@ -15690,32 +15690,32 @@ input OncallRotationCreateInput {
clientMutationId
:
String
clientMutationId
:
String
"""
"""
The
name
of
the
on
-
call
rotation
The
name
of
the
on
-
call
rotation
.
"""
"""
name
:
String
!
name
:
String
!
"""
"""
The
usernames
of
users
participating
in
the
on
-
call
rotation
The
usernames
of
users
participating
in
the
on
-
call
rotation
.
"""
"""
participants
:
[
OncallUserInputType
!]!
participants
:
[
OncallUserInputType
!]!
"""
"""
The
project
to
create
the
on
-
call
schedule
in
The
project
to
create
the
on
-
call
schedule
in
.
"""
"""
projectPath
:
ID
!
projectPath
:
ID
!
"""
"""
The
rotation
length
of
the
on
-
call
rotation
The
rotation
length
of
the
on
-
call
rotation
.
"""
"""
rotationLength
:
OncallRotationLengthInputType
!
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
!
scheduleIid
:
String
!
"""
"""
The
start
date
and
time
of
the
on
-
call
rotation
,
in
the
timezone
of
the
on
-
call
schedule
The
start
date
and
time
of
the
on
-
call
rotation
,
in
the
timezone
of
the
on
-
call
schedule
.
"""
"""
startsAt
:
OncallRotationDateInputType
!
startsAt
:
OncallRotationDateInputType
!
}
}
...
@@ -15735,7 +15735,7 @@ type OncallRotationCreatePayload {
...
@@ -15735,7 +15735,7 @@ type OncallRotationCreatePayload {
errors
:
[
String
!]!
errors
:
[
String
!]!
"""
"""
The
on
-
call
rotation
The
on
-
call
rotation
.
"""
"""
oncallRotation
:
IncidentManagementOncallRotation
oncallRotation
:
IncidentManagementOncallRotation
}
}
...
@@ -15745,12 +15745,12 @@ Date input type for on-call rotation
...
@@ -15745,12 +15745,12 @@ Date input type for on-call rotation
"""
"""
input
OncallRotationDateInputType
{
input
OncallRotationDateInputType
{
"""
"""
The
date
component
of
the
date
in
YYYY
-
MM
-
DD
format
The
date
component
of
the
date
in
YYYY
-
MM
-
DD
format
.
"""
"""
date
:
String
!
date
:
String
!
"""
"""
The
time
component
of
the
date
in
24
hr
HH
:
MM
format
The
time
component
of
the
date
in
24
hr
HH
:
MM
format
.
"""
"""
time
:
String
!
time
:
String
!
}
}
...
@@ -15760,12 +15760,12 @@ The rotation length of the on-call rotation
...
@@ -15760,12 +15760,12 @@ The rotation length of the on-call rotation
"""
"""
input
OncallRotationLengthInputType
{
input
OncallRotationLengthInputType
{
"""
"""
The
rotation
length
of
the
on
-
call
rotation
The
rotation
length
of
the
on
-
call
rotation
.
"""
"""
length
:
Int
!
length
:
Int
!
"""
"""
The
unit
of
the
rotation
length
of
the
on
-
call
rotation
The
unit
of
the
rotation
length
of
the
on
-
call
rotation
.
"""
"""
unit
:
OncallRotationUnitEnum
!
unit
:
OncallRotationUnitEnum
!
}
}
...
@@ -15950,7 +15950,7 @@ input OncallUserInputType {
...
@@ -15950,7 +15950,7 @@ input OncallUserInputType {
colorWeight
:
DataVisualizationWeightEnum
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
.
i
.
e
user_one
.
"""
"""
username
:
String
!
username
:
String
!
}
}
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
573dd0e8
...
@@ -46446,7 +46446,7 @@
...
@@ -46446,7 +46446,7 @@
},
},
{
{
"name": "id",
"name": "id",
"description": "ID of the on-call participant",
"description": "ID of the on-call participant
.
",
"args": [
"args": [
],
],
...
@@ -46464,7 +46464,7 @@
...
@@ -46464,7 +46464,7 @@
},
},
{
{
"name": "user",
"name": "user",
"description": "The user who is participating",
"description": "The user who is participating
.
",
"args": [
"args": [
],
],
...
@@ -46608,7 +46608,7 @@
...
@@ -46608,7 +46608,7 @@
"inputFields": [
"inputFields": [
{
{
"name": "projectPath",
"name": "projectPath",
"description": "The project to create the on-call schedule in",
"description": "The project to create the on-call schedule in
.
",
"type": {
"type": {
"kind": "NON_NULL",
"kind": "NON_NULL",
"name": null,
"name": null,
...
@@ -46622,7 +46622,7 @@
...
@@ -46622,7 +46622,7 @@
},
},
{
{
"name": "scheduleIid",
"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": {
"type": {
"kind": "NON_NULL",
"kind": "NON_NULL",
"name": null,
"name": null,
...
@@ -46636,7 +46636,7 @@
...
@@ -46636,7 +46636,7 @@
},
},
{
{
"name": "name",
"name": "name",
"description": "The name of the on-call rotation",
"description": "The name of the on-call rotation
.
",
"type": {
"type": {
"kind": "NON_NULL",
"kind": "NON_NULL",
"name": null,
"name": null,
...
@@ -46650,7 +46650,7 @@
...
@@ -46650,7 +46650,7 @@
},
},
{
{
"name": "startsAt",
"name": "startsAt",
"description": "The start date and time of the on-call rotation, in the timezone of the on-call schedule",
"description": "The start date and time of the on-call rotation, in the timezone of the on-call schedule
.
",
"type": {
"type": {
"kind": "NON_NULL",
"kind": "NON_NULL",
"name": null,
"name": null,
...
@@ -46664,7 +46664,7 @@
...
@@ -46664,7 +46664,7 @@
},
},
{
{
"name": "rotationLength",
"name": "rotationLength",
"description": "The rotation length of the on-call rotation",
"description": "The rotation length of the on-call rotation
.
",
"type": {
"type": {
"kind": "NON_NULL",
"kind": "NON_NULL",
"name": null,
"name": null,
...
@@ -46678,7 +46678,7 @@
...
@@ -46678,7 +46678,7 @@
},
},
{
{
"name": "participants",
"name": "participants",
"description": "The usernames of users participating in the on-call rotation",
"description": "The usernames of users participating in the on-call rotation
.
",
"type": {
"type": {
"kind": "NON_NULL",
"kind": "NON_NULL",
"name": null,
"name": null,
...
@@ -46760,7 +46760,7 @@
...
@@ -46760,7 +46760,7 @@
},
},
{
{
"name": "oncallRotation",
"name": "oncallRotation",
"description": "The on-call rotation",
"description": "The on-call rotation
.
",
"args": [
"args": [
],
],
...
@@ -46788,7 +46788,7 @@
...
@@ -46788,7 +46788,7 @@
"inputFields": [
"inputFields": [
{
{
"name": "date",
"name": "date",
"description": "The date component of the date in YYYY-MM-DD format",
"description": "The date component of the date in YYYY-MM-DD format
.
",
"type": {
"type": {
"kind": "NON_NULL",
"kind": "NON_NULL",
"name": null,
"name": null,
...
@@ -46802,7 +46802,7 @@
...
@@ -46802,7 +46802,7 @@
},
},
{
{
"name": "time",
"name": "time",
"description": "The time component of the date in 24hr HH:MM format",
"description": "The time component of the date in 24hr HH:MM format
.
",
"type": {
"type": {
"kind": "NON_NULL",
"kind": "NON_NULL",
"name": null,
"name": null,
...
@@ -46827,7 +46827,7 @@
...
@@ -46827,7 +46827,7 @@
"inputFields": [
"inputFields": [
{
{
"name": "length",
"name": "length",
"description": "The rotation length of the on-call rotation",
"description": "The rotation length of the on-call rotation
.
",
"type": {
"type": {
"kind": "NON_NULL",
"kind": "NON_NULL",
"name": null,
"name": null,
...
@@ -46841,7 +46841,7 @@
...
@@ -46841,7 +46841,7 @@
},
},
{
{
"name": "unit",
"name": "unit",
"description": "The unit of the rotation length of the on-call rotation",
"description": "The unit of the rotation length of the on-call rotation
.
",
"type": {
"type": {
"kind": "NON_NULL",
"kind": "NON_NULL",
"name": null,
"name": null,
...
@@ -47297,7 +47297,7 @@
...
@@ -47297,7 +47297,7 @@
"inputFields": [
"inputFields": [
{
{
"name": "username",
"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. i.e user_one
.
",
"type": {
"type": {
"kind": "NON_NULL",
"kind": "NON_NULL",
"name": null,
"name": null,
doc/api/graphql/reference/index.md
View file @
573dd0e8
...
@@ -2399,8 +2399,8 @@ The rotation participant and color palette.
...
@@ -2399,8 +2399,8 @@ The rotation participant and color palette.
| ----- | ---- | ----------- |
| ----- | ---- | ----------- |
|
`colorPalette`
| String | The color palette to assign to the on-call user. For example "blue". |
|
`colorPalette`
| String | The color palette to assign to the on-call user. For example "blue". |
|
`colorWeight`
| String | The color weight to assign to for the on-call user, for example "500". Max 4 chars. For easy identification of the user. |
|
`colorWeight`
| String | The color weight to assign to for the on-call user, for example "500". Max 4 chars. For easy identification of the user. |
|
`id`
| IncidentManagementOncallParticipantID! | ID of the on-call participant |
|
`id`
| IncidentManagementOncallParticipantID! | ID of the on-call participant
.
|
|
`user`
| User! | The user who is participating |
|
`user`
| User! | The user who is participating
.
|
### OncallRotationCreatePayload
### OncallRotationCreatePayload
...
@@ -2410,7 +2410,7 @@ Autogenerated return type of OncallRotationCreate.
...
@@ -2410,7 +2410,7 @@ Autogenerated return type of OncallRotationCreate.
| ----- | ---- | ----------- |
| ----- | ---- | ----------- |
|
`clientMutationId`
| String | A unique identifier for the client performing the mutation. |
|
`clientMutationId`
| String | A unique identifier for the client performing the mutation. |
|
`errors`
| String! => Array | Errors encountered during execution of the mutation. |
|
`errors`
| String! => Array | Errors encountered during execution of the mutation. |
|
`oncallRotation`
| IncidentManagementOncallRotation | The on-call rotation |
|
`oncallRotation`
| IncidentManagementOncallRotation | The on-call rotation
.
|
### OncallScheduleCreatePayload
### OncallScheduleCreatePayload
...
...
ee/app/graphql/mutations/incident_management/oncall_rotation/base.rb
View file @
573dd0e8
...
@@ -7,7 +7,7 @@ module Mutations
...
@@ -7,7 +7,7 @@ module Mutations
field
:oncall_rotation
,
field
:oncall_rotation
,
::
Types
::
IncidentManagement
::
OncallRotationType
,
::
Types
::
IncidentManagement
::
OncallRotationType
,
null:
true
,
null:
true
,
description:
'The on-call rotation'
description:
'The on-call rotation
.
'
authorize
:admin_incident_management_oncall_schedule
authorize
:admin_incident_management_oncall_schedule
...
...
ee/app/graphql/mutations/incident_management/oncall_rotation/create.rb
View file @
573dd0e8
...
@@ -10,29 +10,29 @@ module Mutations
...
@@ -10,29 +10,29 @@ module Mutations
argument
:project_path
,
GraphQL
::
ID_TYPE
,
argument
:project_path
,
GraphQL
::
ID_TYPE
,
required:
true
,
required:
true
,
description:
'The project to create the on-call schedule in'
description:
'The project to create the on-call schedule in
.
'
argument
:schedule_iid
,
GraphQL
::
STRING_TYPE
,
argument
:schedule_iid
,
GraphQL
::
STRING_TYPE
,
required:
true
,
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
as: :iid
argument
:name
,
GraphQL
::
STRING_TYPE
,
argument
:name
,
GraphQL
::
STRING_TYPE
,
required:
true
,
required:
true
,
description:
'The name of the on-call rotation'
description:
'The name of the on-call rotation
.
'
argument
:starts_at
,
Types
::
IncidentManagement
::
OncallRotationDateInputType
,
argument
:starts_at
,
Types
::
IncidentManagement
::
OncallRotationDateInputType
,
required:
true
,
required:
true
,
description:
'The start date and time of the on-call rotation, in the timezone of the on-call schedule'
description:
'The start date and time of the on-call rotation, in the timezone of the on-call schedule
.
'
argument
:rotation_length
,
Types
::
IncidentManagement
::
OncallRotationLengthInputType
,
argument
:rotation_length
,
Types
::
IncidentManagement
::
OncallRotationLengthInputType
,
required:
true
,
required:
true
,
description:
'The rotation length of the on-call rotation'
description:
'The rotation length of the on-call rotation
.
'
argument
:participants
,
argument
:participants
,
[
Types
::
IncidentManagement
::
OncallUserInputType
],
[
Types
::
IncidentManagement
::
OncallUserInputType
],
required:
true
,
required:
true
,
description:
'The usernames of users participating in the on-call rotation'
description:
'The usernames of users participating in the on-call rotation
.
'
MAXIMUM_PARTICIPANTS
=
100
MAXIMUM_PARTICIPANTS
=
100
...
...
ee/app/graphql/types/incident_management/oncall_participant_type.rb
View file @
573dd0e8
...
@@ -10,11 +10,11 @@ module Types
...
@@ -10,11 +10,11 @@ module Types
field
:id
,
field
:id
,
Types
::
GlobalIDType
[
::
IncidentManagement
::
OncallParticipant
],
Types
::
GlobalIDType
[
::
IncidentManagement
::
OncallParticipant
],
null:
false
,
null:
false
,
description:
'ID of the on-call participant'
description:
'ID of the on-call participant
.
'
field
:user
,
Types
::
UserType
,
field
:user
,
Types
::
UserType
,
null:
false
,
null:
false
,
description:
'The user who is participating'
description:
'The user who is participating
.
'
field
:color_palette
,
GraphQL
::
STRING_TYPE
,
field
:color_palette
,
GraphQL
::
STRING_TYPE
,
null:
true
,
null:
true
,
...
...
ee/app/graphql/types/incident_management/oncall_rotation_date_input_type.rb
View file @
573dd0e8
...
@@ -9,11 +9,11 @@ module Types
...
@@ -9,11 +9,11 @@ module Types
argument
:date
,
GraphQL
::
STRING_TYPE
,
argument
:date
,
GraphQL
::
STRING_TYPE
,
required:
true
,
required:
true
,
description:
'The date component of the date in YYYY-MM-DD format'
description:
'The date component of the date in YYYY-MM-DD format
.
'
argument
:time
,
GraphQL
::
STRING_TYPE
,
argument
:time
,
GraphQL
::
STRING_TYPE
,
required:
true
,
required:
true
,
description:
'The time component of the date in 24hr HH:MM format'
description:
'The time component of the date in 24hr HH:MM format
.
'
DATE_FORMAT
=
%r[
\d
{4}-[0123]
\d
-
\d
{2}]
.
freeze
DATE_FORMAT
=
%r[
\d
{4}-[0123]
\d
-
\d
{2}]
.
freeze
TIME_FORMAT
=
%r[[012]
\d
:
\d
{2}]
.
freeze
TIME_FORMAT
=
%r[[012]
\d
:
\d
{2}]
.
freeze
...
...
ee/app/graphql/types/incident_management/oncall_rotation_length_input_type.rb
View file @
573dd0e8
...
@@ -9,11 +9,11 @@ module Types
...
@@ -9,11 +9,11 @@ module Types
argument
:length
,
GraphQL
::
INT_TYPE
,
argument
:length
,
GraphQL
::
INT_TYPE
,
required:
true
,
required:
true
,
description:
'The rotation length of the on-call rotation'
description:
'The rotation length of the on-call rotation
.
'
argument
:unit
,
Types
::
IncidentManagement
::
OncallRotationLengthUnitEnum
,
argument
:unit
,
Types
::
IncidentManagement
::
OncallRotationLengthUnitEnum
,
required:
true
,
required:
true
,
description:
'The unit of the rotation length of the on-call rotation'
description:
'The unit of the rotation length of the on-call rotation
.
'
end
end
# rubocop: enable Graphql/AuthorizeTypes
# rubocop: enable Graphql/AuthorizeTypes
end
end
...
...
ee/app/graphql/types/incident_management/oncall_user_input_type.rb
View file @
573dd0e8
...
@@ -9,7 +9,7 @@ module Types
...
@@ -9,7 +9,7 @@ module Types
argument
:username
,
GraphQL
::
STRING_TYPE
,
argument
:username
,
GraphQL
::
STRING_TYPE
,
required:
true
,
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. i.e user_one
.
'
argument
:color_palette
,
::
Types
::
DataVisualizationPalette
::
ColorEnum
,
argument
:color_palette
,
::
Types
::
DataVisualizationPalette
::
ColorEnum
,
required:
false
,
required:
false
,
...
...
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