-
Notifications
You must be signed in to change notification settings - Fork 3
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
Extend gitlab models by introducing graphql support #47
base: main
Are you sure you want to change the base?
Conversation
mjsprengers
commented
Feb 14, 2025
- gitlab4j does not support all required data fields of gitlab.com objects, hence introducing graphql support
connector/gitlab/src/main/java/com/blazebit/query/connector/gitlab/GitlabGraphQlClient.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Use records instead of jackson
connector/gitlab/src/main/java/com/blazebit/query/connector/gitlab/GitlabProjectResponse.java
Outdated
Show resolved
Hide resolved
…ted parameters for users, projects and groups
List<GitlabUser> userList = new ArrayList<>(); | ||
|
||
for ( GitlabGraphQlClient client : gitlabClients) { | ||
userList.addAll(client.fetchUsers(List.of("gid://gitlab/User/21369228"))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: remove and fetch only users that are part of any of the projects or groups the current user is in (similar to gitlab4j REST API approach)