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

Config flag to enable/disable autocreate Containers(Cosmos SQL API) if not exists #454

Closed
prasadanair opened this issue Nov 7, 2019 · 4 comments
Assignees
Labels

Comments

@prasadanair
Copy link

We are currently using 2.1.7 and have plans to move to 2.1.8(short-term) and 2.2.x(long-term). We are looking for an ability to disable "Auto-create Containers" behaviour of Spring data for CosmosDB, so that clients that are created using resource tokens(instead of master keys) does not fail.

It will be great if this feature is available as part of 2.1.x as well as 2.2.x.

@kushagraThapar
Copy link
Collaborator

@prasadanair , I am implementing this feature in 2.1.8 right now, and just wanted to give you a heads up on my implementation.

I am thinking to include a Boolean field in the @document annotation which gets specified on an entity class. So that for any entity, you can decide if you want to auto create the collections or not.

Other way would be to put a Boolean flag in the properties file, but that will limit the flag to the complete application, and will not provide specific entity collection create ability.

Let me know if this makes sense.

@prasadanair
Copy link
Author

prasadanair commented Dec 22, 2019 via email

@kushagraThapar
Copy link
Collaborator

@prasadanair This has been released in v2.1.9

Will also be released as part of v2.2.1.M2 / v2.2.1 in next few days.

@kushagraThapar
Copy link
Collaborator

This has been released in v2.2.1, closing this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants