#5505 Fix for the pagure-dist-git issue #167
Merged by ngompa. Opened by amedvede.
amedvede/pagure pdc_drop  into  master

Download 5505.patch

Now it shows all inactive releases as inactive regardless of whether the branch contains dead.package file or not.
Signed-off-by: Anton Medvedev amedvede@redhat.com

We currently have 56 archived bodhi releases, but this URL is only going to return the first 20 due to API pagination. The other URLs happen to work because they're currently less than 20 results each (9 current, 8 pending, 0 frozen), but best practice would be to always check for additional pages.

We currently have 56 archived bodhi releases, but this URL is only going to return the first 20 due to API pagination. The other URLs happen to work because they're currently less than 20 results each (9 current, 8 pending, 0 frozen), but best practice would be to always check for additional pages.

Hey Carl, in the code I'm first sending a request to get the total number of releases and then making a request for the actual number of releases on one page so it receives them all.

pretty please pagure-ci rebuild

If you want to avoid looping through current, pending and frozen, you can can all the active releases from one url: https://bodhi.stg.fedoraproject.org/list_releases/?exclude_archived=True

I see the script collects all of the branches (active and archived) and sorts them into active and inactive (archived or active with a dead.package).
What if the package does not have certain branch?

1 new commit added

  • feat: changes in recognizing branch as innactive

I see the script collects all of the branches (active and archived) and sorts them into active and inactive (archived or active with a dead.package).
What if the package does not have certain branch?

now it changed, it only looks through branches that package contain and it uses your URL for fetching inactive releases, thanks for recommendations

pretty please pagure-ci rebuild

rebased onto b50d32b7c92f131ebcc3b633de6c6e91e28297ec

rebased onto 58567240e59c397ec1e3e11921214422ee269e73

Pull-Request has been merged by ngompa

Metadata