Bug 988361

Summary: No order of jobs via start time under /api/jobs
Product: Red Hat Enterprise Virtualization Manager Reporter: Artyom <alukiano>
Component: ovirt-engineAssignee: Eli Mesika <emesika>
Status: CLOSED CURRENTRELEASE QA Contact: Tareq Alayan <talayan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, bazulay, iheim, lpeer, oramraz, pstehlik, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard: infra
Fixed In Version: is15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Rest_Screenshot none

Description Artyom 2013-07-25 11:58:55 UTC
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

Comment 1 Michael Pasternak 2013-07-25 12:03:36 UTC
(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)

Comment 3 Itamar Heim 2013-08-22 09:33:21 UTC
probably worth clearing if just adding a default sort by to a query somewhere

Comment 4 Eli Mesika 2013-08-26 09:41:30 UTC
(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

Comment 6 Eli Mesika 2013-09-11 09:58:39 UTC
fixed in commit: 00be54c

Comment 7 Tareq Alayan 2013-10-17 11:04:16 UTC
Verified.
The response contains the jobs in descending order.

tested on: 
rhevm-3.3.0-0.25.beta1.el6ev.noarch

Comment 8 Itamar Heim 2014-01-21 22:29:36 UTC
Closing - RHEV 3.3 Released

Comment 9 Itamar Heim 2014-01-21 22:29:38 UTC
Closing - RHEV 3.3 Released

Comment 10 Itamar Heim 2014-01-21 22:32:32 UTC
Closing - RHEV 3.3 Released

Comment 11 Red Hat Bugzilla 2023-09-14 01:48:21 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days