Skip to content

feat(connector): add boolean parameter to connect at construction - #681

Merged
luisremis merged 3 commits into
developfrom
feat/369-connector-connect-boolean
May 19, 2026
Merged

luisremis merged 3 commits into
developfrom
feat/369-connector-connect-boolean

Conversation

@ad-claw000

Copy link
Copy Markdown
Contributor

Closes #369

Added a connect boolean parameter to Connector.__init__ which defaults to False to preserve existing behavior. When connect=True is provided, the Connector will automatically call self.connect() upon initialization, restoring the old behavior.

@ad-claw000 ad-claw000 self-assigned this May 19, 2026
@ad-claw000
ad-claw000 requested a review from luisremis May 19, 2026 12:12

@luisremis luisremis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add test cases for the new functionality

@luisremis
luisremis requested a review from Copilot May 19, 2026 19:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an opt-in connect boolean parameter to Connector.__init__ so callers can restore the pre-existing behavior of connecting at construction time. Default is False to preserve current lazy-connect behavior.

Changes:

  • New connect: bool = False keyword argument on Connector.__init__.
  • When connect=True, self.connect() is invoked at the end of initialization.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ad-claw000 ad-claw000 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added test cases for the connect parameter as requested.

@ad-claw000

Copy link
Copy Markdown
Contributor Author

@luisremis I added test cases for the connect parameter. PTAL!

Copilot AI review requested due to automatic review settings May 19, 2026 20:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@luisremis
luisremis merged commit 8d4fc52 into develop May 19, 2026
5 of 7 checks passed
@luisremis
luisremis deleted the feat/369-connector-connect-boolean branch May 19, 2026 20:25
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.

have a boolean parameter in connector to make in connect at construction (as per the old behavior).

3 participants