Created attachment 778240 [details] Rest_Screenshot Description of problem: In GUI all task are ordered by start time, but in REST it not, really I don't see any order in REST. Version-Release number of selected component (if applicable): is6 How reproducible: Not close, how to reproduce exactly Steps to Reproduce: 1. Do some number of randoms tasks via GUI 2. See that under GUI on task tab, all tasks are ordered by start time 3. Actual results: Under rest <YOUR_ENGINE>/api/jobs jobs not ordered by start time Expected results: jobs ordered by start time Additional info: See screenshot of REST for example
(In reply to Artyom from comment #0) > Created attachment 778240 [details] > Rest_Screenshot > > Description of problem: > In GUI all task are ordered by start time, but in REST it not, really I > don't see any order in REST. > i'm not sure this is a bug, GUI has own capabilities, such as sorting etc., api should not be exposed to UI features (unless it's a part of the query, but afaik jobs does not support $search$ query)
probably worth clearing if just adding a default sort by to a query somewhere
(In reply to Itamar Heim from comment #3) > probably worth clearing if just adding a default sort by to a query somewhere Yes 1) Will add a default sort for GetAllJobs SP by start_time DESC 2) will add index on start_time
fixed in commit: 00be54c
Verified. The response contains the jobs in descending order. tested on: rhevm-3.3.0-0.25.beta1.el6ev.noarch
Closing - RHEV 3.3 Released
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days