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
Add workflow executor proxy routes to the Forest Admin agent
Adds a new WorkflowExecutorProxy route class in workflow_executor_proxy.rb that mounts GET /_internal/workflow-executions/:run_id and POST /_internal/workflow-executions/:run_id/trigger when workflow_executor_url is configured.
Forwards matching requests to the configured executor via Faraday, passing through Authorization and Cookie headers, scalar query params, and request body; relays back status, body, and Content-Type.
Adds workflow_executor_url as a configurable setting (default nil) in forest_admin_rails.rb.
Returns 404 if no executor URL is configured, and 503 if the executor is unreachable or times out.
The reason will be displayed to describe this comment to others. Learn more.
Function with high complexity (count = 5): forwarded_request_headers [qlty:function-complexity]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add workflow executor proxy routes to the Forest Admin agent
WorkflowExecutorProxyroute class in workflow_executor_proxy.rb that mountsGET /_internal/workflow-executions/:run_idandPOST /_internal/workflow-executions/:run_id/triggerwhenworkflow_executor_urlis configured.AuthorizationandCookieheaders, scalar query params, and request body; relays back status, body, andContent-Type.workflow_executor_urlas a configurable setting (defaultnil) in forest_admin_rails.rb.Macroscope summarized b5f90d2.