Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate retrieving list of collaborators for Orgs and Projects #2051

Closed
WinnyTroy opened this issue Apr 13, 2021 · 1 comment · Fixed by #2098
Closed

Automate retrieving list of collaborators for Orgs and Projects #2051

WinnyTroy opened this issue Apr 13, 2021 · 1 comment · Fixed by #2098

Comments

@WinnyTroy
Copy link
Contributor

WinnyTroy commented Apr 13, 2021

Suggested Feature / Enhancement

MoDa have severally requested to have a list of project collaborators fetched.

The logic used to manually do this at the moment is

  • Get users from the projects endpoint https://api.ona.io/api/v1/orgs/<org name> and filter out the organization.
  • They will be the org members and for collaborators, we specify get users from the projects endpoint https://api.ona.io/api/v1/projects.json?owner=<org name> then filter out organizations to remain with a list of users(collaborators)

It would be better to have an automated way of doing this.

Suggested implementation plan(Steps to be taken to implement feature)

  • Management Command
  • Query Param introduced in the Project and Org endpoints that can filter this data
  • Utility function to call from django shell
@denniswambua denniswambua added this to the 22 -23 (2021) milestone May 28, 2021
@DavisRayM DavisRayM self-assigned this Jun 2, 2021
@DavisRayM
Copy link
Contributor

For the organization members, I believe /api/v1/orgs/<org_name>/members gives the required information; Returns a list of usernames though it doesn't return the roles it seems.

I'll add a management function to return more verbose information though

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

Successfully merging a pull request may close this issue.

3 participants