Skip to content

Return db_config from resolve_config_for_connection - #37368

Merged
eileencodes merged 1 commit into
rails:masterfrom
seejohnrun:resolve-configuration-with-db-config
Oct 21, 2019
Merged

eileencodes merged 1 commit into
rails:masterfrom
seejohnrun:resolve-configuration-with-db-config

Conversation

@seejohnrun

Copy link
Copy Markdown
Member

Rather than return a configuration hash from
resolve_config_for_connection which also discards the env_name and
spec_name, return a DatabaseConfig object!

Also make this method private since it's only used inside this class.

cc / @eileencodes

@eileencodes
eileencodes force-pushed the resolve-configuration-with-db-config branch 2 times, most recently from eaeb6ea to 7636cf1 Compare October 16, 2019 20:11
@eileencodes eileencodes self-assigned this Oct 16, 2019
@eileencodes

Copy link
Copy Markdown
Member

If anyone sees this is green, don't merge yet. Railties will start failing when run in isolation mode due to a change in the schema cache (I think).

Rather than return a configuration hash from
`resolve_config_for_connection` which also discards the `env_name` and
`spec_name`, return a `DatabaseConfig` object!

Also make this method private since it's only used inside this class.

Co-authored-by: eileencodes <[email protected]>
@eileencodes
eileencodes force-pushed the resolve-configuration-with-db-config branch from 7636cf1 to 801cd88 Compare October 21, 2019 13:32
@eileencodes

Copy link
Copy Markdown
Member

AJ tests on 2.5 are failing on other branches so I'm going to merge this because I don't think it's related.

@eileencodes
eileencodes merged commit 96c965e into rails:master Oct 21, 2019
@eileencodes
eileencodes deleted the resolve-configuration-with-db-config branch October 21, 2019 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants