axodotdev / axodotdev/oranda

handle github-releases pagination

Open
#576 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
543
Forks
34
PR merge metrics
No merged PRs in 30d

Description

When oranda gets a list of a repo's Github Releases, it uses [this REST api](https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#list-releases) via our octolotl library/proxy. That API is paginated, defaulting to 30 items (max 100).

The result is that once a repo has more than 30 Github Releases, old ones start disappearing from Oranda's output.

Immediate implications:

* Users with more than 30 releases will start to lose old ones in the output (notably this includes prereleases, so cutting a prerelease can make old stable releases disappear).

* The DEBUG_DATA_CLAMP_DATE setting introduced in #575 doesn't effectively do its job, as filtering by date will prevent *new* entries but can't prevent *old* ones from being pushed out by the new ones. This means any repo in the gallery cutting a Release will break our snapshot tests (both oranda and cargo-dist have crossed this threshold).

Fixing this Properly would probably require changing octolotl to internally query all pages and then stitch the results together.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.