Project

General

Profile

Bug #24137

GET content_view_filter_rules index API default search is set to :name, this doesnt work for errata rules

Added by Sean O'Keeffe about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
trivial
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Searching erratum rules always result in an error because of the default search is set to :name which doesn't exist with rule type=erratum

[root@centos7-katello-3-6 ~]# curl 'https://admin:/katello/api/v2/content_view_filters/18/rules' | python m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 198 0 198 0 0 1415 0 -
:--:-- --:--:-- --:--:-- 1424 {
"error": "the field (name) in the order statement is not valid field for search",
"page": null,
"per_page": null,
"results": [],
"search": null,
"sort": {
"by": null,
"order": null
},
"subtotal": null,
"total": null
}

Associated revisions

Revision 026dbf73 (diff)
Added by Sean O'Keeffe almost 2 years ago

Fixes #24137 - set default CV filter rule sort_by to ID

without this searching CV filter rules results in the following error:
"the field (name) in the order statement is not valid field for search"

Erratum CV Filter rules do not have a name attribute.

History

#1 Updated by The Foreman Bot about 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7492 added

#2 Updated by Anonymous almost 2 years ago

  • Status changed from Ready For Testing to Closed

#3 Updated by John Mitsch almost 2 years ago

  • Target version set to Katello 3.9.0
  • Category set to Content Views

#4 Updated by John Mitsch almost 2 years ago

  • Triaged changed from No to Yes

Also available in: Atom PDF