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

Can't start a review from a comment due to GraphQL error

Open yoavbls opened this issue 2 years ago • 45 comments

When starting a review from a comment:

A GraphQL error appears:

2024-11-09 22:52:00.572 [error] GitHubRepository+0> Error querying GraphQL API: GraphQL error: Fragment ReviewComment was used, but not defined. useAndDefineFragment
2024-11-09 22:52:00.572 [error] PullRequestModel> Failed to get pull request review comments: Error: GraphQL error: Fragment ReviewComment was used, but not defined

I thought it related to this: https://github.com/microsoft/vscode-pull-request-github/issues/6441 but it happens also in the pre-release version

  • Extension version: v0.100.1
  • VSCode Version: 1.95.2
  • OS: macOS
  • Repository Clone Configuration (single repository/fork of an upstream repository): Private repository
  • Github Product (Github.com/Github Enterprise version x.x.x): Github.com

Steps to Reproduce:

  1. Write a comment
  2. Click on "Start Review"

yoavbls avatar Nov 09 '24 21:11 yoavbls

Update: it also affects the load of existing comments. Everything is fine in the version of November 5 so I think it is this change that moves the fragment out of reach of the query: https://github.com/microsoft/vscode-pull-request-github/commit/843497347738856383fa5e7c93470de7ec6c5f51

yoavbls avatar Nov 09 '24 21:11 yoavbls

Yup I have the same problem

valajczech avatar Nov 10 '24 09:11 valajczech

Same problem.

BenGale avatar Nov 10 '24 10:11 BenGale

Same issue

christianvari avatar Nov 10 '24 12:11 christianvari

same. I also can't leave one off comments

DavidLangva avatar Nov 10 '24 14:11 DavidLangva

Same

michel-smarticket avatar Nov 10 '24 15:11 michel-smarticket

same

YashBhardwajAdpushup avatar Nov 11 '24 06:11 YashBhardwajAdpushup

Workaround, rollback to older version locally: Right click the extension in the marketplace tab, select "Install Specific Version", and pick v0.100.0.

koliyo avatar Nov 11 '24 08:11 koliyo

thanks @koliyo

consdu avatar Nov 11 '24 08:11 consdu

I have the same issue - confirmed the workaround works for me.

jpomfret avatar Nov 11 '24 10:11 jpomfret

@koliyo Thanks - that fixed it for me as well.

ptraeg avatar Nov 11 '24 18:11 ptraeg

Same problem for me as well. Workaround fixed it.

tristanbiesecker avatar Nov 11 '24 20:11 tristanbiesecker

Same problem for me as well

jacobharrison93 avatar Nov 11 '24 23:11 jacobharrison93

Same for me, the workaround fixed it.

MatthewKelseyRT avatar Nov 12 '24 13:11 MatthewKelseyRT

Same problem. The workaround avoids the issue.

JoeLyga avatar Nov 12 '24 16:11 JoeLyga

Same problem for me.

jirihon avatar Nov 12 '24 18:11 jirihon

Same problem for me.

ian-blankinship-FHR avatar Nov 12 '24 21:11 ian-blankinship-FHR

Rolling back to v0.100.0 fixed it, thanks @koliyo!

assafmo avatar Nov 13 '24 07:11 assafmo

Add me to this list as well

Image

Shamik-07 avatar Nov 13 '24 11:11 Shamik-07

Same

dwillhelm avatar Nov 13 '24 17:11 dwillhelm