Bug 1470260 - Asc sort order for filtered tags returns error
Asc sort order for filtered tags returns error
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: GA
: 5.9.0
Assigned To: Jillian Tullo
Ruslana Babyuk
Depends On:
  Show dependency treegraph
Reported: 2017-07-12 11:30 EDT by Allen W
Modified: 2017-10-17 05:13 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Allen W 2017-07-12 11:30:18 EDT
Steps to Reproduce:

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
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 16:34:41 EDT
PR: https://github.com/ManageIQ/manageiq/pull/15559

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