Skip to content
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

fix partition key format for non-partitioned container bulk #30250

Merged
merged 5 commits into from
Aug 1, 2024

Conversation

aditishree1
Copy link
Member

@aditishree1 aditishree1 commented Jul 1, 2024

Packages impacted by this PR

@azure/cosmos

Issues associated with this PR

Describe the problem that is addressed by this PR

This PR fixes the partition key format for bulk delete, patch, and read operations. Due to wrong partition key format, these operations were failing in bulk operations.
It also manages the partition key format in batch operations for non-partitioned containers or containers without a predefined partition key.

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

yes

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@github-actions github-actions bot added the Cosmos label Jul 1, 2024
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@aditishree1 aditishree1 marked this pull request as ready for review July 2, 2024 06:17
Copy link
Member

@topshot99 topshot99 left a comment

Choose a reason for hiding this comment

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

check comments

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@aditishree1 aditishree1 requested a review from topshot99 July 22, 2024 04:48
@aditishree1
Copy link
Member Author

/azp run js - cosmosdb - ci

Copy link

Azure Pipelines failed to run 1 pipeline(s).

@aditishree1
Copy link
Member Author

/azp run js - cosmosdb - ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@topshot99 topshot99 left a comment

Choose a reason for hiding this comment

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

overall LGTM, Just had few concerns with documentation.

@aditishree1 aditishree1 requested a review from topshot99 August 1, 2024 11:52
Copy link
Member

@topshot99 topshot99 left a comment

Choose a reason for hiding this comment

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

:shipit:

@aditishree1 aditishree1 merged commit 3676e9f into Azure:main Aug 1, 2024
13 checks passed
aditishree1 added a commit that referenced this pull request Oct 16, 2024
### Packages impacted by this PR
@azure/cosmos

### Issues associated with this PR


### Describe the problem that is addressed by this PR
This PR cherry-picks the commits from
#30250 to beta branch.


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Aditishree . <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants