Project

General

Profile

Bug #29231

Search options have result limits

Added by Oleh Fedorenko over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
medium
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

While testing

--provisioning-template-search
option for hammer os [add|remove]-provisioning-template subcommands I've noticed that we have it quite broken. It works, but the search result is limited to `per_page` setting in Foreman. Example: I've got an OS with 30 associated templates, 25 of which have prefix `dis_`. If I want to [dis]associate all the templates with this prefix, I will need to run a command with `--...-search` option twice in case I've got `per_page` set to 20 in Foreman. This has been kinda resolved as part of https://github.com/theforeman/hammer-cli-foreman/pull/417, but the solution works only on basic name resolving (uses `--...-name[s]` option).

The solution for this issue should introduce general way of resolving {associated_resource}-search options.


Related issues

Related to Hammer CLI - Feature #28836: Allow multiple disassociating of provisioning templatesClosed
Related to Hammer CLI - Bug #19999: Support for associating multiple provisioning templates at onceClosed

History

#1 Updated by Oleh Fedorenko over 2 years ago

  • Related to Feature #28836: Allow multiple disassociating of provisioning templates added

#2 Updated by Oleh Fedorenko over 2 years ago

  • Related to Bug #19999: Support for associating multiple provisioning templates at once added

Also available in: Atom PDF