Bug 850819 - RFE Unify status' names in search field with api.xsd
Summary: RFE Unify status' names in search field with api.xsd
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.1.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Michael Pasternak
QA Contact: Oded Ramraz
URL:
Whiteboard:
Depends On: 839551
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-22 13:26 UTC by Gadi Ickowicz
Modified: 2014-08-22 01:41 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 839551
Environment:
Last Closed: 2012-08-22 13:44:49 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gadi Ickowicz 2012-08-22 13:26:11 UTC
+++ This bug was initially created as a clone of Bug #839551 +++

Description of problem:
Nowadays object's statuses use no underscore in theirs names but REST-API uses the underscore in statuses.

e.g. search for all hosts that are non responsive is - status = nonresponsive
     in api the status is non_responsive

Version-Release number of selected component (if applicable):
ovirt-engine-backend-3.0.0_0001-1.6.fc16.x86_64

How reproducible:
Always

Steps to Reproduce:
1. In search field use 'Hosts: state =' and let the suggestion appear
2. Take a look at /api/capabilites on host's states
3. Compare non responsive representation for both approaches
  
Actual results:
Differs

Expected results:
Should be the same

Additional info:

Comment 1 Michael Pasternak 2012-08-22 13:44:49 UTC
by-design (enums in api are differs from UI), also this kind of change would break api

Comment 2 Jakub Libosvar 2012-08-22 14:05:51 UTC
The idea is changing enums in Backend for search engine, not the API. This bug should be opened agains Backend.


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