After the org’s SSO switch, the LHS counts for the GH plugin were not showing. It seems there is a problem with continuing use of the OAuth token. Reconnecting fixes the issue, though users that have not reconnected cause this error in the logs:
{
"msg":"Failed to search for assignments",
"error":"GET https://api.github.com/search/issues?q=is%3Aopen++archived%3Afalse+org%3Amattermost: 422 Validation Failed [{Resource:Search Field:q Code:invalid Message:The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.}]"
}
Potential solution
Have checks in place for errors
Treat tokens as revoked/expired and ask user to reconnect
After the org’s SSO switch, the LHS counts for the GH plugin were not showing. It seems there is a problem with continuing use of the OAuth token. Reconnecting fixes the issue, though users that have not reconnected cause this error in the logs:
Potential solution
Jira: https://mattermost.atlassian.net/browse/MM-52262