summaryrefslogtreecommitdiff
path: root/app/graphql/types/todo_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/todo_type.rb')
-rw-r--r--app/graphql/types/todo_type.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/graphql/types/todo_type.rb b/app/graphql/types/todo_type.rb
index 3694980ef93..3b983060de2 100644
--- a/app/graphql/types/todo_type.rb
+++ b/app/graphql/types/todo_type.rb
@@ -3,49 +3,49 @@
module Types
class TodoType < BaseObject
graphql_name 'Todo'
- description 'Representing a todo entry'
+ description 'Representing a to-do entry'
present_using TodoPresenter
authorize :read_todo
field :id, GraphQL::ID_TYPE,
- description: 'ID of the todo',
+ description: 'ID of the to-do item.',
null: false
field :project, Types::ProjectType,
- description: 'The project this todo is associated with',
+ description: 'The project this to-do item is associated with.',
null: true,
authorize: :read_project
field :group, Types::GroupType,
- description: 'Group this todo is associated with',
+ description: 'Group this to-do item is associated with.',
null: true,
authorize: :read_group
field :author, Types::UserType,
- description: 'The author of this todo',
+ description: 'The author of this to-do item.',
null: false
field :action, Types::TodoActionEnum,
- description: 'Action of the todo',
+ description: 'Action of the to-do item.',
null: false
field :target_type, Types::TodoTargetEnum,
- description: 'Target type of the todo',
+ description: 'Target type of the to-do item.',
null: false
field :body, GraphQL::STRING_TYPE,
- description: 'Body of the todo',
+ description: 'Body of the to-do item.',
null: false,
calls_gitaly: true # TODO This is only true when `target_type` is `Commit`. See https://gitlab.com/gitlab-org/gitlab/issues/34757#note_234752665
field :state, Types::TodoStateEnum,
- description: 'State of the todo',
+ description: 'State of the to-do item.',
null: false
field :created_at, Types::TimeType,
- description: 'Timestamp this todo was created',
+ description: 'Timestamp this to-do item was created.',
null: false
def project