Skip to content

Github4s not returning complete information about members of an organization #568

Open

Description

@muunaar

I'm working with Github4s in order to retrieve the list of members of an organization name given.
I'm using v3
I'm getting the result as follows :
User(1550710,tues,https://avatars3.githubusercontent.com/u/1550710?v=4,https://github.com/tues,None,None,None,None,None,None,Some(https://api.github.com/users/tues/followers),Some(https://api.github.com/users/tues/following{/other_user}),User,None,None,None)

Can someone enlighten me

Activity

  1. BenFradet commented on Nov 9, 2020

    @BenFradet
    Contributor

    Which part needs enlightening?

  2. muunaar commented on Nov 16, 2020

    @muunaar
    Author

    The Organization API, the first function that consists of returning the members of the organization with their related contributions.
    If I did understand, the getmembers should return the members of the organization with their associated number of contributions
    When I use it, the returned User(..) consists of plenty of None value for the contribution fields. Therefore, the developer should use the repository API as well as the Organization API to get the needed data.

  3. sloshy commented on Feb 4, 2021

    @sloshy
    Contributor

    @muunaar That is correct. The GitHub API does not specify the contributions field as something that can be returned from this endpoint, but it shares a lot of overlap so we are reusing a common case class. Not all of the fields will be populated by every API request so it might seem misleading from the usage point of the library, but it is consistent with the official API.

    https://docs.github.com/en/rest/reference/orgs#list-organization-members

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions