Closed abellotti closed 5 years ago
/cc @agrare @Fryguy doin' the bulk thing via collection actions ...
:+1: looks good
app/controllers/api/red_hat_cloud_service_providers_controller.rb
cfme
cfme
app/controllers/api/red_hat_cloud_services_controller.rb
cfme
spec/requests/red_hat_cloud_service_providers_spec.rb
cfme
cfme
spec/requests/red_hat_cloud_services_spec.rb
cfme
app/controllers/api/red_hat_cloud_service_providers_controller.rb
app/controllers/api/red_hat_cloud_services_controller.rb
specs added, but they'll fail until https://github.com/ManageIQ/manageiq-api/pull/629 gets merged.
Ivanchuk backport details:
$ git log -1
commit 51edee9c5d6dbc60bb35ce61d90ad891c4e56ddf
Author: Adam Grare <agrare@redhat.com>
Date: Wed Jul 31 10:37:26 2019 -0400
Merge pull request #26 from abellotti/support_sync_all
Enhancing API to support sync_all and sync_platform
(cherry picked from commit 523155b290c2a35d892c7108800bab8a7d3cdb1c)
Enhancing the API to support bulk queueing by leveraging the new API Collection actions and extending the sync action including a new sync_all as well as sync_platform for the "core" (non provider) part of the platform via /api/red_hat_cloud_services
POST /api/red_hat_cloud_service_providers - action "sync" with provider_ids specified. POST /api/red_hat_cloud_service_providers - action "sync_all" POST /api/red_hat_cloud_services - action "sync_platform"