vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Cannot review PRs with 0.78.0 / VSCode 1.85.0, "GraphQL error: Field 'mergeQueueEntry' doesn't exist

Open janakjjp opened this issue 2 years ago • 10 comments

  • Extension version: 0.78.0
  • VSCode Version: 1.85.0
  • OS: macOS Sonoma 14.1.2
  • Repository Clone Configuration (single repository/fork of an upstream repository): N/A (doing pull requests on a single repo)
  • Github Product (Github.com/Github Enterprise version x.x.x): GHE 3.7.0 (on-prem)

Steps to Reproduce:

  1. Update the extension and VSCode to the aforementioned versions
  2. Go to the Pull Request view
  3. Receive the error Fetching pull requests failed: GraphQL error: Field 'mergeQueueEntry' doesn't exist on type 'PullRequest' GraphQL error: No such type MergeQueueEntry, so it can't be a fragment condition
  4. I do not see listed under "Waiting For My Review."

(Is this a dependency on a newer version of GitHub/GHE?)

janakjjp avatar Dec 11 '23 21:12 janakjjp

Reverting to v0.76.1 fixes the issue.

janakjjp avatar Dec 11 '23 21:12 janakjjp

My settings.json shows, for the queries section:

  "githubPullRequests.queries": [
    {
      "label": "Waiting For My Review",
      "query": "is:open user-review-requested:${user}"
    },
    {
      "label": "Waiting For Team Review",
      "query": "is:open review-requested:${user} draft:false"
    },
    {
      "label": "Assigned To Me",
      "query": "is:open assignee:${user}"
    },
    {
      "label": "Created By Me",
      "query": "is:open author:${user}"
    }
  ],

janakjjp avatar Dec 11 '23 21:12 janakjjp

Yes, looks like this isn't available in your version of GHE.

alexr00 avatar Dec 12 '23 16:12 alexr00

@janakjjp I'm not able to reproduce this issue. I've made a possible fix and it is available in the pre-release build. Would you be able to try out the latest pre-release build and see if the issue still occurs there.

alexr00 avatar Dec 13 '23 09:12 alexr00

@janakjjp I'm not able to reproduce this issue. I've made a possible fix and it is available in the pre-release build. Would you be able to try out the latest pre-release build and see if the issue still occurs there.

I can confirm the newest pre-release works!

janakjjp avatar Dec 13 '23 15:12 janakjjp

@janakjjp that's great news! Thank you for trying it out. I will include the fix in the recovery release this week.

alexr00 avatar Dec 13 '23 16:12 alexr00

Nice, thanks, using pre-release version fixes for me too! (on Windows 11) For those who didn't know how to switch to pre-release (see screenshot below)

  • Open your VS Code extensions panel; find the VSCode Pull Request extension listed therein
  • Click on the gear/settings icon to open menu
  • In menu choose "Switch to Pre-Release Version" image

theredpea avatar Jan 12 '24 23:01 theredpea

GitHub Enterprise Server 3.9.10

image

Sign in only one github enterprise account.

maicss avatar Mar 07 '24 06:03 maicss

I'm not able to reproduce this. Are you somehow also signed in with a non-enterprise GH account?

alexr00 avatar Mar 20 '24 10:03 alexr00

I'm not able to reproduce this. Are you somehow also signed in with a non-enterprise GH account?

Sorry, I cannot reproduce this too, because two weeks passed by, and I have tried again, it works fine. Thanks.

maicss avatar Mar 21 '24 06:03 maicss