Actions
action #71977
openInclude currently running jobs in jobs overview API call
Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
QA (public, currently private due to #173521) - future
Start date:
2020-09-28
Due date:
% Done:
0%
Estimated time:
Description
Currently, when performing a jobs overview API call (e.g. https://openqa.suse.de/api/v1/jobs/overview?test=mau-filesystem), the API returns only completed tests and skips currently running ones:
Here all SLE15 and some SLE12 variants are missing, because they are running at the moment. This is not nice, as it prevents this API call to be used for searching for the latest run of a certain test (e.g. search latest mau-filesystem tests)
Hence my suggestion to modify the API to include the currently running ones as well.
Furthermore I suggest to also add a parameter (e.g. state=completed), where one can select if we want the currently running ones, or the last completed ones - e.g.
- https://openqa.suse.de/api/v1/jobs/overview?test=mau-filesystem - returns all runs including the currently running ones
- https://openqa.suse.de/api/v1/jobs/overview?test=mau-filesystem&state=completed - return all runs but post the state of the last completed run instead of the currently ongoing ones
Files
Actions