Actions
Bug #31285
closedresponses to /api/v2/settings/<id> no longer contain 'created_at' and 'updated_at' attrs
Difficulty:
Triaged:
No
Description
foreman-2.3.0-0.7.rc1.el7sat.noarch
The attrs are missing in responses to both GET and PUT requests (and possibly POST too)
2020-11-10T13:03:46 [I|app|12f445d8] Started PUT "/api/v2/settings/discovery_location" for 127.0.0.1 at 2020-11-10 13:03:46 +0100 2020-11-10T13:03:46 [I|app|12f445d8] Processing by Api::V2::SettingsController#update as JSON 2020-11-10T13:03:46 [I|app|12f445d8] Parameters: {"setting"=>{"value"=>"[FILTERED]"}, "apiv"=>"v2", "id"=>"discovery_location"} 2020-11-10T13:03:46 [D|app|12f445d8] Authenticated user admin against INTERNAL authentication source 2020-11-10T13:03:46 [D|app|12f445d8] Post-login processing for admin 2020-11-10T13:03:46 [I|app|12f445d8] Authorized user admin(Admin User) 2020-11-10T13:03:46 [D|app|12f445d8] Post-login processing for admin 2020-11-10T13:03:47 [D|tax|12f445d8] Current location set to none 2020-11-10T13:03:47 [D|tax|12f445d8] Current organization set to none 2020-11-10T13:03:47 [D|tax|12f445d8] Current location set to none 2020-11-10T13:03:47 [D|tax|12f445d8] Current organization set to none 2020-11-10T13:03:47 [I|app|12f445d8] Rendering api/v2/settings/update.json.rabl 2020-11-10T13:03:47 [I|app|12f445d8] Rendered api/v2/settings/update.json.rabl (Duration: 10.0ms | Allocations: 9623) 2020-11-10T13:03:47 [D|app|12f445d8] Body: {"description":"The default location to place discovered hosts in","category":"Setting::Discovered","settings_type":"string","default":"","id":"discovery_location","name":"discovery_location","full_name":"Discovery location","value":"rdrbVOgGL","category_name":"Discovered","readonly":false,"config_file":"settings.yaml","encrypted":false,"select_values":{"Default Location":"Default Location","hSifWeKfZA":"hSifWeKfZA","InvpeNKSWxY":"InvpeNKSWxY","KVKnKAVhOPuN":"KVKnKAVhOPuN","mfHnRd":"mfHnRd","plkDdIVt":"plkDdIVt","pVdbkevdTXD":"pVdbkevdTXD","rdrbVOgGL":"rdrbVOgGL","roCPQxZwGx":"roCPQxZwGx","SPwWAicNZ":"SPwWAicNZ","umgWgPLbmU":"umgWgPLbmU","zEZwsKid":"zEZwsKid"}}
Updated by The Foreman Bot almost 4 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Ezr
- Pull request https://github.com/theforeman/foreman/pull/8186 added
Updated by Ondřej Ezr almost 4 years ago
- Related to Refactor #31471: Deprecate setting timestamps in API responses added
Updated by The Foreman Bot almost 4 years ago
- Pull request https://github.com/theforeman/foreman/pull/8198 added
Updated by Ondřej Ezr almost 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|957a215f1b44d1bb500dd2f7e8f93666e1eb3973.
Actions