AnswerDotAI / AnswerDotAI/ghapi

Ouput from CLI frontend seems to drop structure

Abierto
#72 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
685
Forks
70
Merge medio
1 min
PR fusionados (30 d)
2

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce el problema con `ghapi orgs.list_members --org fastai` e inspecciona la ruta de salida de la CLI que da formato a los usuarios devueltos. Confirma que cada usuario se emite como un mapa separado en un array, en lugar de como una única lista aplanada, y verifica después que el comando produce la estructura anidada esperada.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
api, cli
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.