Bug 1470260

Summary: Asc sort order for filtered tags returns error
Product: Red Hat CloudForms Management Engine Reporter: Allen W <awight>
Component: APIAssignee: Jillian Tullo <jtullo>
Status: CLOSED ERRATA QA Contact: Ruslana Babyuk <rbabyuk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: cpelland, jhardy, jtullo, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-01 13:14:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Allen W 2017-07-12 15:30:18 UTC
Steps to Reproduce:
1.

```
GET http://localhost:3000/api/services?expand=resources&filter%5B%5D=ancestry%3Dnull&filter%5B%5D=tags.name%3D%2Fmanaged%2Fenvironment%2Fdev&limit=20&offset=0&sort_by=created_at&sort_order=desc
```
results in success
2.
```
GET http://localhost:3000/api/services?expand=resources&filter%5B%5D=ancestry%3Dnull&filter%5B%5D=tags.name%3D%2Fmanaged%2Fenvironment%2Fdev&limit=20&offset=0&sort_by=created_at&sort_order=asc
```
results in
```
{
  "error": {
    "kind": "internal_server_error",
    "message": "undefined method `to_sql' for #\u003cArel::Attributes::Attribute:0x007f98f3460288\u003e\nDid you mean?  to_s\n               to_set",
    "klass": "NoMethodError"
  }
}
```
3. no profit till 2. is successfully complete

Comment 2 Jillian Tullo 2017-07-12 20:34:41 UTC
PR: https://github.com/ManageIQ/manageiq/pull/15559

Comment 5 errata-xmlrpc 2018-03-01 13:14:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0380