feat(integrations): Update example integration for api pipeline#113350
Conversation
Backend Test FailuresFailures on
|
bec3dfa to
5fe974e
Compare
5fe974e to
20a4328
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 20a4328. Configure here.
|
|
||
| def build_integration(self, state: Mapping[str, Any]) -> IntegrationData: | ||
| return {"external_id": state["name"]} | ||
| return {"external_id": state.get("name", "example")} |
There was a problem hiding this comment.
Silent default masks missing pipeline state errors
Low Severity
The combination of get_pipeline_views() returning [] and build_integration using state.get("name", "example") means the legacy HTML setup path now silently auto-installs an integration with external_id="example" on any GET request — no user input required. Previously, the pipeline showed a form and state["name"] would fail-fast with a KeyError if the name wasn't bound. The silent fallback could mask real pipeline state binding failures in the API flow too, creating integrations with a hardcoded "example" external_id instead of surfacing the error.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 20a4328. Configure here.
20a4328 to
5e6a694
Compare


No description provided.