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
2020-09-04Add latest changes from gitlab-org/gitlab@13-3-stable-eeGitLab Bot
2020-07-20Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot
2020-04-20Add latest changes from gitlab-org/gitlab@12-10-stable-eeGitLab Bot
2020-02-17Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-08-07Save instance administration project id in DBReuben Pereira
- This will make it easy to identify the project even if admins change the name of the project or move it.
2019-07-26Add frozen_string_literal to spec/lib (part 1)Thong Kuah
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-12Upgrade to Rails 5.2Heinrich Lee Yu
Updates changed method names and fixes spec failures
2019-03-28Apply suggestion to spec/lib/gitlab/current_settings_spec.rbLin Jen-Shin
2019-03-27Use a Gitlab::FakeApplicationSettings when migrations are pendingRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-02-27Fix misspellings in app/spec executable linesTakuya Noguchi
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2019-02-19Revert "Merge branch 'use_gitlab_current_settings' into 'master'"Bob Van Landuyt
This reverts merge request !25370
2019-02-19Use Gitlab::CurrentSettings in UrlValidatorThong Kuah
Gitlab::CurrentSettings will create ApplicationSetting.current if not present which means we don't have to use `&.`. We can also more easily use stub_application_setting in specs
2018-12-19Simplify spec/lib/gitlab/current_settings_spec.rb a bitRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-12-19Method `create_from_defaults` will never give nilLin Jen-Shin
2018-12-19Return an ApplicationSetting in CurrentSettingsRémy Coutable
This replaces the use of fake_application_settings with `::ApplicationSetting.build`_from_defaults. The reason is that `fake_application_settings` doesn't have the custom accessors that `ApplicationSetting` has, e.g. `#commit_email_hostname`, thus this can lead to unexpected `nil` values which comes from the database column instead of `.default_commit_email_hostname` returned by `ApplicationSetting#commit_email_hostname`. Using `::ApplicationSetting.build_from_defaults` should be safe as it doesn't try to `INSERT` a DB record, in contrary to `::ApplicationSetting.create_from_defaults` which we used to use, and which created issues that the introduction of `fake_application_settings` tried to resolve (575dced5). Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-06-07Make Gitlab::CurrentSettings.current_application_settings return cached ↵Rémy Coutable
settings early if they exist without issuing any DB query Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-05-23Simplify Gitlab::CurrentSettings now that the logic is in CacheableAttributesRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-02-02use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa
including/extending it
2017-10-20Fix failure in current_settings_spec.rbWinnie Hellmann
2017-07-10Prevent bad data being added to application settings when Redis is unavailableNick Thomas
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