AnswerDotAI / AnswerDotAI/ghapi
Ouput from CLI frontend seems to drop structure
- Vorherrschende Sprache
- Python
- Sterne
- 685
- Forks
- 70
- Ø Merge
- 1 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
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.
Beitragsleitfaden
Rechercherichtung
Reproduziere das Problem mit `ghapi orgs.list_members --org fastai` und untersuche den CLI-Ausgabepfad, der die zurückgegebenen Benutzer formatiert. Bestätige, dass jeder Benutzer als separate Map in einem Array ausgegeben wird und nicht als eine einzige abgeflachte Liste, und überprüfe anschließend, dass der Befehl die erwartete verschachtelte Struktur erzeugt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api, cli
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100