-
Notifications
You must be signed in to change notification settings - Fork 486
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
CosmosDbPartitionedStorage using v3 SDK. #2613
Conversation
Edit: I am the dumb. |
@mdrichardson Database creation in the Azure portal doesn't require the partition key path - container creation does (at least from my testing so far). We handle the container, but the user handles the master database. |
@garypretty Ah, shoot. You're right. Disregard. |
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.3.1 |
libraries/Microsoft.Bot.Builder.Azure/CosmosDbPartitionedStorage.cs
Outdated
Show resolved
Hide resolved
libraries/Microsoft.Bot.Builder.Azure/CosmosDbPartitionedStorage.cs
Outdated
Show resolved
Hide resolved
LGTM. Read, Write, and Delete all worked. When writing tests for this, I wouldn't base them off of the existing PartitionKey tests...they don't accurately reflect how the SDK works. |
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.3.1 |
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.
Needs tests. Removing approval.
…ensure all base storage tests pass.
@mdrichardson I have now added tests. I am running all of the base storage tests and all tests are passing. Also made an amendment to the storage class itself to handle reading multiple keys (I realize this isn't something we do at the moment, but I wanted to ensure consistency between the different storage providers). |
Pull Request Test Coverage Report for Build 81133
💛 - Coveralls |
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.3.1 |
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.
LGTM. Ran all of the tests and watched storage change appropriately as the tests hit a number of breakpoints. Good stuff!
New partitioned storage provider now in C# with other language implementations following shortly. |
Addresses DCR #5467 microsoft/botframework-sdk#5467
@cleemullins @mdrichardson This is the initial version of the new CosmosDbPartitionedStorage class - I would appreciate your review before I move any further forward.
Tests still need adding following initial review.