Consumers of the Checkouts API expect a 422 response when a failure occurs for any reason. Previously, Workarea was always returnin ga 200 success even when the update could not be fully completed. To resolve this, the Workarea::Checkout#update method has been modified to return false when the update fails, triggering the proper status code in the response.
edit: this is a deja vu PR as the history of v4.5-stable changed. just wanted to make sure it still passes tests.
Consumers of the Checkouts API expect a 422 response when a failure occurs for any reason. Previously, Workarea was always returnin ga 200 success even when the update could not be fully completed. To resolve this, the
Workarea::Checkout#update
method has been modified to returnfalse
when the update fails, triggering the proper status code in the response.edit: this is a deja vu PR as the history of v4.5-stable changed. just wanted to make sure it still passes tests.