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

Fix user verification query and accept organization logins #117

Merged
merged 3 commits into from
May 9, 2022

Conversation

laurentS
Copy link
Contributor

@laurentS laurentS commented May 9, 2022

The users stream is giving unexpected results for organizations as the graphql endpoint is very picky about the user type and won't give any info for orgs.

This PR uses a different repositoryOwner query to cover both user and organization user types while enriching the config provided usernames.

It is a bit hacky because the API does not include the databaseId for this query, so we parse it from a url :/

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ericboucher ericboucher changed the title Fix broken api endpoint Fix user verification query and accept organization logins May 9, 2022
@ericboucher ericboucher merged commit 32b7c01 into main May 9, 2022
@ericboucher ericboucher deleted the fix-user-gql-api-bug branch May 9, 2022 17:07
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