Skip to content

Adding fix for incorrectly creating an mcs connector#360

Merged
axelsrz merged 1 commit intomainfrom
users/axsuarez/mcs-connector-fix
Apr 3, 2026
Merged

Adding fix for incorrectly creating an mcs connector#360
axelsrz merged 1 commit intomainfrom
users/axsuarez/mcs-connector-fix

Conversation

@axelsrz
Copy link
Copy Markdown
Member

@axelsrz axelsrz commented Apr 3, 2026

This pull request makes a small change to the logic for creating a MCSConnectorClient in the rest_channel_service_client_factory.py file. Specifically, it removes the check for service URLs starting with "https://pvaruntime", so now the client is only created when the recipient role is connector_user.

@axelsrz axelsrz requested a review from a team as a code owner April 3, 2026 22:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR adjusts the MCS connector client creation logic so that an MCSConnectorClient is created only when the activity recipient role is connector_user, removing a service_url.startswith("https://pvaruntime") shortcut.

Changes:

  • Remove https://pvaruntime service URL prefix check from the MCS connector creation condition.
  • Restrict MCS connector creation to the connector_user recipient role condition only.

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

@axelsrz axelsrz enabled auto-merge (squash) April 3, 2026 22:23
@axelsrz axelsrz disabled auto-merge April 3, 2026 22:24
@axelsrz axelsrz merged commit fa40cb8 into main Apr 3, 2026
14 checks passed
@axelsrz axelsrz deleted the users/axsuarez/mcs-connector-fix branch April 3, 2026 22:24
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.

4 participants