Bug 988361 - No order of jobs via start time under /api/jobs
Summary: No order of jobs via start time under /api/jobs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.3.0
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: 3.3.0
Assignee: Eli Mesika
QA Contact: Tareq Alayan
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-25 11:58 UTC by Artyom
Modified: 2023-09-14 01:48 UTC (History)
8 users (show)

Fixed In Version: is15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Rest_Screenshot (211.31 KB, image/png)
2013-07-25 11:58 UTC, Artyom
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 18643 0 None None None Never

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


Note You need to log in before you can comment on or make changes to this bug.