Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-06-19If migrations are pending, make CurrentSettings use existing values and ↵Stan Hu
populate missing columns with defaults master was failing because `ApplicationSetting.create_from_defaults` attempted to write to a column that did not exist in the database. This occurred in a `rake db:migrate` task, which was unable to perform the migration that would have added the missing column in the first place. In 9.3 RC2, we also had a bug where password sign-ins were disabled because there were many pending migrations. The problem occurred because `fake_application_settings` was being returned with an OpenStruct that did not include the predicate method `signup_enabled?`. As a result, the value would erroneously return `nil` instead of `true`. This commit uses the values of the defaults to mimic this behavior. This commit also refactors some of the logic to be clearer.
2017-06-06redesign caching of application settingsPaul Charlton
2017-05-01Auto-correct `RSpec/DescribedClass` violationsRobert Speicher
2017-01-23Revert "Merge branch 'revert-9cac0317' into 'master' "Grzegorz Bizon
This reverts commit c20934869f7dc8cfbdbafb6ecb7b1305452c9e8a, reversing changes made to 4b7ec44b91e0571d209c790d54947ba1756dac0e.
2017-01-22Revert "Merge branch 'dont-persist-application-settings-in-test-env' into ↵Grzegorz Bizon
'master'" This reverts merge request !8573
2017-01-15Don't persist ApplicationSetting in test envRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-30Handle case when Redis cache returns an empty settingStan Hu
2016-06-30Fix database migrations when Redis is not runningStan Hu
If Redis were not running or USE_DB were set to false, the application settings retrieval would fail completely. This change only attempts to use the cache if the system actually wants to connect to the DB and rescues any failures in talking to Redis. Closes #17557