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/issue 794 review code of returned data #813

Conversation

xavierfacq
Copy link
Member

As I was looking at the code to understand this issue #794, I decided to use this time to improve some pieces of code. Let me know if it was a good idea or not 😄

  • I have moved up all failures and exceptions at API level in *Resource.kt. (e.g NotFoundException or BadRequestException caused by invalid VersionRangeFilter)

  • I have moved down ReleaseFilter, BinaryFilter, Order and Sort manipulations into *Endpoint.kt level.

I have done those changes to centralize calls to getAdoptRepos() and getFilteredReleases() and to avoid mistakes in the futur. I have also tried to improve the readability.

Checklist

  • You added tests to cover the change
  • [# ] mvn clean install build and test completes
  • You changed or added to the documentation

@xavierfacq xavierfacq marked this pull request as ready for review December 9, 2023 09:39
@xavierfacq
Copy link
Member Author

Not interesting.

@xavierfacq xavierfacq closed this Dec 26, 2023
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