Hi,

For each package in a Copr, I want to get:

* latest build ID (doesn't matter if latest successful or latest any)
* that build status

To get it I can either use this:

   copr list-packages --with-latest-succeeded-build <copr>

Or parse the HTML returned from the Monitor page.

Here's my feedback: The API option should be faster. It isn't.

For a copr with only 24 builds, the JSON option takes 29 seconds, the HTML option takes 1 second.

For a copr with 10k+ builds, the JSON option takes longer than I was willing to wait, the HTML option takes 6 seconds.

If getting the information I need by parsing HTML is more pleasant than getting it via the API, something is wrong with the API.

Not sure if this is severe enough to file a bug report, but please consider this feedback in your future API design decisions.

Thank you,
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
copr-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/[email protected]

Reply via email to