Created attachment 882813 [details]
Patch that allows specifying an "int" for "latest"
This should preserve the pre-existing behavior, where if latest is set to True, only the latest builds in a tag are returned, and if latest is set to False, all the builds in a tag are returned.
The new behavior proposed here is a kind of middleground, where you can set latest=3, and only the latest three builds for each package in a tag are returned.
We want this ultimately for mashing rawhide so we can create a downgrade path for people if new builds break them.
Patch rebased and sent to the buildsys list: https://lists.fedoraproject.org/pipermail/buildsys/2014-August/004344.html
Some discussion in this thread: https://lists.fedoraproject.org/pipermail/buildsys/2015-February/004541.html
As of this moment it's not yet merged into the fedorahosted repo from what I can see.
Merged here: https://git.fedorahosted.org/cgit/koji/commit/?id=833a575ba57268ede29e7393f9f5eb08185431cb