-
Notifications
You must be signed in to change notification settings - Fork 481
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
Remove use of dynamic from Storage APIs #425
Conversation
* Removes: `FlexObject`, `StoreItem`, `StoreItem` * Updated all storage providers to take/return `IEnumerable<KeyValue<string, object>>` instead of `StoreItems` * Updated all tests and samples to reflect these changes (passing)
Note: Test failures related to the Transcript tests are fixed in PR #426. The tests work on my machine after that PR. |
@tomlm, please take a look. Let's get this in as part of the M3 code. |
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.
@tomlm Crap. Build is failing. I'll look this evening. |
John & I have been banging on this for a bit. We've found 1 "for sure" bug in the new MemoryStore, in that it's not preserving the typnames of collections. The 2nd bug is that the STack used in DialogSet appears to be reversed after it's round tripped. John is working on fixing. Note: The changes to the Memory Store to actually serialize to JSON - giving it a behavior more similar to the File / Blob / Table stores is very useful. It means the failure modes are (hopefullly) the same, and the Memory store isn't just different. John is will working on this, while I need to sleep.. (1AM). |
The right setting for the JsonSerializer for the collection preservation is: Note: the File / Table stores already had this. |
Turns out a "Stack" serialized via JSON.Net, gets reversed. Known problem with Netwonsoft, with various workarounds. Oiy. https://stackoverflow.com/questions/39137123/jsonconvert-deserializer-indexing-issues |
* initial commit for Teams work * initial commit for Teams * adding teams activity handler, team info, and teams channel account classes * adding conversation update scenario * fixing linting issues * updating classes to use standard attrs * cleaning up PR feedback * adding line * adding another blank line * adding mentions bot and fixing bug for resource response IDs * Threading helper workaround * Corrected case of "teams" folder name in core. Corrected __init__.py in schema so TeamsChannelAccount was defined. * adding mention bot updating mention bot cleaning up linter removing readme, removing self from on_error * resolving merge conflict * adding mention bot cleaning up linter * updating linting * adding mention bot updating mention bot cleaning up linter removing readme, removing self from on_error * resolving merge conflict * adding mention bot cleaning up linter * updating linting * Added 43.complex-dialog * Pinned dependencies in all libraries * adding activity update and delete * adding list for activities * cleaning up config * Pinned dependencies in libraries (missed some setup.py) * modify echo to work out of the box w/ ARM template * Added 47.inspection (microsoft#381) * Added 47.inspection, corrected README in 45.state-management * Changed the on_error function to be unbound for consistency. * ChoiceFactory.for_channel was erroneously returning a List instead of an Activity (microsoft#383) * Refactored to unbound on_error methods when accessing outer app.py va… (microsoft#385) * Refactored to unbound on_error methods when accessing outer app.py variables. * Removed unused imports * Added 16.proactive-messages (microsoft#413) * Added 19.custom-dialogs (microsoft#411) * Fix ChoicePrompt ListStyle.none when set via PromptOptions (microsoft#373) * fix ChoicePrompt none style when set via options * black compat * Added 18.bot-authentication (microsoft#419) * Added 17.multilingual-bot * Added 23.facebook-events sample * 23.facebook-events: on_error is now an unbound function * Partial 15.handling-attachments * Removing unnecesary encoding * Added 15.handling-attachments * 17.multilingual-bot suggested corrections * 15.handling-attachments suggested corrections * pylint and black, suggested corrections. * pylint and black changes. No logic changes. (microsoft#427) * Fixes microsoft#425: Using incorrect BotState (microsoft#426) * Added send_activities and updated the logic * pylint: Added send_activities and updated the logic * pylint: Added send_activities and updated the logic * black formatter: Added send_activities and updated the logic * Added 11.qnamaker (microsoft#429) * Added 40.timex resolution (microsoft#430) * Unfinished push until recognizers-text is updated. * Added 40.timex-resolution * Added 42.scaleout (microsoft#435) * Pinned pytest version (microsoft#438) * updating linting * fixing linting * initial commit for Teams work * initial commit for Teams * adding teams activity handler, team info, and teams channel account classes * adding conversation update scenario * fixing linting issues * updating classes to use standard attrs * cleaning up PR feedback * adding line * adding another blank line * Corrected case of "teams" folder name in core. Corrected __init__.py in schema so TeamsChannelAccount was defined. * removing extension file * resovling conflict * more merge conflict resolution * fixing linting * fixing conflicts * adding updated teams activity handler * updating None check * updating activity handler and fixing spacing issue * updating activity handler and tests * updating teams activity handler * removing constant * adding tests and removing constant * moving scenarios to root * updating attr check, using .seralize(), removing return * rerunnign black * updating names * updating loop to downcast * member not memeber * adding s
FlexObject
,StoreItem
,StoreItem
IEnumerable<KeyValue<string, object>>
instead ofStoreItems