Fixes #27213 - Expose description to update filter api call #8193
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Screenshot of it being updated in the UI:
https://nimb.ws/RX7tKb
Update with hammer and new api cache. Adding a pr to hammer to expose the description in list but not required for this.
[vagrant@centos7-katello-devel katello]$ hammer -d content-view filter update --id 1 --description pizza [ INFO 2019-07-02T17:27:27 HammerCLIKatello::Filter::UpdateCommand] Called with options: {"option_id"=>1, "option_description"=>"pizza"} [ INFO 2019-07-02T17:27:27 API] Server: https://centos7-katello-devel.area51.example.com [ INFO 2019-07-02T17:27:27 API] PUT /katello/api/content_view_filters/1 [DEBUG 2019-07-02T17:27:27 API] Params: { "description" => "pizza" } [DEBUG 2019-07-02T17:27:27 API] Headers: {} [DEBUG 2019-07-02T17:27:27 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth [DEBUG 2019-07-02T17:27:28 API] Cache expired. (57d51c2c52f2196de21c4156e27dade4160a6f2d -> 815e172ce92b238c8435c0cc491ec4d19044ead8) [DEBUG 2019-07-02T17:27:28 API] Response: { "inclusion" => false, "original_packages" => false, "id" => 1, "name" => "nofox", "description" => "pizza", } Filter updated. ----------|-------|-------------|------|---------- FILTER ID | NAME | DESCRIPTION | TYPE | INCLUSION ----------|-------|-------------|------|---------- 1 | nofox | pizza | rpm | ----------|-------|-------------|------|----------