-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange avatar is displayed for GitHub Enterprise #2771
Comments
@think120 I made some changes that may fix this issue this week. Would you be willing to try the nightly build of this extension (id is github.vscode-pull-request-github-insiders)? You'll need to disable the stable extension to use the nightly build. |
@alexr00 , I've tested the nightly build, |
Thanks for testing this @think120. I've found the source of the bug for the other avatar locations. There will be a new nightly build on Monday. If you could test again with that upcoming build and comment back here about whether the bug is fixed that would be very helpful! |
@alexr00, I've upgraded the nightly build of this extension to v2021.6.19263, but the issue 2 and 3 still exist. Does that build include your fix? Many thanks! I've done some additional test in the "Pull Request Description" page, as shown in the picture below: |
Yes, that build has (what I thought would be) the fix. Thanks for testing this out. |
@alexr00 , many thanks for your quick fix! Now, only the " Also noticed the avatar for the user left a comment also can't be displayed. |
@think120 It's not clear to me what could be causing that last one, since based on your other images I would expect either the weird avatar or the correct avatar. I'm going to leave this as is for now since I don't have an enterprise setup to test with. Thank you for all your testing! |
The weird avatars were a purposeful fallback choice for the enterprise integration. The icon was generated from the Gravatar service since unauthenticated requests to the GHE avatar service is likely disabled for most. If your GHE email didn't exist in the Gravatar service, the default was set to the "retro" generated default. Perhaps I should have implemented this feature behind a feature flag, but now we've regressed back to having no avatars for enterprise, which make me sad. |
I've also seen the 404 image shown in example 4. These usually come from DOM updates to the webview instead of a full refresh, so some action is inserting a DOM image node that likely assumes a GitHub.com repo instead of GHE. |
And that 404 image is only for "delete branch" operation. |
@kabel are you saying that even for enterprise users who have an avatar we now show the wrong thing? If that's the case, I'll just revert the changes I made, call it a day, and not touch enterprise again. |
@kabel , vscode-pull-request-github/webviews/components/user.tsx Lines 10 to 17 in 8870a3c
This part? |
@kabel sorry about the enterprise avatar regression, and thank you for your interest in making Gravatar use configurable. I would love to accept a PR for that. |
The avatar of the Pull Request in GitHub Enterprise is strange in "GitHub" and "GitHub Pull Request" tab, as shown in the picture below:
Looks like it is because in the following postion,
this.pullRequestModel.userAvatarUri
is used instead ofnew vscode.ThemeIcon('github')
vscode-pull-request-github/src/view/treeNodes/pullRequestNode.ts
Lines 266 to 269 in 565d4e6
The text was updated successfully, but these errors were encountered: