Skip to content
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

Group names in the GitLab GraphQL API are case sensitive #162

Closed
wants to merge 1 commit into from
Closed

Group names in the GitLab GraphQL API are case sensitive #162

wants to merge 1 commit into from

Conversation

borntyping
Copy link

This might resolve the issue in #136 - I received the same error message attempting to use a GitLab provider where the name contained capital letters.

This only seems to apply to groups. I tested the query in projects.graphql against the GitLab.org GraphQL explorer. Using the canonicial name gitlab-org worked as expected. Changing the capitalisation to GitLab-Org returned no results.

This might resolve the issue in #136 - I received the same error
message attempting to use a GitLab provider where the name
contained capital letters.

This only seems to apply to groups. I tested the query in
`projects.graphql` [1] against the GitLab.org GraphQL explorer [2].
Using the canonicial name `gitlab-org` worked as expected.
Changing the capitalisation to `GitLab-Org` returned no results.

[1] src/providers/graphql/gitlab/projects.graphql
[2] https://gitlab.com/-/graphql-explorer
@borntyping
Copy link
Author

Not sure why the GitHub actions checks are failing - wondering if it's because they're running on a fork?

@orf
Copy link
Owner

orf commented Apr 9, 2021

Thanks for this! However I'm not sure - in our local instance it's the opposite. We have a group called Onfido

Screenshot 2021-04-09 at 12 38 46

But querying for Onfido returns no results: you need to query for onfido lowercase.

Screenshot 2021-04-09 at 12 39 08

So I'm not sure what to do here.

@borntyping
Copy link
Author

I think that's the group's display name, not the group's path (the representation used in the URL for the group). GitLab defaults to the path being the name but lowercased when creating a group - I think my case where the path contains capital letters is quite unusual.

@borntyping borntyping closed this Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants