Skip to content

fix: resolve circular import in event connector refactoring#208

Closed
Copilot wants to merge 2 commits intorefactor/event-connector-uxfrom
copilot/sub-pr-200
Closed

fix: resolve circular import in event connector refactoring#208
Copilot wants to merge 2 commits intorefactor/event-connector-uxfrom
copilot/sub-pr-200

Conversation

Copy link
Contributor

Copilot AI commented Feb 7, 2026

Summary

Fixes circular import introduced in the event connector UX refactoring. The module-level import of EventConnectorSpecBuilder in connector_builder.py created a dependency cycle: connectorconnector_builderevent_connector_spec_buildercomponentio_controllerconnector.

Changes

  • Moved EventConnectorSpecBuilder import from module level to inside build_event_connectors() method in connector_builder.py
  • Late import breaks the circular dependency while preserving all functionality

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Moved EventConnectorSpecBuilder import to be a late import inside the build_event_connectors method to break the circular dependency chain:
- connector -> connector_builder -> event_connector_spec_builder -> component -> io_controller -> connector

The late import ensures the module is only loaded when the method is called, after all other modules are fully initialized.

Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor event connector UX for simplified user experience fix: resolve circular import in event connector refactoring Feb 7, 2026
Copilot AI requested a review from toby-coleman February 7, 2026 13:41
@toby-coleman
Copy link
Contributor

Rejecting in favour or 18b96d5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants