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

Adding new flag for not having the CosmosIndexingPolicy override. #33171

Merged
merged 24 commits into from
Mar 28, 2023

Conversation

trande4884
Copy link
Member

@trande4884 trande4884 commented Jan 25, 2023

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 theCosmosIndexingPolicy` (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:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

… is in portal, with all the tests and documentation changes needed with it.
Copy link
Member

@kushagraThapar kushagraThapar left a 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.

trande4884 and others added 4 commits January 26, 2023 13:45
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>
@azure-sdk
Copy link
Collaborator

azure-sdk commented Jan 26, 2023

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-cosmos
azure-spring-data-cosmos

…BridgeHelpers as they are only needed for Spring.
trande4884 and others added 3 commits March 27, 2023 09:20
…ring/data/cosmos/core/mapping/CosmosIndexingPolicy.java


Updating wording.

Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
@trande4884
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@trande4884
Copy link
Member Author

/check-enforcer evaluate

@trande4884
Copy link
Member Author

/azp run java - cosmos - tests

@trande4884
Copy link
Member Author

/check-enforcer evaluate

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@trande4884
Copy link
Member Author

/azp run java - cosmos - tests

@trande4884
Copy link
Member Author

/check-enforcer evaluate

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@trande4884
Copy link
Member Author

/azp run java - cosmos - tests

@trande4884
Copy link
Member Author

/check-enforcer evaluate

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

LGTM - thanks

@trande4884
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@trande4884
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@trande4884
Copy link
Member Author

/check-enforcer override

@trande4884 trande4884 enabled auto-merge (squash) March 28, 2023 14:53
@trande4884 trande4884 merged commit eac35c2 into Azure:main Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues breaking-change Cosmos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]Cosmos Spring SDK: Adding flag in CosmosIndexingPolicy annotation to indicate override behavior
4 participants