Skip to content

Conversation

@mbhaskar
Copy link
Member

@mbhaskar mbhaskar commented Dec 3, 2022

Why make this change?

Fixes #960
This PR make sure we honor the database name being set by SWA during runtime configuration

What is this change?

Currently Cosmos picks up the database name from the options in the dab-config.

    "options": {
      "database": "graphqldb",
      "container": "planet",
      "schema": "schema.gql"
    }

This PR enables the ability to set the database through Configuration controller.

How was this tested?

  • Integration Tests
  • Unit Tests

Copy link
Contributor

@seantleonard seantleonard left a comment

Choose a reason for hiding this comment

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

Looks good, nit + question.

Co-authored-by: Sean Leonard <sean.leonard@microsoft.com>
@mbhaskar mbhaskar enabled auto-merge (squash) December 5, 2022 17:07
@mbhaskar mbhaskar merged commit 042c298 into main Dec 5, 2022
@mbhaskar mbhaskar deleted the mbhaskar/dbname_config branch December 5, 2022 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SWA integration: Honor the database name coming from SWA for Cosmos Db instead of the database property in config

6 participants