Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Fix get_skill_conversation_reference in skill_handler#1728

Merged
tracyboehrer merged 2 commits intomicrosoft:mainfrom
southworks:southworks/fix/skill_handler_get_reference
Jun 22, 2021
Merged

Fix get_skill_conversation_reference in skill_handler#1728
tracyboehrer merged 2 commits intomicrosoft:mainfrom
southworks:southworks/fix/skill_handler_get_reference

Conversation

@santgr11
Copy link
Copy Markdown
Contributor

#minor

Description

This PR adds a validation in skill_handler.py for the get_skill_conversation_reference method.
This missing validation was causing an error in bots with a custom SkillConversationIdFactory class, building the reference in the get_conversation_reference method, and being over nested.

This issue was introduced in PR #1691, for ISSUE #1687.

With the change in this PR, the users can still use their previous implementation of the SkillConversationIdFactory.

The bots used to test are the WaterfallHostBot Python and WaterfallSkillBot Python from the BotFramework-FunctionalTests repo.

The BotBuilder version used for all the packages is the most recent as of today from the main branch of this repo.

Specific Changes

  • Added an if to check if the conversation_reference is already a SkillConversationReference instance and return it.

Testing

Before the change the Host Bot throws the following errors in the step shown, using the current latest version of main from botbuilder-core.
image
image

After applying the changes in this PR, the conversation works as expected.
image

@tracyboehrer tracyboehrer merged commit 167da30 into microsoft:main Jun 22, 2021
@santgr11 santgr11 deleted the southworks/fix/skill_handler_get_reference branch June 22, 2021 17:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants