`show-names` fails if one username errors
Description
Show names is hitting a bot user without a login, causing all of show names to fail. Happy to open a PR, but it's not clear to me if we should filter out the GHE bot user or not fail on GraphQL error or both. At a quick glance of show names, I didn't see where we filtered out bot users, outside of ghost.
Sample response where not_a_login is the bot user without a login. The path to their account is <ghe_base>/github-apps/not_a_login. They also have the bot tag next to their comment.
{"data":{"_bob":{"name":"Bob"},"_not_a_login":null},"errors":[{"type":"NOT_FOUND","path":["_not_a_login"],"locations":[{"line":1,"column":84}],"message":"Could not resolve to a User with the login of 'not_a_login'."}]}
How to replicate the issue + URL
Couldn't find a public URL to test it on, as bots don't follow the same format.
Extension version
25.4.8
Browser(s) used
Firefox
Token ⚠️
- [x] I set a token in the options page. I understand that some features require a token to work.
Bots are filtered out in the selector itself if I remember correctly; you can add that new URL there
That's what I thought, but I didn't find it at first glance. Opened this to also remind me to look into it further :)
The path to their account is
<ghe_base>/github-apps/not_a_login.
What's github-apps though? Is it by GHE or is it specific to your own GHE setup?
https://github.com/github-apps doesn't exist, only https://github.com/apps does
cc @busches
Bots are filtered out in the selector itself if I remember correctly
https://github.com/refined-github/refined-github/blob/1f6ec8a24faa3a489001c843e50d31314a6244da/source/github-helpers/selectors.ts#L209-L217
That was the list I was looking for, I'll get a PR up for it later, thanks!
What's github-apps though? Is it by GHE or is it specific to your own GHE setup?
Not clear, I can't go to just /github-apps and the app itself is under it /github-apps/<the app>. I'm not a GHE Admin to see if that's something they customized or where they happen to go for all GHE self hosted installs. I didn't see anything in the GHE docs about the url.
I found a few spots that reference /github-apps in the documentation. Here's one, https://docs.github.com/en/[email protected]/apps/using-github-apps/installing-a-github-app-from-a-third-party, so it does look like it's a standard. I'll get a PR up here in a few.
FYI both of the accounts are me.
😂 I didn't read the name