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
1a5fa2b7
Commit
1a5fa2b7
authored
Dec 08, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove prefix from oncall rotations field
Update docs
parent
c75bbec1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
11 deletions
+6
-11
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+1
-1
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+1
-1
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-1
ee/app/graphql/types/incident_management/oncall_rotation_type.rb
...graphql/types/incident_management/oncall_rotation_type.rb
+0
-4
ee/app/graphql/types/incident_management/oncall_schedule_type.rb
...graphql/types/incident_management/oncall_schedule_type.rb
+1
-2
ee/spec/graphql/mutations/incident_management/oncall_rotation/create_spec.rb
...ations/incident_management/oncall_rotation/create_spec.rb
+1
-1
ee/spec/graphql/types/incident_management/oncall_schedule_type_spec.rb
...ql/types/incident_management/oncall_schedule_type_spec.rb
+1
-1
No files found.
doc/api/graphql/reference/gitlab_schema.graphql
View file @
1a5fa2b7
...
...
@@ -11082,7 +11082,7 @@ type IncidentManagementOncallSchedule {
"""
On
-
call
rotations
for
the
on
-
call
schedule
"""
oncallR
otations
(
r
otations
(
"""
Returns
the
elements
in
the
list
that
come
after
the
specified
cursor
.
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
1a5fa2b7
...
...
@@ -30365,7 +30365,7 @@
"deprecationReason": null
},
{
"name": "
oncallR
otations",
"name": "
r
otations",
"description": "On-call rotations for the on-call schedule",
"args": [
{
doc/api/graphql/reference/index.md
View file @
1a5fa2b7
...
...
@@ -1734,7 +1734,7 @@ Describes an incident management on-call schedule.
|
`description`
| String | Description of the on-call schedule |
|
`iid`
| ID! | Internal ID of the on-call schedule |
|
`name`
| String! | Name of the on-call schedule |
|
`
oncallR
otations`
| IncidentManagementOncallRotationConnection! | On-call rotations for the on-call schedule |
|
`
r
otations`
| IncidentManagementOncallRotationConnection! | On-call rotations for the on-call schedule |
|
`timezone`
| String! | Time zone of the on-call schedule |
### InstanceSecurityDashboard
...
...
ee/app/graphql/types/incident_management/oncall_rotation_type.rb
View file @
1a5fa2b7
...
...
@@ -37,10 +37,6 @@ module Types
::
Types
::
IncidentManagement
::
OncallParticipantType
.
connection_type
,
null:
true
,
description:
'Participants of the on-call rotation'
def
participants
object
.
oncall_participants
end
end
end
end
ee/app/graphql/types/incident_management/oncall_schedule_type.rb
View file @
1a5fa2b7
...
...
@@ -28,11 +28,10 @@ module Types
null:
false
,
description:
'Time zone of the on-call schedule'
field
:
oncall_
rotations
,
field
:rotations
,
OncallRotationType
.
connection_type
,
null:
false
,
description:
'On-call rotations for the on-call schedule'
end
end
end
ee/spec/graphql/mutations/incident_management/oncall_rotation/create_spec.rb
View file @
1a5fa2b7
...
...
@@ -87,7 +87,7 @@ RSpec.describe Mutations::IncidentManagement::OncallRotation::Create do
end
it
'raises an error'
do
expect
{
resolve
}.
to
raise_error
(
ActiveRecord
::
RecordInvalid
,
/
Participant
does not have access to the project/
)
expect
{
resolve
}.
to
raise_error
(
ActiveRecord
::
RecordInvalid
,
/
User
does not have access to the project/
)
end
end
...
...
ee/spec/graphql/types/incident_management/oncall_schedule_type_spec.rb
View file @
1a5fa2b7
...
...
@@ -13,7 +13,7 @@ RSpec.describe GitlabSchema.types['IncidentManagementOncallSchedule'] do
name
description
timezone
oncall_
rotations
rotations
]
expect
(
described_class
).
to
have_graphql_fields
(
*
expected_fields
)
...
...
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