Skip to content
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

Refactor config to use rails 6.1 APIs #30

Merged
merged 10 commits into from
Jan 9, 2024

Conversation

davkutalek
Copy link
Contributor

@davkutalek davkutalek commented Jan 9, 2024

The DatabaseConfigurations is no longer a simple hash and the hash you can get from it is frozen rails/rails#33637

This updates the config so that it correctly manipulates the databaseconfiguration object by creating modifiable duplicates of the config hash.

The tests didn't catch this because if there are no configurations from Rails then it uses an empty hash. The tests are not trying to mock the response from rails, so they use the empty hash which is no longer the same. Ideally they should be updated.

@davkutalek davkutalek changed the title Refactor config to use rails 6+ APIs Refactor config to use rails 6.1 APIs Jan 9, 2024
@davkutalek davkutalek requested a review from amy-hs January 9, 2024 18:06
@davkutalek davkutalek marked this pull request as ready for review January 9, 2024 18:06
@amy-hs amy-hs merged commit adc0070 into amy/major-version-bump Jan 9, 2024
4 checks passed
@amy-hs amy-hs deleted the davkutalek/config-refactor branch January 9, 2024 19:09
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.

2 participants