diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-05 12:19:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-05 12:19:15 +0300 |
commit | 508f0c4ee719abb1294684eea4a63aa44cd23597 (patch) | |
tree | 1af8199669fe0e9086bc57ba91510e80da093ffa /app/graphql/types | |
parent | 9a0dd27b634dde1f947beafcf822efef1cd2dcfc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/types')
-rw-r--r-- | app/graphql/types/relative_position_type_enum.rb | 11 | ||||
-rw-r--r-- | app/graphql/types/work_items/widgets/hierarchy_update_input_type.rb | 15 |
2 files changed, 24 insertions, 2 deletions
diff --git a/app/graphql/types/relative_position_type_enum.rb b/app/graphql/types/relative_position_type_enum.rb new file mode 100644 index 00000000000..e0d28bea648 --- /dev/null +++ b/app/graphql/types/relative_position_type_enum.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Types + class RelativePositionTypeEnum < BaseEnum + graphql_name 'RelativePositionType' + description 'The position to which the object should be moved' + + value 'BEFORE', 'Object is moved before an adjacent object.' + value 'AFTER', 'Object is moved after an adjacent object.' + end +end diff --git a/app/graphql/types/work_items/widgets/hierarchy_update_input_type.rb b/app/graphql/types/work_items/widgets/hierarchy_update_input_type.rb index e1a9ebb76e9..297b06a8fab 100644 --- a/app/graphql/types/work_items/widgets/hierarchy_update_input_type.rb +++ b/app/graphql/types/work_items/widgets/hierarchy_update_input_type.rb @@ -6,16 +6,27 @@ module Types class HierarchyUpdateInputType < BaseInputObject graphql_name 'WorkItemWidgetHierarchyUpdateInput' - argument :parent_id, ::Types::GlobalIDType[::WorkItem], + argument :adjacent_work_item_id, + ::Types::GlobalIDType[::WorkItem], required: false, loads: ::Types::WorkItemType, - description: 'Global ID of the parent work item. Use `null` to remove the association.' + description: 'ID of the work item to be switched with.' argument :children_ids, [::Types::GlobalIDType[::WorkItem]], required: false, description: 'Global IDs of children work items.', loads: ::Types::WorkItemType, as: :children + + argument :parent_id, ::Types::GlobalIDType[::WorkItem], + required: false, + loads: ::Types::WorkItemType, + description: 'Global ID of the parent work item. Use `null` to remove the association.' + + argument :relative_position, + Types::RelativePositionTypeEnum, + required: false, + description: 'Type of switch. Valid values are `BEFORE` or `AFTER`.' end end end |