-
Notifications
You must be signed in to change notification settings - Fork 288
Reading CosmosDB options from data-source section #1003
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
Conversation
|
Do any of the existing CosmosDB config files need to be changed to be compatible with this change? Doesn't this modify how the config file should be parsed, which maybe I missed config file changes in a different PR? |
Fixing Init tests
The dab-config file is the one that changes. Ayush had a PR that changes CLI to generate options inside the data-source |
ayush3797
left a comment
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!
| _graphQLSingularTypeToEntityNameMap = _runtimeConfig.GraphQLSingularTypeToEntityNameMap; | ||
|
|
||
| CosmosDbOptions? cosmosDb = _runtimeConfig.CosmosDb; | ||
| CosmosDbOptions? cosmosDb = _runtimeConfig.DataSource.CosmosDbNoSql; |
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.
nit: this section looks like it could be simplified. the conditional could just check _runtimeConfig.DataSource.CosmosDbNoSql for null and assign that value to _cosmosDb if not null.
seantleonard
left a comment
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.
one nit
Why make this change?
Fixes #959
Reading comsos options from data-source/options instead of "cosmos" object.
Follow up of PR #993
What is this change?
This PR initalizes comsos metadata provider with cosmos database, container and schema options read from data-source/options path
How was this tested?
Existing test should be good.
Sample Request(s)