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

Remove the unsupported Nodes GraphQL library #992

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

mc1arke
Copy link
Owner

@mc1arke mc1arke commented Nov 11, 2024

The library that had been used to integrate with GitHub's GraphQL APIs is no longer maintained. As the rest of the project uses Rest APIs to integrate with services, there's a fairly mature GitHub Java library, and switching to any other GraphQL library is likely to require as much effort as switching to a Rest implementation, this change is removing the GraphQL implementation and moving to the github-api library bundled within Sonarqube. As GitHub's Rest API does not support minimising comments, old summary comments are being deleted rather than minimised after a new summary comment is added. Additionally, the 'bridging' features used in the github-api library cause issues when mockito attempts to mock/spy a bridged class, so an unbridged version of the library has been specified at the start of the test runtime classpath to allow unit testing using the affected classes.

Includes an upgrade to the docker-compose file to use a newer Postgres version and resolve some linting issues.

@mc1arke
Copy link
Owner Author

mc1arke commented Nov 11, 2024

This will fix #969

The library that had been used to integrate with GitHub's GraphQL APIs
is no longer maintained. As the rest of the project uses Rest APIs to
integrate with services, there's a fairly mature GitHub Java library,
and switching to any other GraphQL library is likely to require as much
effort as switching to a Rest implementation, this change is removing
the GraphQL implementation and moving to the github-api library bundled
within Sonarqube. As GitHub's Rest API does not support minimising
comments, old summary comments are being deleted rather than minimised
after a new summary comment is added. Additionally, the 'bridging'
features used in the github-api library cause issues when mockito
attempts to mock/spy a bridged class, so an unbridged version of the
library has been specified at the start of the test runtime classpath to
allow unit testing using the affected classes.

Includes an upgrade to the docker-compose file to use a newer Postgres
version and resolve some linting issues.
@mc1arke mc1arke force-pushed the nodes-graphql-removal branch from fa7e9d6 to 94646af Compare November 11, 2024 17:14
Copy link

@mc1arke mc1arke merged commit fd5d52e into master Nov 13, 2024
12 checks passed
@mc1arke mc1arke deleted the nodes-graphql-removal branch November 13, 2024 13:57
@sebastiaanspeck sebastiaanspeck mentioned this pull request Dec 6, 2024
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.

1 participant