Actions
Bug #16889
closedHammer makes additional calls to the API that are unneeded
Description
I am running this command:
hammer content-view filter update --name blahah --content-view Test --organization "Default Organization"
Here are the requests I see:
[ INFO 2016-10-12T11:49:54 API] GET /katello/api/organizations [DEBUG 2016-10-12T11:49:54 API] Params: { :search => "name = \"Default Organization\"" } [DEBUG 2016-10-12T11:49:54 API] Headers: { :params => { :search => "name = \"Default Organization\"" } }
[ INFO 2016-10-12T11:49:54 API] GET /katello/api/organizations/1/content_views [DEBUG 2016-10-12T11:49:54 API] Params: { "name" => "Test" } [DEBUG 2016-10-12T11:49:54 API] Headers: { :params => { "name" => "Test" } }
[ INFO 2016-10-12T11:49:55 API] GET /katello/api/organizations [DEBUG 2016-10-12T11:49:55 API] Params: { :search => "name = \"Default Organization\"" } [DEBUG 2016-10-12T11:49:55 API] Headers: { :params => { :search => "name = \"Default Organization\"" } }
[ INFO 2016-10-12T11:49:56 API] GET /katello/api/organizations/1/content_views [DEBUG 2016-10-12T11:49:56 API] Params: { "name" => "Test" } [DEBUG 2016-10-12T11:49:56 API] Headers: { :params => { "name" => "Test" } }
[ INFO 2016-10-12T11:49:56 API] GET /katello/api/content_views/2/filters [DEBUG 2016-10-12T11:49:56 API] Params: { "name" => "blahah" } [DEBUG 2016-10-12T11:49:56 API] Headers: { :params => { "name" => "blahah" } }
[ INFO 2016-10-12T11:49:56 API] PUT /katello/api/content_views/2/filters/1 [DEBUG 2016-10-12T11:49:56 API] Params: { "name" => "blahah" }
Seems like it's calling the org endpoint and content view endpoint an extra two times. Not sure if this applies to other commands.
Updated by David Davis over 8 years ago
- Is duplicate of Bug #15930: Organization options hit the API multiple times in hammer-cli-katello added
Updated by Justin Sherrill over 8 years ago
- Translation missing: en.field_release set to 166
Actions