Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fixes #1829 bot_engine: rename applicationId to connectorId #1830

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Fabilin
Copy link
Member

@Fabilin Fabilin commented Jan 22, 2025

This PR fixes #1829 by deprecating the applicationId field in the Bus interface and in the various Action classes, and replacing it with a more adequate connectorId.

Backwards compatibility

This PR aims at retaining full source and binary compatibility with existing applications.

In order to keep source compatibility with applications that relied on named parameters, deprecated overloads have been introduced for every public constructor with an applicationId parameter. These deprecated overloads have an additional dummy _deprecatedConstructor argument to get around the otherwise conflicting erased signatures.

This change has been tested with several API-based bots that are affected by the renaming. All of them kept compiling and running without immediate changes. The renaming should be especially painless for developers who use appropriate kotlin IDEs, thanks to the presence of the ReplaceWith annotation.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bot Engine] BotBus.applicationId is confusingly named
1 participant