Skip to content

Review comments are missing in description view on GH Enterprise #908

Description

@rebornix

Issue Type: Bug

I manually force the extension to use REST API on Enterprise. Review Comments are missing

  • Current *

image

  • Before *

image

Extension version: 1.31.0
VS Code version: Code - Insiders 1.31.0-insider (8f56013e8f66650c1b0b65cc5c502691e307db21, 2019-02-01T18:28:27.157Z)
OS version: Darwin x64 18.2.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (8 x 2200)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 3
Memory (System) 16.00GB (0.43GB free)
Process Argv -psn_0_3179272
Screen Reader no
VM 0%

Activity

  1. added a commit that references this issue on Feb 1, 2019
    fb4cba7
  2. RMacfarlane commented on Feb 6, 2019

    @RMacfarlane
    Contributor

    fixed by #910

  3. yulrizka commented on Oct 13, 2019

    @yulrizka
    Contributor

    Rachel Macfarlane (@RMacfarlane), Is adding comments in a pending review for Github Enterprise not supported?

    I tried to play around to make it work, I managed to create pending 'Review' by using octokit.
    but got error while trying to add comment.

    user_id can only have one pending review per pull request
    

    or it should use a different API?

  4. RMacfarlane commented on Oct 14, 2019

    @RMacfarlane
    Contributor

    Ahmy Yulrizka (@yulrizka) It should be, though it's possible it's not in older versions.

    There are several different versions of GitHub's API - the REST one that octokit uses (v3), and a new graphql one(v4). The v3 version doesn't support adding comments to pending reviews, you have to create the review all at once. So we're using the v4 version for adding pending comments instead:

    async createComment(pullRequest: PullRequestModel, body: string, commentPath: string, position: number): Promise<IComment | undefined> {

    When the extension first starts, it tries to detect if the current repository supports the v4 API or not. Some things have been added to the v4 API over time, so what I'm not sure about is if there's a GitHub Enterprise version that has graphql support, but not that feature

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

Metadata

Metadata

Labels

GitHubEnterprisebugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priority

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions