You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes permissions for a given config are not known at the beginning of an integration execution. These permissions may ultimately decide which steps are able to be executed. For example, in the Google Cloud integration, we do not know strictly from the config passed to the integration whether specific APIs have been enabled in the Google Cloud account or whether the integration has the correct scopes for steps to be invoked. As past of the getStepStartStates function in the Google Cloud integration, we would make a request to fetch this information and properly decide which steps can be invoked ahead of time.
Problem
Sometimes permissions for a given config are not known at the beginning of an integration execution. These permissions may ultimately decide which steps are able to be executed. For example, in the Google Cloud integration, we do not know strictly from the config passed to the integration whether specific APIs have been enabled in the Google Cloud account or whether the integration has the correct scopes for steps to be invoked. As past of the
getStepStartStates
function in the Google Cloud integration, we would make a request to fetch this information and properly decide which steps can be invoked ahead of time.The current value of the return type of
getStepStartStates
can be found here: https://github.com/JupiterOne/sdk/blob/master/packages/integration-sdk-core/src/types/config.ts#L16Proposal
Change implementation of
getStepStartStates
inInvocationConfig
to support sync and async methods:The text was updated successfully, but these errors were encountered: