-
Notifications
You must be signed in to change notification settings - Fork 282
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: update and delete activities from skill handler #2912
Conversation
Note: this PR is based on |
3e027bd
to
5c3eca0
Compare
5c3eca0
to
e92ced2
Compare
Verified this change by doing the following:
|
* [PORT] DialogContextMemoryScope (#2895) * added DialogContextMemoryScope * removed setMemory implementation in dialog context memory scope Co-authored-by: Josh Gummersall <[email protected]> Co-authored-by: Steven Gum <[email protected]> * exclude browser*.js from bf-connector .nycrc * other minor cleanup in bf-connector * Change vmImage to ubuntu for all JS pipelines (#2931) * Switch to ubuntu vmimage * Tweak sed commands * Add ubuntu to the other builds * Add var NoPublish * Fix NoPublish logic * Rename var to DoNotPublishPackages * Remove DoNotPublishPackages functionality. Instead we limit automatic releases to main branch. * Fix Package Names task Co-authored-by: Steven Gum <[email protected]> Co-authored-by: Zichuan Ma <[email protected]> Co-authored-by: Josh Gummersall <[email protected]> Co-authored-by: BruceHaley <[email protected]>
…te-delete-activities
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.
// Note: the original activity ID is passed back here to provide "behavioral" parity with the C# SDK. Due to | ||
// some inconsistent method signatures, the proper response is not propagated back through `context.updateActivity` | ||
// so we have to manually pass this value back. | ||
return { id: activityId }; |
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 is painful but true... Truth be told, I don't understand the scenario where I would need the activity.id of the activity I just updated (when I needed the activity.id to update it). Especially because the activity.id doesn't change on update. But we might as well take it. 😅
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.
We should resolve this entirely by making the updateActivity
method return a response as it does in C#. I'll file a separate issue for that parity work.
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.
Fixes #1995
I slightly refactored the
SkillHandler
to share more common functionality across events. A newcontinueConversation
method is introduced that accepts acallback
parameter that itself accepts some parameters common across the various skill events.Large test diff is again due to a refactor that better leverages Sinon for mocks/expectations rather than manually patching instances and using
assert
. Also, some of the test cases that used to targetprocessActivity
now targetcontinueConversation
.