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

Aperta
#262 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli, desktop

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Rust
Stelle
3.4k
Fork
224
Merge medio
34m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di claration/impactor

Tutte le issue di claration/impactor

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.