Skip to content

[Bug][Config-UI] Config-UI not listing private membership organizations for GitHub #4439

@hezyin

Description

@hezyin

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

So some users report in Slack that they don't see their organizations showing up in the first column of the miller column in Config-UI.

The issue is that when Config-UI fetches GitHub orgs, it uses /users//orgs, which only list public organization memberships, regardless of authentication. To list all organizations (public and private) for the authenticated user, we would have to use another endpoint /user/orgs .

GitHub API reference: https://docs.github.com/en/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations-for-the-authenticated-user

What do you expect to happen

Config-UI list all organizations of an user regardless of whether the org membership is public or not.

How to reproduce

See above

Anything else

No response

Version

v0.15.0

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

type/bugThis issue is a bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions