Commit 1a5fa2b7 authored by Sean Arnold's avatar Sean Arnold

Remove prefix from oncall rotations field

Update docs
parent c75bbec1
......@@ -11082,7 +11082,7 @@ type IncidentManagementOncallSchedule {
"""
On-call rotations for the on-call schedule
"""
oncallRotations(
rotations(
"""
Returns the elements in the list that come after the specified cursor.
"""
......
......@@ -30365,7 +30365,7 @@
"deprecationReason": null
},
{
"name": "oncallRotations",
"name": "rotations",
"description": "On-call rotations for the on-call schedule",
"args": [
{
......@@ -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 |
| `oncallRotations` | IncidentManagementOncallRotationConnection! | On-call rotations for the on-call schedule |
| `rotations` | IncidentManagementOncallRotationConnection! | On-call rotations for the on-call schedule |
| `timezone` | String! | Time zone of the on-call schedule |
### InstanceSecurityDashboard
......
......@@ -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
......@@ -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
......@@ -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
......
......@@ -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)
......
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