Fail to access merge request and pipeline result - Field 'url' doesn't exist on type 'Note'
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page) - Extension version: v3.41.1
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: 1.65.2 (user setup)
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: 13.5.4-ee
Summary
Steps to reproduce
- Install this extension
- Setup gitlab.instanceUrl and personal access token
- Open an VSCode workspace hosted by gitlab EE
- Click the gitlab icon in the sidebar, it shows list of the merge requests (But here, the pipeline result FORCURRENT BRANCH does not show fully)
- Click any MR in the ISSUES AND MERGE REQUESTS, an error message displays:
The extension failed to preload discussions on the MR diff.
It's possible that you've encountered
https://gitlab.com/gitlab-org/gitlab/-/issues/298827.
(I tried to find a solution from above URL but not found)
- Click 'Overview' of a MR, another error message displays:
Field 'url' doesn't exist on type 'Note': {"response":{"errors":[{"message":"Field 'url' doesn't exist on type 'Note'","locations":[{"line":35,"column":5}],"path":["fragment noteDetails","url"],"extensions":{"code":"undefinedField","typeName":"Note","fieldName":"url"}}],"status":200,"headers":{}},"request":{"query":"\n \n \n \n \n fragment position on Note {\n position {\n diffRefs {\n baseSha\n headSha\n startSha\n }\n filePath\n positionType\n newLine\n oldLine\n newPath\n oldPath\n positionType\n }\n }\n\n fragment noteDetails on Note {\n id\n createdAt\n system\n author {\n avatarUrl\n name\n username\n webUrl\n }\n body\n bodyHtml\n url\n userPermissions {\n resolveNote\n adminNote\n createNote\n }\n ...position\n }\n\n fragment discussionDetails on Discussion {\n replyId\n createdAt\n resolved\n resolvable\n notes {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...noteDetails\n }\n }\n }\n\n fragment discussions on DiscussionConnection {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...discussionDetails\n }\n }\n\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\n project(fullPath: $projectPath) {\n id\n mergeRequest(iid: $iid) {\n discussions(after: $afterCursor) {\n ...discussions\n }\n }\n }\n }\n","variables":{"projectPath":"dev/ProjectName","iid":"729"}}}
What is the current bug behavior?
Can't open the merge request
What is the expected correct behavior?
It should open the MR correctly
Relevant logs and/or screenshots
log from 'GitLab: Show extension logs'
[error]: {
"userMessage": "The extension failed to preload discussions on the MR diff.\n It's possible that you've encountered\n https://gitlab.com/gitlab-org/gitlab/-/issues/298827.",
"errorMessage": "Field 'url' doesn't exist on type 'Note': {\"response\":{\"errors\":[{\"message\":\"Field 'url' doesn't exist on type 'Note'\",\"locations\":[{\"line\":35,\"column\":5}],\"path\":[\"fragment noteDetails\",\"url\"],\"extensions\":{\"code\":\"undefinedField\",\"typeName\":\"Note\",\"fieldName\":\"url\"}}],\"status\":200,\"headers\":{}},\"request\":{\"query\":\"\\n \\n \\n \\n \\n fragment position on Note {\\n position {\\n diffRefs {\\n baseSha\\n headSha\\n startSha\\n }\\n filePath\\n positionType\\n newLine\\n oldLine\\n newPath\\n oldPath\\n positionType\\n }\\n }\\n\\n fragment noteDetails on Note {\\n id\\n createdAt\\n system\\n author {\\n avatarUrl\\n name\\n username\\n webUrl\\n }\\n body\\n bodyHtml\\n url\\n userPermissions {\\n resolveNote\\n adminNote\\n createNote\\n }\\n ...position\\n }\\n\\n fragment discussionDetails on Discussion {\\n replyId\\n createdAt\\n resolved\\n resolvable\\n notes {\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n nodes {\\n ...noteDetails\\n }\\n }\\n }\\n\\n fragment discussions on DiscussionConnection {\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n nodes {\\n ...discussionDetails\\n }\\n }\\n\\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\\n project(fullPath: $projectPath) {\\n id\\n mergeRequest(iid: $iid) {\\n discussions(after: $afterCursor) {\\n ...discussions\\n }\\n }\\n }\\n }\\n\",\"variables\":{\"projectPath\":\"dev/ProjectName\",\"iid\":\"731\"}}}",
"stack": [
"Error: Field 'url' doesn't exist on type 'Note': {\"response\":{\"errors\":[{\"message\":\"Field 'url' doesn't exist on type 'Note'\",\"locations\":[{\"line\":35,\"column\":5}],\"path\":[\"fragment noteDetails\",\"url\"],\"extensions\":{\"code\":\"undefinedField\",\"typeName\":\"Note\",\"fieldName\":\"url\"}}],\"status\":200,\"headers\":{}},\"request\":{\"query\":\"\\n \\n \\n \\n \\n fragment position on Note {\\n position {\\n diffRefs {\\n baseSha\\n headSha\\n startSha\\n }\\n filePath\\n positionType\\n newLine\\n oldLine\\n newPath\\n oldPath\\n positionType\\n }\\n }\\n\\n fragment noteDetails on Note {\\n id\\n createdAt\\n system\\n author {\\n avatarUrl\\n name\\n username\\n webUrl\\n }\\n body\\n bodyHtml\\n url\\n userPermissions {\\n resolveNote\\n adminNote\\n createNote\\n }\\n ...position\\n }\\n\\n fragment discussionDetails on Discussion {\\n replyId\\n createdAt\\n resolved\\n resolvable\\n notes {\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n nodes {\\n ...noteDetails\\n }\\n }\\n }\\n\\n fragment discussions on DiscussionConnection {\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n nodes {\\n ...discussionDetails\\n }\\n }\\n\\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\\n project(fullPath: $projectPath) {\\n id\\n mergeRequest(iid: $iid) {\\n discussions(after: $afterCursor) {\\n ...discussions\\n }\\n }\\n }\\n }\\n\",\"variables\":{\"projectPath\":\"dev/ProjectName\",\"iid\":\"731\"}}}",
"\tat c:\\Users\\username\\.vscode\\extensions\\gitlab.gitlab-workflow-3.41.1\\out\\extension.js:31:15173",
"\tat o (c:\\Users\\username\\.vscode\\extensions\\gitlab.gitlab-workflow-3.41.1\\out\\extension.js:31:10042)",
"\tat Object.next (c:\\Users\\username\\.vscode\\extensions\\gitlab.gitlab-workflow-3.41.1\\out\\extension.js:31:9346)",
"\tat p (c:\\Users\\username\\.vscode\\extensions\\gitlab.gitlab-workflow-3.41.1\\out\\extension.js:31:8906)",
"\tat processTicksAndRejections (internal/process/task_queues.js:93:5)"
]
}
[error]: Field 'url' doesn't exist on type 'Note': {"response":{"errors":[{"message":"Field 'url' doesn't exist on type 'Note'","locations":[{"line":35,"column":5}],"path":["fragment noteDetails","url"],"extensions":{"code":"undefinedField","typeName":"Note","fieldName":"url"}}],"status":200,"headers":{}},"request":{"query":"\n \n \n \n \n fragment position on Note {\n position {\n diffRefs {\n baseSha\n headSha\n startSha\n }\n filePath\n positionType\n newLine\n oldLine\n newPath\n oldPath\n positionType\n }\n }\n\n fragment noteDetails on Note {\n id\n createdAt\n system\n author {\n avatarUrl\n name\n username\n webUrl\n }\n body\n bodyHtml\n url\n userPermissions {\n resolveNote\n adminNote\n createNote\n }\n ...position\n }\n\n fragment discussionDetails on Discussion {\n replyId\n createdAt\n resolved\n resolvable\n notes {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...noteDetails\n }\n }\n }\n\n fragment discussions on DiscussionConnection {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...discussionDetails\n }\n }\n\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\n project(fullPath: $projectPath) {\n id\n mergeRequest(iid: $iid) {\n discussions(after: $afterCursor) {\n ...discussions\n }\n }\n }\n }\n","variables":{"projectPath":"dev/ProjectName","iid":"731"}}}
Error: Field 'url' doesn't exist on type 'Note': {"response":{"errors":[{"message":"Field 'url' doesn't exist on type 'Note'","locations":[{"line":35,"column":5}],"path":["fragment noteDetails","url"],"extensions":{"code":"undefinedField","typeName":"Note","fieldName":"url"}}],"status":200,"headers":{}},"request":{"query":"\n \n \n \n \n fragment position on Note {\n position {\n diffRefs {\n baseSha\n headSha\n startSha\n }\n filePath\n positionType\n newLine\n oldLine\n newPath\n oldPath\n positionType\n }\n }\n\n fragment noteDetails on Note {\n id\n createdAt\n system\n author {\n avatarUrl\n name\n username\n webUrl\n }\n body\n bodyHtml\n url\n userPermissions {\n resolveNote\n adminNote\n createNote\n }\n ...position\n }\n\n fragment discussionDetails on Discussion {\n replyId\n createdAt\n resolved\n resolvable\n notes {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...noteDetails\n }\n }\n }\n\n fragment discussions on DiscussionConnection {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...discussionDetails\n }\n }\n\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\n project(fullPath: $projectPath) {\n id\n mergeRequest(iid: $iid) {\n discussions(after: $afterCursor) {\n ...discussions\n }\n }\n }\n }\n","variables":{"projectPath":"dev/ProjectName","iid":"731"}}}
at c:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1\out\extension.js:31:15173
at o (c:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1\out\extension.js:31:10042)
at Object.next (c:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1\out\extension.js:31:9346)
at p (c:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1\out\extension.js:31:8906)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
[error]: {
"userMessage": "The extension failed to preload discussions on the MR diff.\n It's possible that you've encountered\n https://gitlab.com/gitlab-org/gitlab/-/issues/298827.",
"errorMessage": "Field 'url' doesn't exist on type 'Note': {\"response\":{\"errors\":[{\"message\":\"Field 'url' doesn't exist on type 'Note'\",\"locations\":[{\"line\":35,\"column\":5}],\"path\":[\"fragment noteDetails\",\"url\"],\"extensions\":{\"code\":\"undefinedField\",\"typeName\":\"Note\",\"fieldName\":\"url\"}}],\"status\":200,\"headers\":{}},\"request\":{\"query\":\"\\n \\n \\n \\n \\n fragment position on Note {\\n position {\\n diffRefs {\\n baseSha\\n headSha\\n startSha\\n }\\n filePath\\n positionType\\n newLine\\n oldLine\\n newPath\\n oldPath\\n positionType\\n }\\n }\\n\\n fragment noteDetails on Note {\\n id\\n createdAt\\n system\\n author {\\n avatarUrl\\n name\\n username\\n webUrl\\n }\\n body\\n bodyHtml\\n url\\n userPermissions {\\n resolveNote\\n adminNote\\n createNote\\n }\\n ...position\\n }\\n\\n fragment discussionDetails on Discussion {\\n replyId\\n createdAt\\n resolved\\n resolvable\\n notes {\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n nodes {\\n ...noteDetails\\n }\\n }\\n }\\n\\n fragment discussions on DiscussionConnection {\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n nodes {\\n ...discussionDetails\\n }\\n }\\n\\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\\n project(fullPath: $projectPath) {\\n id\\n mergeRequest(iid: $iid) {\\n discussions(after: $afterCursor) {\\n ...discussions\\n }\\n }\\n }\\n }\\n\",\"variables\":{\"projectPath\":\"dev/ProjectName\",\"iid\":\"730\"}}}",
"stack": [
"Error: Field 'url' doesn't exist on type 'Note': {\"response\":{\"errors\":[{\"message\":\"Field 'url' doesn't exist on type 'Note'\",\"locations\":[{\"line\":35,\"column\":5}],\"path\":[\"fragment noteDetails\",\"url\"],\"extensions\":{\"code\":\"undefinedField\",\"typeName\":\"Note\",\"fieldName\":\"url\"}}],\"status\":200,\"headers\":{}},\"request\":{\"query\":\"\\n \\n \\n \\n \\n fragment position on Note {\\n position {\\n diffRefs {\\n baseSha\\n headSha\\n startSha\\n }\\n filePath\\n positionType\\n newLine\\n oldLine\\n newPath\\n oldPath\\n positionType\\n }\\n }\\n\\n fragment noteDetails on Note {\\n id\\n createdAt\\n system\\n author {\\n avatarUrl\\n name\\n username\\n webUrl\\n }\\n body\\n bodyHtml\\n url\\n userPermissions {\\n resolveNote\\n adminNote\\n createNote\\n }\\n ...position\\n }\\n\\n fragment discussionDetails on Discussion {\\n replyId\\n createdAt\\n resolved\\n resolvable\\n notes {\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n nodes {\\n ...noteDetails\\n }\\n }\\n }\\n\\n fragment discussions on DiscussionConnection {\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n nodes {\\n ...discussionDetails\\n }\\n }\\n\\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\\n project(fullPath: $projectPath) {\\n id\\n mergeRequest(iid: $iid) {\\n discussions(after: $afterCursor) {\\n ...discussions\\n }\\n }\\n }\\n }\\n\",\"variables\":{\"projectPath\":\"dev/ProjectName\",\"iid\":\"730\"}}}",
"\tat c:\\Users\\username\\.vscode\\extensions\\gitlab.gitlab-workflow-3.41.1\\out\\extension.js:31:15173",
"\tat o (c:\\Users\\username\\.vscode\\extensions\\gitlab.gitlab-workflow-3.41.1\\out\\extension.js:31:10042)",
"\tat Object.next (c:\\Users\\username\\.vscode\\extensions\\gitlab.gitlab-workflow-3.41.1\\out\\extension.js:31:9346)",
"\tat p (c:\\Users\\username\\.vscode\\extensions\\gitlab.gitlab-workflow-3.41.1\\out\\extension.js:31:8906)",
"\tat processTicksAndRejections (internal/process/task_queues.js:93:5)"
]
}
[error]: Field 'url' doesn't exist on type 'Note': {"response":{"errors":[{"message":"Field 'url' doesn't exist on type 'Note'","locations":[{"line":35,"column":5}],"path":["fragment noteDetails","url"],"extensions":{"code":"undefinedField","typeName":"Note","fieldName":"url"}}],"status":200,"headers":{}},"request":{"query":"\n \n \n \n \n fragment position on Note {\n position {\n diffRefs {\n baseSha\n headSha\n startSha\n }\n filePath\n positionType\n newLine\n oldLine\n newPath\n oldPath\n positionType\n }\n }\n\n fragment noteDetails on Note {\n id\n createdAt\n system\n author {\n avatarUrl\n name\n username\n webUrl\n }\n body\n bodyHtml\n url\n userPermissions {\n resolveNote\n adminNote\n createNote\n }\n ...position\n }\n\n fragment discussionDetails on Discussion {\n replyId\n createdAt\n resolved\n resolvable\n notes {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...noteDetails\n }\n }\n }\n\n fragment discussions on DiscussionConnection {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...discussionDetails\n }\n }\n\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\n project(fullPath: $projectPath) {\n id\n mergeRequest(iid: $iid) {\n discussions(after: $afterCursor) {\n ...discussions\n }\n }\n }\n }\n","variables":{"projectPath":"dev/ProjectName","iid":"730"}}}
Error: Field 'url' doesn't exist on type 'Note': {"response":{"errors":[{"message":"Field 'url' doesn't exist on type 'Note'","locations":[{"line":35,"column":5}],"path":["fragment noteDetails","url"],"extensions":{"code":"undefinedField","typeName":"Note","fieldName":"url"}}],"status":200,"headers":{}},"request":{"query":"\n \n \n \n \n fragment position on Note {\n position {\n diffRefs {\n baseSha\n headSha\n startSha\n }\n filePath\n positionType\n newLine\n oldLine\n newPath\n oldPath\n positionType\n }\n }\n\n fragment noteDetails on Note {\n id\n createdAt\n system\n author {\n avatarUrl\n name\n username\n webUrl\n }\n body\n bodyHtml\n url\n userPermissions {\n resolveNote\n adminNote\n createNote\n }\n ...position\n }\n\n fragment discussionDetails on Discussion {\n replyId\n createdAt\n resolved\n resolvable\n notes {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...noteDetails\n }\n }\n }\n\n fragment discussions on DiscussionConnection {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...discussionDetails\n }\n }\n\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\n project(fullPath: $projectPath) {\n id\n mergeRequest(iid: $iid) {\n discussions(after: $afterCursor) {\n ...discussions\n }\n }\n }\n }\n","variables":{"projectPath":"dev/ProjectName","iid":"730"}}}
at c:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1\out\extension.js:31:15173
at o (c:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1\out\extension.js:31:10042)
at Object.next (c:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1\out\extension.js:31:9346)
at p (c:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1\out\extension.js:31:8906)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
[error]: {
"userMessage": "The extension failed to preload discussions on the MR diff.\n It's possible that you've encountered\n https://gitlab.com/gitlab-org/gitlab/-/issues/298827.",
"errorMessage": "Field 'url' doesn't exist on type 'Note': {\"response\":{\"errors\":[{\"message\":\"Field 'url' doesn't exist on type 'Note'\",\"locations\":[{\"line\":35,\"column\":5}],\"path\":[\"fragment noteDetails\",\"url\"],\"extensions\":{\"code\":\"undefinedField\",\"typeName\":\"Note\",\"fieldName\":\"url\"}}],\"status\":200,\"headers\":{}},\"request\":{\"query\":\"\\n \\n \\n \\n \\n fragment position on Note {\\n position {\\n diffRefs {\\n baseSha\\n headSha\\n startSha\\n }\\n filePath\\n positionType\\n newLine\\n oldLine\\n newPath\\n oldPath\\n positionType\\n }\\n }\\n\\n fragment noteDetails on Note {\\n id\\n createdAt\\n system\\n author {\\n avatarUrl\\n name\\n username\\n webUrl\\n }\\n body\\n bodyHtml\\n url\\n userPermissions {\\n resolveNote\\n adminNote\\n createNote\\n }\\n ...position\\n }\\n\\n fragment discussionDetails on Discussion {\\n replyId\\n createdAt\\n resolved\\n resolvable\\n notes {\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n nodes {\\n ...noteDetails\\n }\\n }\\n }\\n\\n fragment discussions on DiscussionConnection {\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n nodes {\\n ...discussionDetails\\n }\\n }\\n\\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\\n project(fullPath: $projectPath) {\\n id\\n mergeRequest(iid: $iid) {\\n discussions(after: $afterCursor) {\\n ...discussions\\n }\\n }\\n }\\n }\\n\",\"variables\":{\"projectPath\":\"dev/ProjectName\",\"iid\":\"729\"}}}",
"stack": [
"Error: Field 'url' doesn't exist on type 'Note': {\"response\":{\"errors\":[{\"message\":\"Field 'url' doesn't exist on type 'Note'\",\"locations\":[{\"line\":35,\"column\":5}],\"path\":[\"fragment noteDetails\",\"url\"],\"extensions\":{\"code\":\"undefinedField\",\"typeName\":\"Note\",\"fieldName\":\"url\"}}],\"status\":200,\"headers\":{}},\"request\":{\"query\":\"\\n \\n \\n \\n \\n fragment position on Note {\\n position {\\n diffRefs {\\n baseSha\\n headSha\\n startSha\\n }\\n filePath\\n positionType\\n newLine\\n oldLine\\n newPath\\n oldPath\\n positionType\\n }\\n }\\n\\n fragment noteDetails on Note {\\n id\\n createdAt\\n system\\n author {\\n avatarUrl\\n name\\n username\\n webUrl\\n }\\n body\\n bodyHtml\\n url\\n userPermissions {\\n resolveNote\\n adminNote\\n createNote\\n }\\n ...position\\n }\\n\\n fragment discussionDetails on Discussion {\\n replyId\\n createdAt\\n resolved\\n resolvable\\n notes {\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n nodes {\\n ...noteDetails\\n }\\n }\\n }\\n\\n fragment discussions on DiscussionConnection {\\n pageInfo {\\n hasNextPage\\n endCursor\\n }\\n nodes {\\n ...discussionDetails\\n }\\n }\\n\\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\\n project(fullPath: $projectPath) {\\n id\\n mergeRequest(iid: $iid) {\\n discussions(after: $afterCursor) {\\n ...discussions\\n }\\n }\\n }\\n }\\n\",\"variables\":{\"projectPath\":\"dev/ProjectName\",\"iid\":\"729\"}}}",
"\tat c:\\Users\\username\\.vscode\\extensions\\gitlab.gitlab-workflow-3.41.1\\out\\extension.js:31:15173",
"\tat o (c:\\Users\\username\\.vscode\\extensions\\gitlab.gitlab-workflow-3.41.1\\out\\extension.js:31:10042)",
"\tat Object.next (c:\\Users\\username\\.vscode\\extensions\\gitlab.gitlab-workflow-3.41.1\\out\\extension.js:31:9346)",
"\tat p (c:\\Users\\username\\.vscode\\extensions\\gitlab.gitlab-workflow-3.41.1\\out\\extension.js:31:8906)",
"\tat runMicrotasks (<anonymous>)",
"\tat processTicksAndRejections (internal/process/task_queues.js:93:5)"
]
}
[error]: Field 'url' doesn't exist on type 'Note': {"response":{"errors":[{"message":"Field 'url' doesn't exist on type 'Note'","locations":[{"line":35,"column":5}],"path":["fragment noteDetails","url"],"extensions":{"code":"undefinedField","typeName":"Note","fieldName":"url"}}],"status":200,"headers":{}},"request":{"query":"\n \n \n \n \n fragment position on Note {\n position {\n diffRefs {\n baseSha\n headSha\n startSha\n }\n filePath\n positionType\n newLine\n oldLine\n newPath\n oldPath\n positionType\n }\n }\n\n fragment noteDetails on Note {\n id\n createdAt\n system\n author {\n avatarUrl\n name\n username\n webUrl\n }\n body\n bodyHtml\n url\n userPermissions {\n resolveNote\n adminNote\n createNote\n }\n ...position\n }\n\n fragment discussionDetails on Discussion {\n replyId\n createdAt\n resolved\n resolvable\n notes {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...noteDetails\n }\n }\n }\n\n fragment discussions on DiscussionConnection {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...discussionDetails\n }\n }\n\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\n project(fullPath: $projectPath) {\n id\n mergeRequest(iid: $iid) {\n discussions(after: $afterCursor) {\n ...discussions\n }\n }\n }\n }\n","variables":{"projectPath":"dev/ProjectName","iid":"729"}}}
Error: Field 'url' doesn't exist on type 'Note': {"response":{"errors":[{"message":"Field 'url' doesn't exist on type 'Note'","locations":[{"line":35,"column":5}],"path":["fragment noteDetails","url"],"extensions":{"code":"undefinedField","typeName":"Note","fieldName":"url"}}],"status":200,"headers":{}},"request":{"query":"\n \n \n \n \n fragment position on Note {\n position {\n diffRefs {\n baseSha\n headSha\n startSha\n }\n filePath\n positionType\n newLine\n oldLine\n newPath\n oldPath\n positionType\n }\n }\n\n fragment noteDetails on Note {\n id\n createdAt\n system\n author {\n avatarUrl\n name\n username\n webUrl\n }\n body\n bodyHtml\n url\n userPermissions {\n resolveNote\n adminNote\n createNote\n }\n ...position\n }\n\n fragment discussionDetails on Discussion {\n replyId\n createdAt\n resolved\n resolvable\n notes {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...noteDetails\n }\n }\n }\n\n fragment discussions on DiscussionConnection {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n ...discussionDetails\n }\n }\n\n query GetMrDiscussions($projectPath: ID!, $iid: String!, $afterCursor: String) {\n project(fullPath: $projectPath) {\n id\n mergeRequest(iid: $iid) {\n discussions(after: $afterCursor) {\n ...discussions\n }\n }\n }\n }\n","variables":{"projectPath":"dev/ProjectName","iid":"729"}}}
at c:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1\out\extension.js:31:15173
at o (c:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1\out\extension.js:31:10042)
at Object.next (c:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1\out\extension.js:31:9346)
at p (c:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1\out\extension.js:31:8906)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Possible fixes
It seems that the extension failed to parse the project id correctly. I try to open C:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.1
and replace regex \$\{\w+\.project_id\}
with my project id 438
, then I can see the pipeline result correctly, but the merge requests still can't be opened.
Edited by Tomas Vik (OOO back on 2024-08-12)