Skip to content

Commit

Permalink
Fix versioning connection settings for databases
Browse files Browse the repository at this point in the history
  • Loading branch information
erinkcochran87 committed Apr 28, 2020
1 parent 4e73c36 commit 55447dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions _data/ui/database-integration-settings/mongo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,21 @@ mongodb:
- &auth-database
name: "Authentication Database"
version: "1"
version: "1, 2"
copy: |
Enter the name of the Stitch user's [authentication database](https://docs.mongodb.com/v3.4/core/security-users/#user-authentication-database){:target="new"}. This is the name of the database where the Stitch user was initially created.
**Note:** If you're connecting an Atlas-based {{ integration.display_name }} instance, this must be the `admin` database. See the [Create a Mongo database user section](#create-database-user) for more info on this requirement.
- &replica-set
name: "Replica Set"
version: "1"
version: "1, 2"
copy: |
**Optional.** The name of the replica set to be used for Log-based Incremental Replication.
- &schema-name
ame: *schema-names-tables-name
version: "1"
name: *schema-names-tables-name
version: "1, 2"
copy: *schema-names-tables-description


Expand Down
2 changes: 1 addition & 1 deletion _includes/shared/database-connection-settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{% if page.permalink contains "integrations" %}
{% if page.this-version %}
{% assign all-connection-settings = site.data.ui.database-integration-settings.[page.db-type].[page.name] %}
{% assign versioned-connection-settings = all-connection-settings | where:"version",page.this-version %}
{% assign versioned-connection-settings = all-connection-settings | where_exp:"field","field.version contains page.this-version" %}
{% assign connection-settings = all-connection-settings | where:"version","all" | concat: versioned-connection-settings %}

{% else %}
Expand Down

0 comments on commit 55447dc

Please sign in to comment.