Bug 1311929 - [RFE] Add monitor equivalent to API
Summary: [RFE] Add monitor equivalent to API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Copr
Classification: Community
Component: cli
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: clime
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-25 10:55 UTC by Jan Staněk
Modified: 2018-04-09 08:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-09 08:17:11 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Staněk 2016-02-25 10:55:43 UTC
Description of problem:
I'm writing a script for automated running of RPM tests on COPR projects. I would like to have API access to the information provided by the detailed monitor in the frontend -- list of all packages in the project together with their latest build ids, in order to found the URL for the builds results.

Additional info:
I cannot simply use reposync (or similar tools), since I also need access to the respective build logs for the builds (rpmgrill needs them).

Comment 1 clime 2016-03-09 13:54:18 UTC
Sorry for late response. We actually already have this in our API (at least in the "legacy" API, which is currently undocumented).

/coprs/<username>/<coprname>/monitor/

Let me know, if that is what you need.

Comment 2 clime 2016-03-09 13:56:21 UTC
Sorry, I left out the first part of the uri:


api/coprs/<username>/<coprname>/monitor/

Comment 3 Jan Staněk 2016-03-10 10:03:20 UTC
OK, I can work with that - the "legacy" monitor has the necessary info.

However, I would still like to see a version of this in the new API, so that the script could eventually work without mixing two versions of the API. The priority for me is not too high for now, though.

Comment 4 clime 2016-03-10 11:31:24 UTC
There shouldn't be a difference except the url prefix, right? It is not like one would give you xml response and the second json. But yeah, we will probably need to do something about our APIs. It would not be bad to have just one.

Comment 5 clime 2018-02-26 09:06:10 UTC
Hello, we are now preparing a new API (https://pagure.io/copr/copr/issue/218). Also, we are planing a possible integration with Taskotron to run automated tests. Can I possibly know more about your project?

Comment 6 Jan Staněk 2018-02-27 12:13:23 UTC
Well, I *think* the project was scraped in the end, and after two years I have trouble remembering what I needed this for... Sorry.

This issue then may be closed as you see fit. Thanks for the collaboration!


Note You need to log in before you can comment on or make changes to this bug.