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

Đang mở
#262 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
50/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
cli, desktop

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Rust
Star
3.4k
Fork
224
Merge trung bình
34 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của claration/impactor

Tất cả issue của claration/impactor

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.