mattermost-plugin-gitlab
mattermost-plugin-gitlab copied to clipboard
Webhooks don't always resolve username
Creating tags and issues yields the following:

It seems as if
https://github.com/mattermost/mattermost-plugin-gitlab/blob/442334dbe0ec95127d7d7f50330aaea3adbbe71a/server/webhook/tag.go#L43
goes awry. couldn't it just use UserName directly?
GetUsernameByID goes through https://github.com/mattermost/mattermost-plugin-gitlab/blob/442334dbe0ec95127d7d7f50330aaea3adbbe71a/server/plugin.go#L208-L214
and seems to ask mattermost itself for an id mapping?
Interesting, after executing /gitlab settings notifications on the username is resolved properly. Nevertheless I do not think this is the expected behavior and this KV-mapping shouldn't be used?
Currently blocked by https://github.com/xanzy/go-gitlab/pull/1183