[BUG] Plugin tries connection for non-connected users
还没有人认领这个 Issue。
评估
调研方向
从 app/plugin_api.go:1127 开始,这里会记录获取 GitHub 用户信息失败的日志,并追踪对于尚未完成 /github connect 流程的用户,哪些后台调用方会到达这里。使用一个未连接的用户复现该行为,并检查由此产生的 API 调用和错误。完成标准是处理掉非预期的尝试和嘈杂的错误,并更新或添加相关测试。
由索引模型根据 Issue 内容生成。
描述
We are seeing an error in which the plugin is trying to connect users who haven't initiated the connection with slash command (/github connect) in our Grafana
{"MESSAGE":"error [2026-04-15 09:46:00.836 +02:00] failed to get GitHub user info
caller=\"app/plugin_api.go:1127\"
plugin_id=github
error=\"Must connect user account to GitHub first.\"
userid=[REDACTED]"
[....]}
Should it be trying this in the background for people who don't want to connect/haven't connected their user accounts?
Or is this error someone who tried to connect an account than either disconnected it or didn't finish the connection?
Either way, it's generating a lot of errors and API calls.
- 主要语言
- Go
- 星标
- 181
- 派生
- 180
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mattermost/mattermost-plugin-github 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 55/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 35/100
mattermost/mattermost-plugin-github#937 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 48/100
查看 mattermost/mattermost-plugin-github 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
puppe1990/amarra-cais#355 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 72/100
Gentleman-Programming/engram#1899 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
security
难度 2/5 1-3 小时 新手友好度 64/100
SocialGouv/iterion#2483 ·
维护者通常 1 天内回复