-
Notifications
You must be signed in to change notification settings - Fork 331
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
table store batch to reject batches with different partitionkeys #2333
base: main
Are you sure you want to change the base?
table store batch to reject batches with different partitionkeys #2333
Conversation
…s in a batch when processing batch table operations
Reviewing |
Feel free to let me know if you need any assistance on this PR reviewing. |
batchContextClone: any | ||
) { | ||
if (this.partitionKeyMap.size > 0) { | ||
console.log("checking for differing partition keys"); |
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.
please remove console.log calls
@@ -604,4 +604,46 @@ describe("table Entity APIs test", () => { | |||
|
|||
await tableClientrollback.deleteTable(); | |||
}); | |||
|
|||
//Skips this test because it requires modifying the Azure Data Tables client so that it does not perform a check for partition key consistency before submitting the batch. | |||
it.skip("10. Batch API should fail when attempting to insert elements with different partitionkeys in same batch, @loki", async () => { |
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.
Please look at the table.entity.rest.test.ts file, there is an example of a batch request in there, which you can use to simulate this request.
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.
I am just updating the tests, which should make this easier for you
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.
It is taking a while to convert all the REST tests to the new method and remove dependencies, hope to be done by the end of the week.
Thanks for contribution! Please go through following checklist before sending PR.
This PR fixes issue #1215
PR Branch Destination
main
branch.legacy-dev
branch.Always Add Test Cases
Test case is added but skipped since it requires modifications to the azure table client dependency to run properly. This is because the client perform the same check. This is, howevernot true for all clients.
Add Change Log
Add change log for the code change in
Upcoming Release
section inChangeLog.md
.Development Guideline
Please go to CONTRIBUTION.md for steps about setting up development environment and recommended Visual Studio Code extensions.