Skip to content

Updated to allow specifying Cosmos Db partition key path#6

Merged
f1x3d merged 3 commits into
f1x3d:mainfrom
andrewdmoreno:features/allow-customized-cosmos-pk
Aug 29, 2024
Merged

Updated to allow specifying Cosmos Db partition key path#6
f1x3d merged 3 commits into
f1x3d:mainfrom
andrewdmoreno:features/allow-customized-cosmos-pk

Conversation

@andrewdmoreno

Copy link
Copy Markdown
Contributor

This PR is a proposal to allow the partition key to be variable in the same manner as the DatabaseName and ContainerName. In many cases users will not have the partition key as /pk and they should be able to use an alternative value.

@andrewdmoreno

Copy link
Copy Markdown
Contributor Author

My apologies, I should have made this backwards compatible to default to '/pk' for any existing users. If you think this PR has merit let me know and I can continue implement that. Or if you have suggestions on how to best do so, I'm open to that as well.

@f1x3d f1x3d left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I like the idea, please feel free to proceed with the changes

Comment thread DistributedLeaseManager.AzureCosmosDb/ServiceCollectionExtensions.cs Outdated
Comment thread DistributedLeaseManager.AzureCosmosDb/DistributedLeaseCosmosDbOptions.cs Outdated
Andrew Moreno and others added 2 commits August 29, 2024 12:07
…ious version of the extension methods and also the default value of `/pk` for the partition key path.
@f1x3d
f1x3d merged commit 367b9b4 into f1x3d:main Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants