Bug 988361
Summary: | No order of jobs via start time under /api/jobs | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Artyom <alukiano> | ||||
Component: | ovirt-engine | Assignee: | Eli Mesika <emesika> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Tareq Alayan <talayan> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.3.0 | CC: | 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: |
|
(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 Closing - RHEV 3.3 Released Closing - RHEV 3.3 Released The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |
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