Skip to content

GitHub Enterprise GraphQL Schema needs to be considered before querying for new-ish fields #2772

Closed

Description

@kabel

Copied from microsoft/vscode#115940 (comment):

I can see the list of PRs but clicking on the dropdown shows nothing.

Extension output is as follows:

[Info] Failed to get pull request review comments: Error: GraphQL error: Field 'path' doesn't exist on type 'PullRequestReviewThread'
GraphQL error: Field 'isOutdated' doesn't exist on type 'PullRequestReviewThread'
[Info] Error: GraphQL error: Field 'viewerViewedState' doesn't exist on type 'PullRequestChangedFile'
[Info] Failed to get pull request review comments: Error: GraphQL error: Field 'path' doesn't exist on type 'PullRequestReviewThread'
GraphQL error: Field 'isOutdated' doesn't exist on type 'PullRequestReviewThread'
[Info] Error: GraphQL error: Field 'viewerViewedState' doesn't exist on type 'PullRequestChangedFile'
[Info] Failed to get pull request review comments: Error: GraphQL error: Field 'path' doesn't exist on type 'PullRequestReviewThread'
GraphQL error: Field 'isOutdated' doesn't exist on type 'PullRequestReviewThread'
[Info] Error: GraphQL error: Field 'viewerViewedState' doesn't exist on type 'PullRequestChangedFile'

Github Authentification Output:

[Info  - 09:22:45.590] Getting user info...
[Info  - 09:22:46.204] Got account info!

Enterprise version is: v2.22.4

Kevin Abel (@kabel) do you know why the above errors are happening? Is GHEP now out of sync with the extension again?

Copied from microsoft/vscode#115940 (comment):

I had similar errors on our GHE instance. Based on the change log, these fields were introduced on 2020-09-23. I guess you have to upgrade the GHE to a version after that.

Activity

  1. kabel commented on Jun 11, 2021

    @kabel
    ContributorAuthor

    When I have a spare moment, I'll try to see what the effort would be to actually query the schema information at activation to ensure we know exactly what types are available to the GitHub.com and GitHub Enterprise API endpoint.

  2. alexr00 commented on Jun 14, 2021

    @alexr00
    Member

    Thanks for looking into this Kevin Abel (@kabel)!

  3. added this to the Backlog milestone on Jun 14, 2021
  4. jonnyyu commented on Sep 24, 2021

    @jonnyyu

    Hi, is there any progress on this?

    I met the same error here with Git Enterprise

    [Info] Failed to get pull request review comments: Error: GraphQL error: Field 'path' doesn't exist on type 'PullRequestReviewThread'
    GraphQL error: Field 'isOutdated' doesn't exist on type 'PullRequestReviewThread'
    [Info] Failed to get pull request review comments: Error: GraphQL error: Field 'path' doesn't exist on type 'PullRequestReviewThread'
    GraphQL error: Field 'isOutdated' doesn't exist on type 'PullRequestReviewThread'
    [Info] Failed to get pull request review comments: Error: GraphQL error: Field 'path' doesn't exist on type 'PullRequestReviewThread'
    GraphQL error: Field 'isOutdated' doesn't exist on type 'PullRequestReviewThread'
    [Info] Failed to get pull request review comments: Error: GraphQL error: Field 'path' doesn't exist on type 'PullRequestReviewThread'
    GraphQL error: Field 'isOutdated' doesn't exist on type 'PullRequestReviewThread'
    [Info] Review> Error: GraphQL error: Field 'viewerViewedState' doesn't exist on type 'PullRequestChangedFile'
    [Info] Failed to get pull request review comments: Error: GraphQL error: Field 'path' doesn't exist on type 'PullRequestReviewThread'
    GraphQL error: Field 'isOutdated' doesn't exist on type 'PullRequestReviewThread'
    [Info] Failed to get pull request review comments: Error: GraphQL error: Field 'path' doesn't exist on type 'PullRequestReviewThread'
    GraphQL error: Field 'isOutdated' doesn't exist on type 'PullRequestReviewThread'
    [Info] Review> Error: GraphQL error: Field 'viewerViewedState' doesn't exist on type 'PullRequestChangedFile
    
  5. proof666 commented on Oct 5, 2021

    @proof666

    Hi, same error with GHE. Any plans on this issue?

  6. added
    feature-request
    on Nov 22, 2021
  7. jasonwilliams commented on Nov 26, 2021

    @jasonwilliams

    Hey Kevin Abel (@kabel)
    Do you know how fixable this is? Sadly there's still many of us stuck on GHE v2

  8. kabel commented on Dec 1, 2021

    @kabel
    ContributorAuthor

    Sadly, I have not had free time to explore this more and won't have older GHE instances to work with. The recommendation remains to get current with the supported versions.

    It's only really feasible if we can decouple the interface features that rely on these object fields. Even that, I have not looked into.

  9. AntonioL commented on May 6, 2022

    @AntonioL

    Kevin Abel (@kabel) Can you please document which one is the minimum version of GHE compatible with the extension? It is not documented anywhere

  10. alexr00 commented on Sep 19, 2022

    @alexr00
    Member

    Hi folks, I've tested with GitHub Enterprise version 3.2-3.5 and now I'm going through old issues. Version 3.2 is the oldest supported version from GitHub (https://docs.github.com/en/[email protected]/admin/all-releases), so it's the oldest I've tested with. If you use GitHub Enterprise with this extension, I recommend trying out the pre-release version of the extension for the next couple weeks as there are improvements to Enterprise support there. I will document the current Enterprise support before releasing the next minor version of the extension.

    In the mean time, I'm closing this issue as it doesn't occur with 3.2+ of GitHub Enterprise. If you're still seeing this issue, please do comment with your GitHub Enterprise version so I can understand how much demand there is for supporting deprecated versions. If anyone's still hitting this problem I'll reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GitHubEnterprisefeature-request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions