This repository was archived by the owner on Apr 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
This repository was archived by the owner on Apr 17, 2019. It is now read-only.
ReST API: list submissions #35
Copy link
Copy link
Open
Description
This API will be used by repa. Hopefully this will be much faster than querying the OBS.
Parameters:
- project
- optional: List of statuses. default: everything except of rejected/accepted
- optional: base project
URL: /submissions//?status=&base=
Result is a jsoned list of dictionaries in this form:
[{submission: , status: , status_base:, packages: <list of packages/git trees>} ... ]
Desired order: by submission name
Example of typical request from repa:
Parameters: projects: Tizen:Wearable, base project: Tizen:Common
Result should contain all active submissions for Tizen:Wearable, list of packages for each of them and statuses in Tizen:Wearable and Tizen:Common for each of them ordered by submission name:
[
{"submission": "submit/tizen/20141221.153450", "status": "package build failed", "status_base": "rejected. SR 31191", "packages": ["bluetooth"]},
{"submission": "submit/tizen/20141221.153513", "status": "package build failed", "status_base": "rejected. SR 31190", "packages": ["ug-bluetooth-efl", "efl"]},
{"submission": "submit/tizen/20141222.094713", "status": "ready", "status_base": "accepted. SR 31201", "packages": ["bluetooth", "bluetooth-frwk"]}
]
Here is an example of repa command line and output:
$ repa -p Tizen:TV list --base Tizen:Common submit/tizen/20141231.144409 blocked accepted. SR 31491 tlm submit/tizen/20150105.140239 blocked accepted. SR 31501 polkit submit/tizen/20150106.022857 blocked accepted. SR 31602 augeas submit/tizen/20150106.054727 blocked unresolvable packages e-mod-tizen-devicemgr submit/tizen/20150106.055045 blocked unresolvable packages e-mod-tizen-effect submit/tizen/20150106.055130 blocked unresolvable packages e-mod-tizen-wm-policy submit/tizen/20150106.075439 blocked rejected. SR 31604 efl-util submit/tizen/20150106.075614 blocked unresolvable packages e-mod-tizen-keyrouter submit/tizen/20150106.103429 ready accepted. SR 31606 gstreamer-vaapi submit/tizen/20150107.020040 blocked accepted. SR 31605 efl-util submit/tizen/20150107.065721 package build failed unresolvable packages libmm-log submit/tizen/20150107.065933 package build failed unresolvable packages libmm-common submit/tizen/20150107.100620 blocked accepted. SR 31607 notification-service submit/tizen_tv/20150107.090021 package building meta-tv
Metadata
Metadata
Assignees
Labels
No labels