Project

General

Profile

Actions

Bug #16889

closed

Hammer makes additional calls to the API that are unneeded

Added by David Davis over 7 years ago. Updated almost 6 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.


Related issues 1 (1 open0 closed)

Is duplicate of Katello - Bug #15930: Organization options hit the API multiple times in hammer-cli-katelloNew08/01/2016Actions
Actions #1

Updated by David Davis over 7 years ago

  • Is duplicate of Bug #15930: Organization options hit the API multiple times in hammer-cli-katello added
Actions #2

Updated by David Davis over 7 years ago

  • Status changed from New to Duplicate
Actions #3

Updated by Justin Sherrill over 7 years ago

  • translation missing: en.field_release set to 166
Actions

Also available in: Atom PDF