[Bug] `sign` breaks on multi-team accounts

未关闭
#262 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
50/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust
领域
cli, desktop

调研方向

Start in the sign command's code path where teams() is called unconditionally, then check the team-ID matching it feeds. The GUI side is store.rs around line 166 and gsa_account.rs around line 62, where teams_response.teams[0] is picked by default. Done means a non-TTY sign on a multi-team account no longer prompts, a --team option is accepted, and the GUI default is either explicit or surfaced to the user; the GUI behaviour needs a maintainer decision first.

由索引模型根据 Issue 内容生成。

描述

bug
Report

I'm assuming given the intended use case this isn't common, but I have multiple teams on one account.
sign calls teams() unconditionally which triggers an interaction on a multi-team account and dies in a non-TTY context.

Adding a --team option to sign to pass a team ID (then using it via match where team_id is set right now) fixes non-TTY use.


On the GUI side (store.rs:166/gsa_account.rs:62):

teams_response.teams[0].team_id.clone()

That makes the GUI default to whatever happens to be first, which in my case also would not be great, it'd pick a professional team for signing. I saw you can set/change the team in settings but there's nothing that tells you it made a default decision and you might want/need to check the setting.

Contributor Checks
  • I am willing to attempt to make a pull request to fix this bug
Additional Information
  • Developer mode enabled
  • Using paid developer account
  • I will send an ipa of the app I'm having trouble installing if any
  • I'm willing to provide crash logs or debugging information if needed
主要语言
Rust
星标
3.4k
派生
224
平均合并
34 分钟
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

claration/impactor 的其他 Issue

查看 claration/impactor 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。