Skip to content

Remove usage of IN_MEMORY_SETTINGS=true

This fixes:

NoMethodError: undefined method `repository_storages_weighted=' for #<ApplicationSetting:0x00005571f000a5c0>
/data/cache/bundle-2.5/gems/activemodel-6.0.3/lib/active_model/attribute_methods.rb:432:in `method_missing'
/data/cache/bundle-2.5/gems/default_value_for-3.3.0/lib/default_value_for.rb:185:in `block in set_default_values'
/data/cache/bundle-2.5/gems/default_value_for-3.3.0/lib/default_value_for.rb:155:in `each'
/data/cache/bundle-2.5/gems/default_value_for-3.3.0/lib/default_value_for.rb:155:in `set_default_values'
/data/cache/bundle-2.5/gems/activesupport-6.0.3/lib/active_support/callbacks.rb:428:in `block in make_lambda'
...
/home/git/gitlab/app/models/concerns/cacheable_attributes.rb:33:in `build_from_defaults'
/home/git/gitlab/lib/gitlab/current_settings.rb:68:in `in_memory_application_settings'
/home/git/gitlab/lib/gitlab/current_settings.rb:34:in `cached_application_settings'

Using IN_MEMORY_SETTINGS is broken, as DB model is incomplete.

Merge request reports

Loading