Skip to content

Refactor ConnectorClient methods to remove 'Async' suffix #477

Merged
rido-min merged 1 commit intomainfrom
fix/rm-async-suffix
Jul 21, 2025
Merged

Refactor ConnectorClient methods to remove 'Async' suffix #477
rido-min merged 1 commit intomainfrom
fix/rm-async-suffix

Conversation

@rido-min
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 21, 2025 21:04
@rido-min rido-min enabled auto-merge (squash) July 21, 2025 21:04
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

This PR refactors the ConnectorClient class methods by removing the 'Async' suffix from method names to follow JavaScript/TypeScript naming conventions where async methods don't require an explicit 'Async' suffix.

  • Renamed 7 ConnectorClient methods to remove 'Async' suffix (e.g., replyToActivityAsyncreplyToActivity)
  • Updated all method calls throughout the codebase to use the new naming convention
  • Updated test files to mock the renamed methods correctly

Reviewed Changes

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

File Description
packages/agents-hosting/src/connector-client/connectorClient.ts Renamed 7 async methods by removing 'Async' suffix from method names
packages/agents-hosting/src/cloudAdapter.ts Updated all ConnectorClient method calls to use new method names without 'Async' suffix
packages/agents-hosting/test/hosting/adapter/cloudAdapter.test.ts Updated mock method names to match the refactored ConnectorClient methods

@rido-min rido-min merged commit 085983e into main Jul 21, 2025
6 checks passed
@rido-min rido-min deleted the fix/rm-async-suffix branch July 21, 2025 21:15
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.

3 participants