action #169525
opencoordination #154768: [saga][epic][ux] State-of-art user experience for openQA
coordination #166556: [epic] Improved test reviewer user experience - Restart filtered jobs from /tests/overview
Improve progress indication on restart API
0%
Description
Motivation¶
We need to provide a better progressIndication when we trigger a group of job restarts[0].
The expectation is that the frontend knows the status of jobs(scheduled, running, etc)
We use it in overview page (overview.html.ep) but the progressIndication is likely not accurate.
In order to provide proper indicator, the webUI needs to have some data from the API. Currently https://github.com/os-autoinst/openQA/blob/master/assets/javascripts/openqa.js#L241 is used from the UI to restart the jobs but it doesnt return such info, which the frontend can use.
This might need also changes on the API[1] as well
[0] https://github.com/os-autoinst/openQA/blob/master/assets/javascripts/overview.js#L306
[1] https://github.com/os-autoinst/openQA/blob/master/lib/OpenQA/WebAPI/Controller/API/V1/Job.pm#L810