incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

[Bug][Github Plugin] API call to remote-scopes returns a list of 1 and no github data

Open andyflatt opened this issue 1 year ago • 2 comments

Search before asking

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

What happened

When calling plugins/github/connections/[github_conn]/remote-scopes?groupId=[github_org] with a connection enabled with a GithubApp the response returns a page size of 1 and the returning result is missing data.

{
    "children": [
        {
            "type": "scope",
            "parentId": "org",
            "id":  [some_id],
            "name": "repo",
            "fullName": "org/repo",
            "data": null
        }
    ],
    "nextPageToken": "eyJwYWdlIjoyLCJwZXJfcGFnZSI6MTAwfQ=="
}

When calling the same API with the github connection setup with a token I a full response with the data populated correctly.

What do you expect to happen

I expected to see the same result as with a token.

How to reproduce

I have recently upgraded from v0.20 to v1.0.0 beta 5.

Setup two github connections one using an API key and the other using a token. They are both enabled to use the graphql API.

Anything else

No response

Version

v1.0.0-beta5

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

andyflatt avatar Apr 25 '24 13:04 andyflatt

Sounds like some essential permissions are missing. Did you follow this guide and set up the required permissions?

klesh avatar Apr 26 '24 03:04 klesh

This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar Jun 26 '24 00:06 github-actions[bot]

This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future.

github-actions[bot] avatar Jul 03 '24 00:07 github-actions[bot]