Actions
Bug #28777
closedProducts-API has no result for sync_summary
Description
For some reason calling sync_summary
on a product gives a result (when using rails-console) but is always empty when called by the API-controller.
The reason is in last_repo_sync_task_group
, where the Time format used to find the Tasks differs between rails-console and rails-controller:
OK (rails-console):
Katello::Product.find(1).sync_summary
# => { 'warning' => 2, 'success' => 1 }
Katello::Product.find(1).last_repo_sync_task.started_at
# => 2020-01-15 09:49:44 UTC
NOK (added log in Prodcts API-Controller):
@product.sync_summary
# => {}
@product.last_repo_sync_task.started_at
# => 2020-01-15 10:49:44 +0100
The where
-statement that is actually used to get the tasks does not return anything in the latter case.
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/8522 added
Updated by The Foreman Bot almost 5 years ago
- Fixed in Releases Katello 3.16.0 added
Updated by Markus Bucher almost 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|ba65d4c1648924350cd0004b230c4a9d92c35dee.
Updated by Samir Jha almost 5 years ago
- Target version set to Katello 3.15.0
- Triaged changed from No to Yes
- Fixed in Releases Katello 3.15.0 added
- Fixed in Releases deleted (
Katello 3.16.0)
Actions