-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Adding new flag for not having the CosmosIndexingPolicy override. #33171
Adding new flag for not having the CosmosIndexingPolicy override. #33171
Conversation
… is in portal, with all the tests and documentation changes needed with it.
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.
Thanks @trande4884 for this work, requested some changes.
sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java
Outdated
Show resolved
Hide resolved
...ata-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosIndexingPolicy.java
Outdated
Show resolved
Hide resolved
...ata-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/CosmosIndexingPolicy.java
Outdated
Show resolved
Hide resolved
Updating wording. Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
Updating wording. Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
Updating wording. Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
Updating wording. Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
API change check APIView has identified API level changes in this PR and created following API reviews. |
…BridgeHelpers as they are only needed for Spring.
…ring/data/cosmos/core/mapping/CosmosIndexingPolicy.java Updating wording. Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
…o trande_CosmosIndexingPolicy
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/check-enforcer evaluate |
/azp run java - cosmos - tests |
/check-enforcer evaluate |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - cosmos - tests |
/check-enforcer evaluate |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - cosmos - tests |
/check-enforcer evaluate |
Azure Pipelines successfully started running 1 pipeline(s). |
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 - thanks
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/check-enforcer override |
Description
Adding new flag for not having the CosmosIndexingPolicy override what is in portal, with all the tests and documentation changes needed with it.
This is a breaking change because under the current functionality, the
CosmosIndexingPolicy
defined on a container overwrites what is in portal or while deploying an update of the Spring app containing changes to the index policy overwrites between the competing versions of the application. However, under the new implementation we will not overwrite the index policy for existing containers unless the flag 'overwritePolicyis manually set to true by the user on the
CosmosIndexingPolicy` (the default is false). This breaking change is introduced because the competing updates to the index policy can have sever livesite implication.If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines