radicle-dev / radicle-client-services

Services backing the Radicle client interfaces.
Apache License 2.0
31 stars 13 forks source link

http-api: Change the iterator to not count failed projects #206

Closed sebastinez closed 1 year ago

sebastinez commented 2 years ago

To avoid returning a lesser amount of projects then requested, we get the project info during the iterator and paginate after filtering for invalid projects.

This removes the ability to fetch projects in parallel, but fixes the issue of returning less projects then requested for.

PS. If someone has an idea to fetch in parallel during the iterator, please feel free to commit to this PR or lmk how you would do it.

Closes #205

sebastinez commented 1 year ago

Closing this in favour of a new PR on radicle-dev/heartwood