summaryrefslogtreecommitdiff
path: root/app/models/application_setting.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'bvl-circuitbreaker-backoff' into 'master'Sean McGivern2017-10-301-1/+13
| | | | | | | | Circuitbreaker backoff and retries Closes #37383 and #38231 See merge request gitlab-org/gitlab-ce!14933
* Merge branch 'bvl-circuitbreaker-improvements' into 'master'Douwe Maan2017-10-301-0/+7
| | | | | | Make the circuitbreaker configurable at runtime See merge request gitlab-org/gitlab-ce!14842
* Merge branch 'fix-application-setting-nil-cache' into 'master'Winnie Hellmann2017-10-201-1/+4
| | | | | | | | | | | | Prevent ApplicationSetting to cache nil value Closes #39275 See merge request gitlab-org/gitlab-ce!14952 (cherry picked from commit 81175d2c37d7bb9768ee21b13207ef57d11ad3ea) 64fd9814 Prevent ApplicationSetting to cache nil value beeed14f Fix failure in current_settings_spec.rb
* Merge branch 'prevent-creating-multiple-application-settings' into 'master'Yorick Peterse2017-10-181-0/+2
| | | | | | | | | | | Prevent creating multiple ApplicationSetting by forcing it to always have id=1 Closes #34728 See merge request gitlab-org/gitlab-ce!14718 (cherry picked from commit 65a1cbc600cf36ff5db9644072e4bf1e2b8e5cde) c909b6aa Prevent creating multiple ApplicationSetting by forcing it to always have id=1
* Merge branch 'housekeeping_settings' into 'master'Douwe Maan2017-09-121-2/+2
|\ | | | | | | | | | | | | Allow to use same periods for housekeeping tasks Closes #34981 See merge request !13711
| * Allow to use same periods for housekeeping tasksAlex Lossent2017-09-111-2/+2
| | | | | | | | | | | | | | | | This enables skipping a lesser housekeeping task (incremental or full repack) by consistently scheduling a higher task (respectively full repack or gc) with the same period. Cf. #34981
* | Read import sources from setting at first initializationVisay Keo2017-09-091-1/+1
|/
* More review commentsNick Thomas2017-08-301-0/+2
|
* Move the key restriction validation to its own classNick Thomas2017-08-301-8/+2
|
* Address review commentsNick Thomas2017-08-301-2/+1
|
* Rework the permissions model for SSH key restrictionsNick Thomas2017-08-301-31/+31
| | | | | | | | | | | | | | | `allowed_key_types` is removed and the `minimum_<type>_bits` fields are renamed to `<tech>_key_restriction`. A special sentinel value (`-1`) signifies that the key type is disabled. This also feeds through to the UI - checkboxes per key type are out, inline selection of "forbidden" and "allowed" (i.e., no restrictions) are in. As with the previous model, unknown key types are disallowed, even if the underlying ssh daemon happens to support them. The defaults have also been changed from the lowest known bit size to "no restriction". So if someone does happen to have a 768-bit RSA key, it will continue to work on upgrade, at least until the administrator restricts them.
* Add settings for minimum key strength and allowed key typeNick Thomas2017-08-301-0/+33
| | | | | | | | This is an amalgamation of: * Cory Hinshaw: Initial implementation !5552 * Rémy Coutable: Updates !9350 * Nick Thomas: Resolve conflicts and add ED25519 support !13712
* Add option to disable project export on instanceRobin Bobbitt2017-08-111-0/+1
|
* Remove deprecated `repository_storage` attributebvl-add-all-settings-to-apiBob Van Landuyt2017-07-271-0/+2
| | | | In favor of the new `repository_storages`
* Fixes needed when GitLab sign-in is not enabledRobin Bobbitt2017-07-131-1/+1
| | | | | | | | | When sign-in is disabled: - skip password expiration checks - prevent password reset requests - don’t show Password tab in User Settings - don’t allow login with username/password for Git over HTTP requests - render 404 on requests to Profiles::PasswordsController
* Prevent bad data being added to application settings when Redis is unavailableNick Thomas2017-07-101-0/+3
|
* Merge branch 'master' into 33929-allow-to-enable-perf-bar-for-a-groupSean McGivern2017-07-071-7/+7
|\
| * Rename ActiverecordSerialize copYorick Peterse2017-07-061-7/+7
| | | | | | | | | | This cop has been renamed to ActiveRecordSerialize to match the way "ActiveRecord" is usually written.
* | Don't use Flipper for the Performance BarRémy Coutable2017-07-071-21/+27
| | | | | | | | | | | | | | The implementation now simply rely on the `performance_bar_allowed_group_id` Application Setting. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Allow to enable the Performance Bar for a group from the admin areaRémy Coutable2017-07-061-0/+37
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Help landing page customizationsRobin Bobbitt2017-06-141-2/+12
|
* redesign caching of application settingsPaul Charlton2017-06-061-2/+3
|
* Merge branch 'pull-mirror-overhaul-ce-backport' into 'master'Douwe Maan2017-06-051-5/+1
|\ | | | | | | | | backports changed import logic from pull mirroring feature into CE See merge request !11850
| * backports changed import logic from pull mirroring feature into CETiago Botelho2017-06-051-5/+1
| |
* | Enable the Style/PreferredHashMethods coprc/enable-PreferredHashMethods-copRémy Coutable2017-06-021-2/+2
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Added Cop to blacklist the use of serializedocument-not-using-serializeYorick Peterse2017-05-311-7/+7
| | | | | This Cop blacklists the use of ActiveRecord's "serialize" method, except for cases where we already use this.
* Allow disabling usage ping in `gitlab.yml`Sean McGivern2017-05-111-1/+9
| | | | | | | | | Setting `usage_ping_enabled` to false in `gitlab.yml`: 1. Disables the usage ping, regardless of the value stored in the database. 2. Prevents the usage ping from being enabled through the admin panel. It can only be enabled by either removing the line from `gitlab.yml` and configuring through the admin panel, or setting it to true in `gitlab.yml`.
* Merge remote-tracking branch 'origin/master' into add-sentry-js-again-with-vueLuke "Jared" Bennett2017-04-281-0/+9
|\
| * Lazily sets UUID in ApplicationSetting for new installationsDouglas Barbosa Alexandre2017-04-261-0/+9
| |
* | Attempted adding separate clientside_sentry settingsLuke "Jared" Bennett2017-04-281-0/+4
|/
* Port 'Add EE usage ping' to CESean McGivern2017-04-141-1/+2
| | | | CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/557
* Introduce "polling_interval_multiplier" as application settingAdam Niedzielski2017-04-031-1/+6
| | | | | Implement module for setting "Poll-Interval" response header. Return 429 in ETag caching middleware when polling is disabled.
* Fix Error 500 when application settings are savedStan Hu2017-03-181-0/+9
| | | | | | | | | | | | | | | Due to a Rails bug, fetching the application settings from Redis may prevent the attribute methods from being loaded for the `ApplicationSetting` model. More details here: https://github.com/rails/rails/issues/27348 There was also a secondary problem introduced by overriding these association methods which caused all default visibility levels to be set to `nil`. Before, the previous implementation allowed the string "20" to be saved as an integer, while now a table lookup happens before that. We fix this by enforcing the integer value in the controller and default to PRIVATE. Closes #29674
* Add admin settings entriesPawel Chojnacki2017-03-061-0/+10
|
* Allow limiting logging in users from too many different IPs.Pawel Chojnacki2017-03-061-0/+3
|
* Override setters so it also accepts string visibility levels27501-api-use-visibility-everywhereToon Claes2017-03-021-0/+16
| | | | | Override the `ApplicationSetting` default visibility_level setters so they accept strings & integers for the levels.
* Expose ApplicationSetting visibility settings as StringToon Claes2017-03-021-0/+1
| | | | | | | | Use strings for the ApplicationSetting properties: - restricted_visibility_levels - default_project_visibility - default_snippet_visibility - default_group_visibility
* Introduce DurationValidator, feedback:27762-add-default-artifacts-expirationLin Jen-Shin2017-02-241-8/+1
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_24032923
* Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-02-241-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 27762-add-default-artifacts-expiration * upstream/master: (247 commits) Switched CONTRIBUTING.md style guide recommendation for method chaining Fix new offenses Stylistic tweaks Fix OAuth/SAML user blocking behavior Revert "Enable Style/DotPosition" Revert "Prefer leading style for Style/DotPosition" Revert "Enable Style/BarePercentLiterals" Manually correct autocorrect Move up delegate calls Exclude migrations from Style/MutableConstant ActiveSupport delegation is preferred over Forwardable Update haml_lint to work with newest rubocop Add explanations to cops Update rubocop and rubocop-rspec and regenerate .rubocop_todo.yml Update rubocop and rubocop-rspec and regenerate .rubocop_todo.yml Order cops alphabetically Don’t exclude some file in lib from rubocop Fix new offenses Enable Rails/Delegate Enable Style/WordArray ...
| * Enable Style/MutableConstantDouwe Maan2017-02-231-1/+1
| |
* | Fix tests due to error key changedLin Jen-Shin2017-02-211-1/+1
| |
* | Update error message and check with presence: trueLin Jen-Shin2017-02-211-6/+11
| | | | | | | | | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23762243 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23762268
* | 0 for unlimited, disallow blank, feedback:Lin Jen-Shin2017-02-161-12/+4
| | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/issues/27762#note_23520780
* | The exception was no longer usedLin Jen-Shin2017-02-161-1/+1
| |
* | Use squish to also compact the stringLin Jen-Shin2017-02-161-1/+1
| | | | | | | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23436980
* | Use static error message and don't give booleansLin Jen-Shin2017-02-161-9/+4
| | | | | | | | | | | | in validation. Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23437431 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23437868
* | Update docs to reflect current behaviourLin Jen-Shin2017-02-151-1/+1
| |
* | Fix tests and disallow 0 to make it consistent with .gitlab-ci.ymlLin Jen-Shin2017-02-151-3/+9
| |
* | Add a few more tests and make sure empty value sets to nilLin Jen-Shin2017-02-151-0/+8
| |
* | Check default_artifacts_expire_in only if existedLin Jen-Shin2017-02-151-1/+2
| |