Skip to content

Conversation

Nuzair46
Copy link
Member

Continuation for #353
Fixes #352

@Nuzair46 Nuzair46 marked this pull request as ready for review August 21, 2025 10:32
@Copilot Copilot AI review requested due to automatic review settings August 21, 2025 10:32
@Nuzair46
Copy link
Member Author

@pkuczynski @vovanmozg @Fryguy
Please take a look at this PR.
Its continuing the work by @vovanmozg in #353

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR blocks the reloading of configuration files in the Rails Railtie if they have already been uploaded, preventing duplicate loading of settings. The change adds a guard clause to check if the configuration constant is already defined before proceeding with the default configuration loading.

Key changes:

  • Added guard clause in Railtie to prevent duplicate config loading
  • Enhanced test coverage for Rails context configuration scenarios
  • Updated documentation to clarify custom settings file loading

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
lib/config/integrations/rails/railtie.rb Added guard clause to prevent reloading if config constant already exists
spec/config_spec.rb Added comprehensive test suite for Rails context configuration loading
spec/config_env_spec.rb Added ENV backup/restore functionality for test isolation
spec/app/rails_*/config/boot.rb Added logger requirement across Rails test apps
spec/app/rails_5.2/config/application.rb Commented out config_available? call for test context
README.md Added documentation for custom settings file loading

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Rails integration does not allow multiple YAML files to be specified in the first load
3 participants