#1209 listBuilds only accepts package IDs, not package names
Closed: Fixed by tkopecek. Opened by ktdreyer.

The listBuilds RPC only accepts package IDs (ints), not package names (strings).

Most of the user just cares about a package name, so this means that Koji clients must always make a getPackage RPC to get the ID number prior to making the listBuilds RPC.

It would be great to make listBuilds accept either an int or a name for packageID. Something like:

if packageID and not isinstance(packageID, int):
    packageID = get_package_id(packageID)
    if not packageID:
        return []

Metadata Update from @jcupova:
- Custom field Size adjusted to None

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.26

Metadata Update from @jcupova:
- Issue tagged with: testing-ready

Metadata Update from @mfilip:
- Issue tagged with: testing-done

Commit 65e8593f fixes this issue

Commit c4a2f011 fixes this issue

Metadata Update from @jcupova:
- Issue status updated to: Open (was: Closed)

Metadata Update from @jcupova:
- Issue untagged with: testing-done

Metadata Update from @jobrauer:
- Issue tagged with: testing-done

Commit fada0c9d fixes this issue

Commit 12481d43 fixes this issue

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/1209

Please continue any further discussion there.

Metadata
Related Pull Requests