Peripli / service-manager

Service Manager Core
Apache License 2.0
69 stars 28 forks source link

Save instance in context #530

Closed kerenlahav closed 4 years ago

kerenlahav commented 4 years ago

Motivation

  1. Save instance that was fetched from DB to context to avoid querying the DB again to get the same instance
  2. Manage instance deprovision and polling by an external plugin

Approach

  1. The instance will be saved and available in the context after fetched from DB
  2. An external plugin want to manage the deprovision process, it saves the delete operation in the context, which signals the osb_store_plugin that someone else is managing this operation and the response should be returned to the client without further actions

Pull Request status

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 86.791% when pulling bfbffb29f931ebfc322baec780e6081b5d692ade on saveInstanceInContext into 9c79f9e079f5bc7bdda8007ab74cc3191c66767b on master.