AnswerDotAI / AnswerDotAI/ghapi
Ouput from CLI frontend seems to drop structure
- Lingua principale
- Python
- Stelle
- 685
- Fork
- 70
- Merge medio
- 1m
- PR unite (30g)
- 2
Descrizione
If I do `ghapi orgs.list_members --org fastai` from the command line, the output I get is
```
[- login: hamelsmu
- id: 1483922
- node_id: MDQ6VXNlcjE0ODM5MjI=
- avatar_url: https://avatars.githubusercontent.com/u/1483922?v=4
- gravatar_id:
- url: https://api.github.com/users/hamelsmu
- html_url: https://github.com/hamelsmu
- followers_url: https://api.github.com/users/hamelsmu/followers
- following_url: https://api.github.com/users/hamelsmu/following{/other_user}
- gists_url: https://api.github.com/users/hamelsmu/gists{/gist_id}
- starred_url: https://api.github.com/users/hamelsmu/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/hamelsmu/subscriptions
- organizations_url: https://api.github.com/users/hamelsmu/orgs
- repos_url: https://api.github.com/users/hamelsmu/repos
- events_url: https://api.github.com/users/hamelsmu/events{/privacy}
- received_events_url: https://api.github.com/users/hamelsmu/received_events
- type: User
- site_admin: True, - login: jph00
- id: 346999
- node_id: MDQ6VXNlcjM0Njk5OQ==
- avatar_url: https://avatars.githubusercontent.com/u/346999?v=4
- gravatar_id:
- url: https://api.github.com/users/jph00
- html_url: https://github.com/jph00
- followers_url: https://api.github.com/users/jph00/followers
- following_url: https://api.github.com/users/jph00/following{/other_user}
- gists_url: https://api.github.com/users/jph00/gists{/gist_id}
- starred_url: https://api.github.com/users/jph00/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/jph00/subscriptions
- organizations_url: https://api.github.com/users/jph00/orgs
- repos_url: https://api.github.com/users/jph00/repos
- events_url: https://api.github.com/users/jph00/events{/privacy}
- received_events_url: https://api.github.com/users/jph00/received_events
- type: User
- site_admin: False, - login: racheltho
- id: 2602738
- node_id: MDQ6VXNlcjI2MDI3Mzg=
- avatar_url: https://avatars.githubusercontent.com/u/2602738?v=4
- gravatar_id:
- url: https://api.github.com/users/racheltho
- html_url: https://github.com/racheltho
- followers_url: https://api.github.com/users/racheltho/followers
- following_url: https://api.github.com/users/racheltho/following{/other_user}
- gists_url: https://api.github.com/users/racheltho/gists{/gist_id}
- starred_url: https://api.github.com/users/racheltho/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/racheltho/subscriptions
- organizations_url: https://api.github.com/users/racheltho/orgs
- repos_url: https://api.github.com/users/racheltho/repos
- events_url: https://api.github.com/users/racheltho/events{/privacy}
- received_events_url: https://api.github.com/users/racheltho/received_events
- type: User
- site_admin: False]
```
As you can see, the data for *all* users in mangled into a single flat list. I assume this is not correct, as we should get something like an array of maps where each user is a separate entry.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci il problema con `ghapi orgs.list_members --org fastai` e ispeziona il percorso di output della CLI che formatta gli utenti restituiti. Conferma che ogni utente venga emesso come una map separata in un array anziché come un’unica lista appiattita, quindi verifica che il comando produca la struttura annidata prevista.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api, cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100