hezyin opened a new issue, #4439:
URL: https://github.com/apache/incubator-devlake/issues/4439

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) 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/<username>/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
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to