summaryrefslogtreecommitdiff
path: root/config/application.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove csslabArun Kumar Mohan2019-08-281-1/+0
|
* Fix "ERR value is not an integer or out of range" errorsStan Hu2019-08-221-4/+1
| | | | | | | | | | | | | | | | | | | `ActiveSupport::Cache::RedisCacheStore` is not compatible with the version of Rack Attack we are using (v4.4.1) per https://github.com/kickstarter/rack-attack/issues/281. Users that had rate limits enabled might see `Redis::CommandError: ERR value is not an integer or out of range` because the `raw` parameter wasn't passed along properly. As a result, the Rack Attack entry would be stored as an `ActiveSupport::Cache::Entry` instead of a raw string holding an integer value. Let's partially revert the change in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/30966 to use the original cache store until we can update to Rack Attack v5.2.3 that has support for `ActiveSupport::Cache::RedisCacheStore` via https://github.com/kickstarter/rack-attack/pull/350. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66449
* Merge branch 'remove-concerns-paths' into 'master'Jan Provaznik2019-08-131-5/+0
|\ | | | | | | | | Remove concerns from eager load paths See merge request gitlab-org/gitlab-ce!31649
| * Remove concerns from eager load pathsdineshpanda2019-08-091-5/+0
| |
* | Enable use of Rails' new cookie encryptionHeinrich Lee Yu2019-08-131-5/+0
| | | | | | | | | | Old cookies are still valid and are automatically upgraded by Rails
* | Merge branch 'filter-title-description-and-body-from-logs' into 'master'Stan Hu2019-08-081-3/+16
|\ \ | |/ |/| | | | | | | | | Filter title, description, and body from logs Closes #64460 and #60365 See merge request gitlab-org/gitlab-ce!31274
| * Filter title, description, and body from logsfilter-title-description-and-body-from-logsSean McGivern2019-07-301-3/+16
| | | | | | | | These can contain sensitive content.
* | Use Rails 5.2 Redis caching storesh-use-redis-caching-storeStan Hu2019-08-051-1/+4
|/ | | | | | | | | | | | This is the first step in providing a fault-tolerant and distributed Redis caching store. We disable compression to avoid introducing a change that could have an adverse effect in production. Note that we won't be able to take advantage of the fault-tolerance and distributed features yet until we solve https://gitlab.com/gitlab-org/gitlab-ce/issues/64829. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64794
* Remove dead MySQL codeNick Thomas2019-07-231-5/+0
| | | | None of this code can be reached any more, so it can all be removed
* Merge branch '6544-remove-scss-diff-ce' into 'master'Phil Hughes2019-07-231-0/+6
|\ | | | | | | | | Resolve difference in app/assets/stylesheets/application.scss See merge request gitlab-org/gitlab-ce!31007
| * Resolve difference in app/assets/stylesheets/application.scss6544-remove-scss-diff-ceLukas Eipert2019-07-221-0/+6
| |
* | Fix xterm CSS not loadingMike Greiling2019-07-221-1/+4
|/
* Upgrade to Rails 5.2upgrade-rails-5-2-ceHeinrich Lee Yu2019-07-121-10/+16
| | | | Updates changed method names and fixes spec failures
* Move lib/gitlab dependency to applicationRobert Speicher2019-07-081-0/+1
| | | | We use the `Gitlab.ee` and `.ee?` methods in several initializers now.
* Merge branch 'bootstrap-to-glui' into 'master'Filipa Lacerda2019-06-181-0/+1
|\ | | | | | | | | Import bootstrap styles from gitlab-ui See merge request gitlab-org/gitlab-ce!26165
| * Import bootstrap styles from gitlab-uiSimon Knox2019-06-171-0/+1
| | | | | | | | | | Use gitlab_ui.scss instead of all the bootstrap imports Allow the ../node_modules path from gitlab_ui.scss to resolve
* | Backport EE changes to config/application.rbconfig-application-differencesYorick Peterse2019-06-171-0/+30
|/ | | | | | This backports the EE changes made to this config file to CE. EE specific bits do not need an `if Gitlab.ee?`, as everything will work transparently when using CE.
* Upgrade Rails to 5.1.6.1Jasper Maes2019-04-231-3/+0
| | | | Model.new.attributes now also returns encrypted attributes.
* Remove rails-deprecated_sanitizer dependency17014-remove-rails-deprecated_sanitizerDmitriy Zaporozhets2019-04-121-2/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Filter Jira shared secret from logsHeinrich Lee Yu2019-03-131-0/+2
|
* Move highlight themes to subfolderSimon Knox2019-02-221-6/+1
|
* Only load selected syntax highlight CSSSimon Knox2019-02-151-0/+7
| | | | | | | Compile highlight CSS separately Move highlight-specific mixins out of mixins.scss Rename solarized themes to match theme name as this was a smaller change than changing all instances to snake_case
* Filter note parametersAndrew Newdigate2019-02-141-1/+1
| | | | This change adds `note` to the Rails `filter_parameters` configuration.
* Actually set raise_on_unfiltered_parameters to trueJasper Maes2019-01-161-0/+3
|
* Remove rails4 specific codeJasper Maes2018-12-161-6/+0
|
* Remove rails 4 support in CI, Gemfiles, bin/ and config/Jasper Maes2018-12-141-7/+2
|
* Integrate csslabClement Ho2018-12-081-0/+1
|
* Merge branch 'security-182-update-workhorse' into 'master'Cindy Pallares2018-11-281-0/+3
| | | | | | [Master] Redact sensitive information on gitlab-workhorse log See merge request gitlab/gitlabhq!2584
* Merge branch 'jprovazn-locale-fix' into 'master'Grzegorz Bizon2018-11-231-0/+6
|\ | | | | | | | | | | | | Explicitly set locale fallbacks Closes #54274 See merge request gitlab-org/gitlab-ce!23271
| * Explicitly set locale fallbacksjprovazn-locale-fixJan Provaznik2018-11-211-0/+6
| | | | | | | | | | | | | | | | | | | | With a recent change in i18n, default language is not included in fallbacks by default. This causes that MissingTranslationData exception is raised both in development and production mode. This patch sets explicitly fallbacks language to english which assures that english is used for missing translations.
* | Add version migration support to rails 4Jan Provaznik2018-11-221-0/+3
|/ | | | | | When switching to rails 5, we added migration version to all migration classes. This patch makes it possible to run versioned migrations also with rails 4
* Use Nokogiri as the ActiveSupport XML backendsh-use-nokogiri-xml-backendStan Hu2018-11-161-0/+3
| | | | | | | | This significantly improves performance and reduces memory consumption when parsing XML files. On a test with 124 JUnit files from a CE build, there was about a 4x reduction in processing time. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54068
* Switch to Rails 5 by defaultJan Provaznik2018-11-141-1/+1
| | | | | * updates Gemfile * uses Rails 5 unless explicitly disabled
* Rename @gitlab-org/gitlab-svgs to @gitlab/svgsleipert-migrate-gitlab-svgsLukas Eipert2018-10-311-1/+1
|
* Correct Gitlab Capitalization in code filesMarcel Amirault2018-09-211-1/+1
|
* Lazy load xterm css colorsFilipa Lacerda2018-09-191-0/+1
| | | | | | | | Manually includes the xterm custom colors on the 3 files that will need it: job log page, job terminal page, environment terminal page Reduces main CSS bundle
* Filter any parameters ending with "key" in logsStan Hu2018-09-111-3/+2
| | | | | | | | | | | Rails does a partial match for strings in the filter_parameters configuration, so the parameter "key" causes "key_id" to be filtered even though it's a useful parameter for debugging internal API issues. We now revise this filter to make any parameter ending with "key" is filtered. Relates to https://gitlab.com/gitlab-com/gl-infra/production/issues/463
* Fix rails 5 deprecation warningsJan Provaznik2018-09-111-2/+3
| | | | Fixes rails 5 deprecation warnings in `config/` files
* Focus terminal on loadFilipa Lacerda2018-08-031-2/+2
| | | | Use object.assign for default option
* Uses npm css and removes css from vendor folderFilipa Lacerda2018-08-031-1/+4
|
* Use /-/health instead of breaking /-/livenessStan Hu2018-07-281-1/+1
|
* Simplify /-/liveness check to avoid connecting to the databaseStan Hu2018-07-281-0/+4
| | | | | | | | The previous implementation would hit the database each time and provide a dummy response. If the database goes down, this means all application workers would be taken out of service. Simplify this check by using a Rails middleware that intercepts this endpoint and returns a 200 response.
* Merge branch 'ce-7000-introduce-PolicyCheckable' into 'master'Grzegorz Bizon2018-07-271-0/+1
|\ | | | | | | | | CE: Add PolicyCheckable concern for things passing to policy check See merge request gitlab-org/gitlab-ce!20839
| * Introduce PolicyCheckable for checking policiesce-7000-introduce-PolicyCheckableLin Jen-Shin2018-07-251-0/+1
| |
* | Moved repo.css to its own CSS bundle to reduce the size of the main bundleTim Zallmann2018-07-261-0/+1
| |
* | Add mutation toggling WIP state of merge requestsBob Van Landuyt2018-07-251-1/+2
|/ | | | | This is mainly the setup of mutations for GraphQL. Including authorization and basic return type-structure.
* Updates from `rubocop -a`Lin Jen-Shin2018-07-091-2/+2
|
* Add pipeline lists to GraphQLBob Van Landuyt2018-07-041-1/+2
| | | | | | | | | This adds Keyset pagination to GraphQL lists. PoC for that is pipelines on merge requests and projects. When paginating a list, the base-64 encoded id of the ordering field (in most cases the primary key) can be passed in the `before` or `after` GraphQL argument.
* Mysql fixes for Rails 5jprovazn-rails5-mysql-datetimeJan Provaznik2018-06-211-6/+11
| | | | | | | | | | * `MysqlDateTimeWithTimeZone` inherits from `ActiveRecord::Type::DateTime` (`MysqlDateTime` is not present in Rails 5) * explicitly set `NULL` default value for `merge_request_diff_files`'s `diff` column (otherwise empty string is used in a migration) and empty string is not allowed for text/blob fields in Mysql * disable NO_ZERO_DATE mode for all Mysql DB connections, otherwise SQL queries fail on inserting `0` value for `created_at` column
* [Rails5] Fix ActionCable's mount_path configurationblackst0ne-rails5-fix-action-cable-mount-pathblackst0ne2018-06-211-1/+1
| | | | | | | | | | | | | | | | | The original MR [1] fixed red specs for Rails 5. But while the failed specs were fixed, that changes brought new failed specs which weren't caught up in [1]. This commit just fixes the fix. :) New errors are like these: ``` Failed to upgrade to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: keep-alive, HTTP_UPGRADE: ) Finished "/-/boards/1/lists"[non-WebSocket] for 127.0.0.1 at 2018-06-20 18:09:26 +0200 ``` [1]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20015