Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-04 18:17:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-04 18:17:17 +0300
commit714e16b260e01dd316574ab7baf0a73f61547d80 (patch)
treeccdd60730b41e738d3f6a04dc169b9a8dc6396be /app/graphql/types
parentf00510286b6ccda154c4926503397590a8851939 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/types')
-rw-r--r--app/graphql/types/work_items/todo_update_action_enum.rb13
-rw-r--r--app/graphql/types/work_items/widgets/current_user_todos_input_type.rb21
2 files changed, 34 insertions, 0 deletions
diff --git a/app/graphql/types/work_items/todo_update_action_enum.rb b/app/graphql/types/work_items/todo_update_action_enum.rb
new file mode 100644
index 00000000000..d9ce8f65396
--- /dev/null
+++ b/app/graphql/types/work_items/todo_update_action_enum.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+module Types
+ module WorkItems
+ class TodoUpdateActionEnum < BaseEnum
+ graphql_name 'WorkItemTodoUpdateAction'
+ description 'Values for work item to-do update enum'
+
+ value 'MARK_AS_DONE', 'Marks the to-do as done.', value: 'mark_as_done'
+ value 'ADD', 'Adds the to-do.', value: 'add'
+ end
+ end
+end
diff --git a/app/graphql/types/work_items/widgets/current_user_todos_input_type.rb b/app/graphql/types/work_items/widgets/current_user_todos_input_type.rb
new file mode 100644
index 00000000000..630958def53
--- /dev/null
+++ b/app/graphql/types/work_items/widgets/current_user_todos_input_type.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+module Types
+ module WorkItems
+ module Widgets
+ class CurrentUserTodosInputType < BaseInputObject
+ graphql_name 'WorkItemWidgetCurrentUserTodosInput'
+
+ argument :action, ::Types::WorkItems::TodoUpdateActionEnum,
+ required: true,
+ description: 'Action for the update.'
+
+ argument :todo_id,
+ ::Types::GlobalIDType[::Todo],
+ required: false,
+ description: "Global ID of the to-do. If not present, all to-dos of the work item will be updated.",
+ prepare: ->(id, _) { id.model_id }
+ end
+ end
+ end
+end