-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PORT] Bot Change Detection #3804
Conversation
Add dialog.GetVersion() Add DialogSet.GetVersion() Add DialogContainer.GetInternalVersion() Add DialogContainer.CheckForVersionChange() Implement AdaptiveDialog.GetInternalVersion() to detect triggers, schema as well as dialog changes Unit tests, etc.
libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/AdaptiveDialog.cs
Outdated
Show resolved
Hide resolved
/// GetInternalVersion - Returns internal version identifier for this container. | ||
/// </summary> | ||
/// <remarks> | ||
/// DialogContainers detect changes of all sub-components in the container and map that to an DialogChanged event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DialogChanged [](start = 102, length = 13)
Should be: VersionChanged
@@ -5,10 +5,34 @@ namespace Microsoft.Bot.Builder.Dialogs | |||
{ | |||
public class DialogEvents | |||
{ | |||
/// <summary> | |||
/// Event fired when a dialog beginDialog() is called. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beginDialog [](start = 38, length = 11)
Should be: BeginDialogAsync()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've got no usefull feedback to add. LGTM with @Stevenic signed off
sb.Append(trigger.GetExpression().ToString()); | ||
} | ||
|
||
return Convert.ToBase64String(SHA256.Create().ComputeHash(Encoding.UTF8.GetBytes(sb.ToString()))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is in several places. Worth moving to a shared static somewhere?
Add DialogContainer.CheckForVersionChange() - which is called on BeginDialog/ContinueDialog/ResumeDialog() to detect that a dialogContainer has changed
Unit tests, etc.