-
Notifications
You must be signed in to change notification settings - Fork 643
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
Think about supporting the GraphQL API #1357
Comments
That's funny last weekend I was hacking away locally on a branch to wrap https://github.com/graphql-python/gql with existing authentication/convenience stuff from IMO it would also make sense to provide a thin wrapper at least! Since |
haha nice 👍 I just saw a depreciation warning somewhere in the docs (removed from v5 API) and checked out their GraphQL stuff again. Last time I checked they only had a project list endpoint. |
FWIW some of the existing REST APIs are unstable and marked for deprecation, notably Vulnerabilities and Vulnerability Findings. I'm pulling my hair out trying to develop a vulnerability report ATM because this python-gitlab doesn't support GraphQL (yet?) and the existing REST APIs are broken. Also #2316 (comment). |
In addition to whay @irishismyname posted above, they are changing how the CI_JOB_TOKEN works in GL 17.* and look to only be adding API control of "Allowlists" via the GraphQL API: https://gitlab.com/gitlab-org/gitlab/-/issues/435903 |
I think it would be nice if this library abstracted out the REST vs. GraphQL difference and one could just use the library, not caring what is used internally. |
100% the end user of this library shouldn't need to worry about if it's GQL or REST, solely that they can perform a given action |
I started writing a GitLab specific wrapper for |
My take would be that the library should not try to use both APIs for the same logical endpoint, but that it should use GraphQL only for those which do not exist in REST or have very limited support in REST. Like new endpoints which are added only in GraphQL. |
@mitar agreed, and as REST endpoints are deprecated those get swapped to GQL. Specifically we'll want to add support for editign |
See REST API: Runner will no longer return ip_address and https://docs.gitlab.com/ee/api/runners.html states |
Not sure, if this would be worth a separate library, but doesn't look like Gitlab will depreciate the v4 API anytime soon.
So just something to keep in mind.
https://docs.gitlab.com/ee/api/graphql/reference/index.html
The text was updated successfully, but these errors were encountered: