Commit 573dd0e8 authored by Sean Arnold's avatar Sean Arnold

Update description to include period

- update docs
parent 3363230b
...@@ -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 24hr HH:MM format The time component of the date in 24hr 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!
} }
......
...@@ -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,
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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,
......
...@@ -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
......
...@@ -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
......
...@@ -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,
......
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