Project

General

Profile

Actions

Feature #13519

closed

Inconsistent naming in search and output when searching on smart class parameters

Added by Ewoud Kohl van Wijngaarden about 8 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

As a user I'd like to search /api/smart_class_parameters/ for puppet class name and parameter name so I don't have to iterate all values.

$ curl -u user -k https://foreman.example.org/api/smart_class_parameters/?search=parameter%3Dapache_name
Enter host password for user 'api':
{
  "error": {"message":"Field 'parameter' not recognized for searching!","class":"ScopedSearch::QueryNotSupported"}
}

Related issues 1 (1 open0 closed)

Related to Hammer CLI - Feature #13260: RFE : allowing hammer-cli to search/update sc-parametersNewActions
Actions #1

Updated by Ewoud Kohl van Wijngaarden about 8 years ago

  • Related to Feature #13260: RFE : allowing hammer-cli to search/update sc-parameters added
Actions #2

Updated by Ori Rabin about 8 years ago

Did you try curl -u user -k https://foreman.example.org/api/smart_class_parameters/?search=key%3Dapache_name ?
In the UI it also shows key and not parameter but it searches on the same field.
If this works for you please change this to a bug for inconsistent naming in search and output.

Actions #3

Updated by Ewoud Kohl van Wijngaarden about 8 years ago

  • Subject changed from Allow searching on smart class parameters to Inconsistent naming in search and output when searching on smart class parameters

You're right, that does work.

Actions #4

Updated by Ewoud Kohl van Wijngaarden about 8 years ago

Ori: do you have a similar trick to search for the puppet class name?

Actions #5

Updated by Ori Rabin about 8 years ago

'puppetclass' should be searchable: smart_class_parameters?search=puppetclass%3Dapache

Actions #6

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Shlomi Zadok
  • Pull request https://github.com/theforeman/foreman/pull/3215 added
Actions #7

Updated by Ori Rabin about 8 years ago

  • Status changed from Ready For Testing to Closed
Actions #8

Updated by Dominic Cleal about 8 years ago

  • translation missing: en.field_release set to 71
Actions

Also available in: Atom PDF