Commit 2e1dffc1 authored by Fatih Acet's avatar Fatih Acet

Merge branch '208394-iid-to-id-arg' into 'master'

Change iid argument to ID_TYPE for graphQL queries

Closes #208394

See merge request gitlab-org/gitlab!26171
parents e64975e8 6079a378
query mergeRequest($projectPath: ID!, $mergeRequestIID: String!) {
query mergeRequest($projectPath: ID!, $mergeRequestIID: ID!) {
project(fullPath: $projectPath) {
mergeRequest(iid: $mergeRequestIID) {
createdAt
......
query ($fullPath: ID!, $iid: String!) {
query ($fullPath: ID!, $iid: ID!) {
project (fullPath: $fullPath) {
issue (iid: $iid) {
iid
......
query ($fullPath: ID!, $iid: String!) {
query ($fullPath: ID!, $iid: ID!) {
project (fullPath: $fullPath) {
issue (iid: $iid) {
iid
......
......@@ -9,7 +9,7 @@ module Mutations
required: true,
description: "The project the issue to mutate is in"
argument :iid, GraphQL::STRING_TYPE,
argument :iid, GraphQL::ID_TYPE,
required: true,
description: "The iid of the issue to mutate"
......
......@@ -9,7 +9,7 @@ module Mutations
required: true,
description: "The project the merge request to mutate is in"
argument :iid, GraphQL::STRING_TYPE,
argument :iid, GraphQL::ID_TYPE,
required: true,
description: "The iid of the merge request to mutate"
......
......@@ -2,11 +2,11 @@
module Resolvers
class IssuesResolver < BaseResolver
argument :iid, GraphQL::STRING_TYPE,
argument :iid, GraphQL::ID_TYPE,
required: false,
description: 'IID of the issue. For example, "1"'
argument :iids, [GraphQL::STRING_TYPE],
argument :iids, [GraphQL::ID_TYPE],
required: false,
description: 'List of IIDs of issues. For example, [1, 2]'
argument :state, Types::IssuableStateEnum,
......
......@@ -2,11 +2,11 @@
module Resolvers
class MergeRequestsResolver < BaseResolver
argument :iid, GraphQL::STRING_TYPE,
argument :iid, GraphQL::ID_TYPE,
required: false,
description: 'The IID of the merge request, e.g., "1"'
argument :iids, [GraphQL::STRING_TYPE],
argument :iids, [GraphQL::ID_TYPE],
required: false,
description: 'The list of IIDs of issues, e.g., [1, 2]'
......
......@@ -11,7 +11,7 @@ module Types
field :id, GraphQL::ID_TYPE, null: false,
description: 'ID of the pipeline'
field :iid, GraphQL::STRING_TYPE, null: false,
field :iid, GraphQL::ID_TYPE, null: false,
description: 'Internal ID of the pipeline'
field :sha, GraphQL::STRING_TYPE, null: false,
......
......@@ -14,7 +14,7 @@ module Types
field :id, GraphQL::ID_TYPE, null: false,
description: 'ID of the merge request'
field :iid, GraphQL::STRING_TYPE, null: false,
field :iid, GraphQL::ID_TYPE, null: false,
description: 'Internal ID of the merge request'
field :title, GraphQL::STRING_TYPE, null: false,
description: 'Title of the merge request'
......
......@@ -3757,7 +3757,7 @@ input IssueSetConfidentialInput {
"""
The iid of the issue to mutate
"""
iid: String!
iid: ID!
"""
The project the issue to mutate is in
......@@ -3802,7 +3802,7 @@ input IssueSetDueDateInput {
"""
The iid of the issue to mutate
"""
iid: String!
iid: ID!
"""
The project the issue to mutate is in
......@@ -3842,7 +3842,7 @@ input IssueSetWeightInput {
"""
The iid of the issue to mutate
"""
iid: String!
iid: ID!
"""
The project the issue to mutate is in
......@@ -4150,7 +4150,7 @@ type MergeRequest implements Noteable {
"""
Internal ID of the merge request
"""
iid: String!
iid: ID!
"""
Commit SHA of the merge request if merge is in progress
......@@ -4550,7 +4550,7 @@ input MergeRequestSetAssigneesInput {
"""
The iid of the merge request to mutate
"""
iid: String!
iid: ID!
"""
The operation to perform. Defaults to REPLACE.
......@@ -4595,7 +4595,7 @@ input MergeRequestSetLabelsInput {
"""
The iid of the merge request to mutate
"""
iid: String!
iid: ID!
"""
The Label IDs to set. Replaces existing labels by default.
......@@ -4645,7 +4645,7 @@ input MergeRequestSetLockedInput {
"""
The iid of the merge request to mutate
"""
iid: String!
iid: ID!
"""
Whether or not to lock the merge request.
......@@ -4690,7 +4690,7 @@ input MergeRequestSetMilestoneInput {
"""
The iid of the merge request to mutate
"""
iid: String!
iid: ID!
"""
The milestone to assign to the merge request.
......@@ -4735,7 +4735,7 @@ input MergeRequestSetSubscriptionInput {
"""
The iid of the merge request to mutate
"""
iid: String!
iid: ID!
"""
The project the merge request to mutate is in
......@@ -4780,7 +4780,7 @@ input MergeRequestSetWipInput {
"""
The iid of the merge request to mutate
"""
iid: String!
iid: ID!
"""
The project the merge request to mutate is in
......@@ -5351,7 +5351,7 @@ type Pipeline {
"""
Internal ID of the pipeline
"""
iid: String!
iid: ID!
"""
SHA of the pipeline's commit
......@@ -5629,12 +5629,12 @@ type Project {
"""
IID of the issue. For example, "1"
"""
iid: String
iid: ID
"""
List of IIDs of issues. For example, [1, 2]
"""
iids: [String!]
iids: [ID!]
"""
Labels applied to this issue
......@@ -5724,12 +5724,12 @@ type Project {
"""
IID of the issue. For example, "1"
"""
iid: String
iid: ID
"""
List of IIDs of issues. For example, [1, 2]
"""
iids: [String!]
iids: [ID!]
"""
Labels applied to this issue
......@@ -5799,12 +5799,12 @@ type Project {
"""
The IID of the merge request, e.g., "1"
"""
iid: String
iid: ID
"""
The list of IIDs of issues, e.g., [1, 2]
"""
iids: [String!]
iids: [ID!]
): MergeRequest
"""
......@@ -5829,12 +5829,12 @@ type Project {
"""
The IID of the merge request, e.g., "1"
"""
iid: String
iid: ID
"""
The list of IIDs of issues, e.g., [1, 2]
"""
iids: [String!]
iids: [ID!]
"""
Returns the last _n_ elements from the list.
......@@ -8112,7 +8112,7 @@ input UpdateIssueInput {
"""
The iid of the issue to mutate
"""
iid: String!
iid: ID!
"""
The project the issue to mutate is in
......
......@@ -702,7 +702,7 @@
"description": "IID of the issue. For example, \"1\"",
"type": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
},
"defaultValue": null
......@@ -718,7 +718,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
}
......@@ -881,7 +881,7 @@
"description": "IID of the issue. For example, \"1\"",
"type": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
},
"defaultValue": null
......@@ -897,7 +897,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
}
......@@ -1156,7 +1156,7 @@
"description": "The IID of the merge request, e.g., \"1\"",
"type": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
},
"defaultValue": null
......@@ -1172,7 +1172,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
}
......@@ -1197,7 +1197,7 @@
"description": "The IID of the merge request, e.g., \"1\"",
"type": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
},
"defaultValue": null
......@@ -1213,7 +1213,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
}
......@@ -14425,7 +14425,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
},
......@@ -16204,7 +16204,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
},
......@@ -20999,7 +20999,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
},
......@@ -21129,7 +21129,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
},
......@@ -21259,7 +21259,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
},
......@@ -21425,7 +21425,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
},
......@@ -21602,7 +21602,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
},
......@@ -21732,7 +21732,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
},
......@@ -21858,7 +21858,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
},
......@@ -21988,7 +21988,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
},
......@@ -22118,7 +22118,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
},
......@@ -24554,7 +24554,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"name": "ID",
"ofType": null
}
},
......
......@@ -630,7 +630,7 @@ Autogenerated return type of MarkAsSpamSnippet
| `forceRemoveSourceBranch` | Boolean | Indicates if the project settings will lead to source branch deletion after merge |
| `headPipeline` | Pipeline | The pipeline running on the branch HEAD of the merge request |
| `id` | ID! | ID of the merge request |
| `iid` | String! | Internal ID of the merge request |
| `iid` | ID! | Internal ID of the merge request |
| `inProgressMergeCommitSha` | String | Commit SHA of the merge request if merge is in progress |
| `mergeCommitMessage` **{warning-solid}** | String | **Deprecated:** Renamed to defaultMergeCommitMessage |
| `mergeCommitSha` | String | SHA of the merge request commit (set once merged) |
......@@ -834,7 +834,7 @@ Information about pagination in a connection.
| `duration` | Int | Duration of the pipeline in seconds |
| `finishedAt` | Time | Timestamp of the pipeline's completion |
| `id` | ID! | ID of the pipeline |
| `iid` | String! | Internal ID of the pipeline |
| `iid` | ID! | Internal ID of the pipeline |
| `sha` | String! | SHA of the pipeline's commit |
| `startedAt` | Time | Timestamp when the pipeline was started |
| `status` | PipelineStatusEnum! | Status of the pipeline (CREATED, WAITING_FOR_RESOURCE, PREPARING, PENDING, RUNNING, FAILED, SUCCESS, CANCELED, SKIPPED, MANUAL, SCHEDULED) |
......
......@@ -541,7 +541,7 @@ argument :project_path, GraphQL::ID_TYPE,
required: true,
description: "The project the merge request to mutate is in"
argument :iid, GraphQL::STRING_TYPE,
argument :iid, GraphQL::ID_TYPE,
required: true,
description: "The iid of the merge request to mutate"
......
#import "../fragments/design.fragment.graphql"
#import "~/graphql_shared/fragments/author.fragment.graphql"
query getDesign($fullPath: ID!, $iid: String!, $atVersion: ID, $filenames: [String!]) {
query getDesign($fullPath: ID!, $iid: ID!, $atVersion: ID, $filenames: [String!]) {
project(fullPath: $fullPath) {
id
issue(iid: $iid) {
......
query permissions($fullPath: ID!, $iid: String!) {
query permissions($fullPath: ID!, $iid: ID!) {
project(fullPath: $fullPath) {
id
issue(iid: $iid) {
......
#import "../fragments/designList.fragment.graphql"
#import "../fragments/version.fragment.graphql"
query project($fullPath: ID!, $iid: String!, $atVersion: ID) {
query project($fullPath: ID!, $iid: ID!, $atVersion: ID) {
project(fullPath: $fullPath) {
id
issue(iid: $iid) {
......
query ($fullPath: ID!, $iid: String!) {
query ($fullPath: ID!, $iid: ID!) {
project (fullPath: $fullPath) {
issue (iid: $iid) {
iid
......
query ($fullPath: ID!, $iid: String!) {
query ($fullPath: ID!, $iid: ID!) {
project (fullPath: $fullPath) {
issue (iid: $iid) {
healthStatus
......
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