Skip to content

Conversation

santgr11
Copy link
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 join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants