feat(cosmos): Expand impl Into<PartitionKey> Examples and Tests#4220
feat(cosmos): Expand impl Into<PartitionKey> Examples and Tests#4220raushan728 wants to merge 2 commits intoAzure:release/azure_data_cosmos-previewsfrom
impl Into<PartitionKey> Examples and Tests#4220Conversation
|
Thank you for your contribution @raushan728! We will review the pull request and get back to you soon. |
There was a problem hiding this comment.
Pull request overview
This PR enhances Cosmos partition key usability and discoverability by expanding documentation examples around the impl Into<PartitionKey> pattern and adding unit tests that exercise additional supported partition key input types and edge cases.
Changes:
- Added doc examples to the various
Fromconversions used byPartitionKey/PartitionKeyValue. - Added missing
From<bool>implementation forPartitionKeyValue. - Expanded unit tests to cover booleans, additional string forms, hierarchical tuples,
Option<T>behavior, and NaN/Infinity panics.
cfca5f3 to
5b42f95
Compare
|
/azp run |
|
Commenter does not have sufficient privileges for PR 4220 in repo Azure/azure-sdk-for-rust |
5b42f95 to
3eef7f8
Compare
|
Hi @raushan728 ! Thanks for the contribution. We're actually working out of a release branch right now. Would you mind rebasing your changes on |
3eef7f8 to
0503cff
Compare
|
@analogrelay Done! Rebased on |
analogrelay
left a comment
There was a problem hiding this comment.
Looks good. FYI, this type will be merging with the one in azure_data_cosmos_driver in the near future, but we can ensure that includes these changes as well :).
…examples-issue-3570
Closes #3570
From<bool>implementationFromimpls#[should_panic]tests for NaN and Infinity edge cases