Project

General

Profile

Actions

Feature #6794

closed

Missing search parameter for template kinds

Added by Dominic Cleal over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1123868
Description of problem:
Missing search option for subscriptions. In the API documentation the search optional is also not mentioned.
Having a search option makes it easier to retrieve the correct version in a single query without parsing the complete JSON output.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. curl -XGET --data-urlencode "search=name=provision" https://localhost/api/v2/template_kinds {
"total": 8,
"subtotal": 8,
"page": 1,
"per_page": 20,
"search": "name=provision",
"sort": {
"by": null,
"order": null
},
"results": [{"name":"PXELinux","id":1,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"PXEGrub","id":2,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"iPXE","id":3,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"provision","id":4,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"finish","id":5,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"script","id":6,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"user_data","id":7,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"ZTP","id":8,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"}]
}

2.
3.

Actual results:
Return only the provision item

Expected results:

Additional info:

Actions #1

Updated by Dominic Cleal over 9 years ago

  • Tracker changed from Bug to Feature
  • Subject changed from [RFE] Missing search option for template kinds to Missing search parameter for template kinds
  • Category set to API
  • Assignee deleted (Bryan Kearney)
Actions #2

Updated by Ohad Levy over 9 years ago

  • Target version set to 1.7.5
Actions #3

Updated by Ohad Levy over 9 years ago

  • Assignee set to Ori Rabin
Actions #4

Updated by Ori Rabin over 9 years ago

  • Status changed from New to Assigned
Actions #5

Updated by The Foreman Bot over 9 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/1647 added
  • Pull request deleted ()
Actions #6

Updated by Dominic Cleal over 9 years ago

  • translation missing: en.field_release set to 10
Actions #7

Updated by Ori Rabin over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF