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