feat(ui): surface rollback actions in the service catalog
Add retryRollback / releaseRollback / retryCloudDMRegistration API bindings and wire the corresponding actions and status presentation into the delivery task view.
This commit is contained in:
@@ -79,6 +79,24 @@ export const deliveryApi = {
|
||||
method: 'POST',
|
||||
})
|
||||
},
|
||||
|
||||
async retryRollback(taskId: string): Promise<void> {
|
||||
await authRequest(`/auth/api/v1/delivery/tasks/${encodeURIComponent(taskId)}/rollback/retry`, {
|
||||
method: 'POST',
|
||||
})
|
||||
},
|
||||
|
||||
async releaseRollback(taskId: string): Promise<void> {
|
||||
await authRequest(`/auth/api/v1/delivery/tasks/${encodeURIComponent(taskId)}/rollback/release`, {
|
||||
method: 'POST',
|
||||
})
|
||||
},
|
||||
|
||||
async retryCloudDMRegistration(taskId: string): Promise<void> {
|
||||
await authRequest(`/auth/api/v1/delivery/tasks/${encodeURIComponent(taskId)}/clouddm/retry`, {
|
||||
method: 'POST',
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
function createIdempotencyKey(payload: CreateMySQLDeliveryPayload) {
|
||||
|
||||
Reference in New Issue
Block a user