Commit 2109632c authored by Fabio Pitino's avatar Fabio Pitino

Merge branch '246162-graphql-issuemovelist-mutation-repositions-issues-incorrectly-2' into 'master'

Fix issues reordering fields description

See merge request gitlab-org/gitlab!41661
parents d4db9946 a00d5a26
...@@ -29,11 +29,11 @@ module Mutations ...@@ -29,11 +29,11 @@ module Mutations
argument :move_before_id, GraphQL::ID_TYPE, argument :move_before_id, GraphQL::ID_TYPE,
required: false, required: false,
description: 'ID of issue before which the current issue will be positioned at' description: 'ID of issue that should be placed before the current issue'
argument :move_after_id, GraphQL::ID_TYPE, argument :move_after_id, GraphQL::ID_TYPE,
required: false, required: false,
description: 'ID of issue after which the current issue will be positioned at' description: 'ID of issue that should be placed after the current issue'
def ready?(**args) def ready?(**args)
if move_arguments(args).blank? if move_arguments(args).blank?
......
...@@ -7927,12 +7927,12 @@ input IssueMoveListInput { ...@@ -7927,12 +7927,12 @@ input IssueMoveListInput {
iid: String! iid: String!
""" """
ID of issue after which the current issue will be positioned at ID of issue that should be placed after the current issue
""" """
moveAfterId: ID moveAfterId: ID
""" """
ID of issue before which the current issue will be positioned at ID of issue that should be placed before the current issue
""" """
moveBeforeId: ID moveBeforeId: ID
......
...@@ -21905,7 +21905,7 @@ ...@@ -21905,7 +21905,7 @@
}, },
{ {
"name": "moveBeforeId", "name": "moveBeforeId",
"description": "ID of issue before which the current issue will be positioned at", "description": "ID of issue that should be placed before the current issue",
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "ID",
...@@ -21915,7 +21915,7 @@ ...@@ -21915,7 +21915,7 @@
}, },
{ {
"name": "moveAfterId", "name": "moveAfterId",
"description": "ID of issue after which the current issue will be positioned at", "description": "ID of issue that should be placed after the current issue",
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "ID",
...@@ -1181,9 +1181,9 @@ PUT /projects/:id/issues/:issue_iid/reorder ...@@ -1181,9 +1181,9 @@ PUT /projects/:id/issues/:issue_iid/reorder
| Attribute | Type | Required | Description | | Attribute | Type | Required | Description |
|-------------|---------|----------|--------------------------------------| |-------------|---------|----------|--------------------------------------|
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user | | `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user |
| `issue_iid` | integer | yes | The internal ID of a project's issue | | `issue_iid` | integer | yes | The internal ID of the project's issue |
| `move_after_id` | integer | no | The ID of a project's issue to move this issue after | | `move_after_id` | integer | no | The ID of a project's issue that should be placed after this issue |
| `move_before_id` | integer | no | The ID of a project's issue to move this issue before | | `move_before_id` | integer | no | The ID of a project's issue that should be placed before this issue |
```shell ```shell
curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/4/issues/85/reorder?move_after_id=51&move_before_id=92" curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/4/issues/85/reorder?move_after_id=51&move_before_id=92"
......
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