feat(plugins): expose task dependencies in plugin and canvas data API (#3794)
Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com> Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
This commit is contained in:
@@ -119,9 +119,11 @@ func (s *Service) webAppHost(binding webapp.CapabilityBinding) *pluginHost {
|
||||
taskWriter: s.taskWriter,
|
||||
taskPRsDep: s.taskPRSourceDep,
|
||||
writeDeps: s.writeDependencies,
|
||||
log: s.log,
|
||||
}
|
||||
}
|
||||
host.pluginID = binding.PluginID
|
||||
host.instanceID = binding.InstanceID
|
||||
host.capabilities = webAppCapabilities(binding.Permissions)
|
||||
return host
|
||||
}
|
||||
@@ -338,6 +340,8 @@ func webAppProtocolStatus(err error) int {
|
||||
return http.StatusConflict
|
||||
case codes.Unimplemented:
|
||||
return http.StatusNotImplemented
|
||||
case codes.ResourceExhausted:
|
||||
return http.StatusInternalServerError
|
||||
default:
|
||||
if errors.Is(err, context.DeadlineExceeded) {
|
||||
return http.StatusGatewayTimeout
|
||||
|
||||
Reference in New Issue
Block a user