Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Conversation

@sukima
Copy link

@sukima sukima commented Oct 17, 2017

As it stands the DATABASE_URL will override anything in dossier.yml. Some configurations need those values especially in the database name.

For example where the DATABASE_URL might look like this:

postgres://postgres@postgres:5432/

With a dossier.yml:

development:
  database: my_database_dev

Would have caused Dossier to break complaining that Database "/" does not exist

Further still with a DATABASE_URL that has the trailing slash removed dossier will assume the database name is "" (empty string)

This is especially problematic when the database name changes based on the RAILS_ENV.

As it stands the DATABASE_URL will override anything in dossier.yml.
Some configurations need those values especially in the database name.

For example where the DATABASE_URL might look like this:

    postgres://postgres@postgres:5432/

With a dossier.yml:

    development:
      database: my_database_dev

Would have caused Dossier to break complaining that **Database "/" does
not exist**

Further still with a DATABASE_URL that has the trailing slash removed
dossier will assume the database name is "" (empty string)

This is especially problematic when the database name changes based on
the RAILS_ENV.
@coveralls
Copy link

coveralls commented Oct 17, 2017

Coverage Status

Coverage decreased (-38.1%) to 61.875% when pulling 540c556 on C-S-D:dbnamefix into 81564d5 on tma1:master.

@coveralls
Copy link

coveralls commented Oct 17, 2017

Coverage Status

Coverage decreased (-38.1%) to 61.875% when pulling f767d8b on C-S-D:dbnamefix into 81564d5 on tma1:master.

@sukima
Copy link
Author

sukima commented Oct 17, 2017

The method is executed as part of the specs already in place. How could that one method equate to 38% of the code?! Something is very wrong with coveralls!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants