Closed manish-95 closed 4 years ago
On further exmination of the Microsoft.Bot.Solutions.Proactive versions used by Beta0.8 and 1.0.1 versions, I see that in 0.8, the user role is checked by using if (activity.From.Properties["role"].ToString().Equals("user", StringComparison.InvariantCultureIgnoreCase))
, whereas in 1.0.1, the same is checked for using if (!string.IsNullOrEmpty(activity.From.Role) && activity.From.Role.Equals("user", StringComparison.InvariantCultureIgnoreCase))
. While using WebChat, the Role property is passed as null, hence the ProactiveState document does not get updated.
However, while using emulator, the property of Role is set, and hence the ProactiveState document is updated
@ryanlengel @lzc850612 could you take a look and do an initial pass of this issue?
@manish-95 we have a similarly reported issue around this. @lzc850612 is engaging with our SDK team members there to determine next steps, so I recommend referring to that for updates in the meantime. Once we have alignment on approach, we can handle driving an appropriate resolution for this issue as well.
Issue in question where updates are located: #3614
@peterinnesmsft , I had initially reported that issue on the WebChat Github page, but it seems it transferred to this same repo/team. I will follow-up for any updates on this with the issue mentioned. Thank you! :)
@manish-95, @lzc850612 has checked in a PR related to this which we believe should help address this issue. We will work on actively pushing new releases in the next week or two. In the meantime, can you please take a look and work with him to see if this helps resolve your issue? Thanks!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
@peterinnesmsft, is this resolved? Can it be closed?
Closing due to inactivity
What project is affected?
BotFramework Solutions VA Template(v1.0.1), BotBuilder 4.9.3
What language is this in?
C#
What happens?
The Proactive state document in Cosmos DB does not get immediately updated with the latest conversation details. Due to this, any proactive notifications are not sent to the right conversation. I face this issue when I connect through WebChat, bot in my application, as well as when I access the bot through the "Test in WebChat option" on Azure. Instead, the details are only updated once I invoke a skill dialog. On the Bot Framework Emulator however , there is an immediate update of the conversation details in the ProactiveState document.
In the new VA template, the CosmosDbStorage class has been replaced by CosmosDbPartitionedStorage class, and BotSettings now takes CosmosDbPartitionedStorageOptions as opposed to CosmosDbStorageOptions in older versions. Could this be causing an issue?
What are the steps to reproduce this issue?
What were you expecting to happen?
The Proactive state document must be updated as soon as a new conversation is started, to the latest conversation details.