summaryrefslogtreecommitdiff
path: root/config/application.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* [Rails5] Fix ActionCable '/cable' mountpoint conflictblackst0ne-rails5-found-new-routes-that-could-cause-conflicts-with-existing-namespaced-routesblackst0ne2018-06-201-0/+7
| | | | | | | | | | | | | | | | | | | Since Rails 5.0 the new framework has been added. It's called ActionCable. It brings WebSockets support to rails applications. By default the mountpoint of WebSocket requests is `/cable` [1]. GitLab allows using top level names as namespaces or usernames. For example, `gitlab.com/cable` at this moment leads to a user with the nickname `cable`. This commit changes ActionCable's mountpoint to a reserved top level word `-`. This is just a stub and should not be be used in real work. Please set correct mountpoints for each environments when configuring ActionCable for real using. [1]: https://github.com/rails/rails/blob/5-0-stable/actioncable/lib/action_cable.rb#L38
* [Rails5] Pass class references instead of strings to middleware builderblackst0ne-rails5-update-middlewaresblackst0ne2018-06-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It fixes Rails 5.0 deprecation flooding like: ``` DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "::Gitlab::Middleware::ReadOnly" => Gitlab::Middleware::ReadOnly (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "ActionDispatch::Static" => ActionDispatch::Static (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "Gitlab::Testing::RequestBlockerMiddleware" => Gitlab::Testing::RequestBlockerMiddleware (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "ActionDispatch::Static" => ActionDispatch::Static (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "Gitlab::Testing::RequestInspectorMiddleware" => Gitlab::Testing::RequestInspectorMiddleware (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11) ```
* Enforce UTF-8 encoding on user input in LogrageWithTimestamp formatter and ↵Imre Farkas2018-06-061-0/+2
| | | | filter out file content from logs
* Update 404 and 403 pagesPaul Slaughter2018-05-311-0/+1
|
* Optimize Emoji Sprite HandlingTim Zallmann2018-05-021-0/+1
|
* Merge branch '8088_embedded_snippets_support' into 'master'Grzegorz Bizon2018-04-161-0/+1
|\ | | | | | | | | | | | | Embedded Snippets Support Closes #8088 See merge request gitlab-org/gitlab-ce!15695
| * embedded snippets supporthaseeb2018-02-281-0/+1
| |
* | Force Rails to not complain about reloadingLin Jen-Shin2018-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Same strategy with: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17810 See: https://stackoverflow.com/a/29710188/1992201 Frankly I don't really understand how this works and I don't really care either. However I tried it and it does the job. To try this, make sure you have pending migrations, and run the server, hit the site. It would tell you that there's pending migrations, and then run migrations, and then hit the site again. Without this patch, Rails would complain that "A copy of ...", with this patch, it works without problems.
* | Revert "Merge branch 'sh-filter-secret-variables' into 'master'"Stan Hu2018-03-131-2/+0
| | | | | | This reverts merge request !17159
* | Remove sync script for gitlab-svgs and reference the vendored library directlyMike Greiling2018-03-091-0/+6
| |
* | Add Gitlab.rails5? methodblackst0ne-add-rails5-methodblackst0ne2018-03-091-0/+6
| |
* | Projects and groups badges APIFrancisco Javier López2018-03-051-0/+1
|/
* Filter secret variable values from logsStan Hu2018-02-151-0/+2
| | | | | | | | | Right now Project::VariablesController users the `value` parameter to send the secret variable value. `value` is a pretty generic term and could be used in other controllers, but for now it's better to err on the side of caution and filter this out. Closes #43313
* Merge branch 'master' into jivl-update-katexJose Ivan Vargas2018-02-121-0/+1
|\
| * make sure there is a dependency on Gitlab::CurrentSettings isbw-fix-autoload-issueBrett Walker2018-02-091-0/+1
| | | | | | | | | | | | This fixes an issue where the Rails autoload system would throw various `Unable to autoload constant` errors (such as `Unable to autoload constant EE::ProjectsHelper`) when using the autoload system (such with `spring` or `reload!` in the rails console. This error was specifically ocurring in the EE code, however, it's seems reasonable to place the fix in CE as a general innoculation.
* | Merge branch 'master' into jivl-update-katexJose Ivan Vargas2018-02-051-3/+7
|\ \ | |/
| * Eliminate the last warning for redis wrapperLin Jen-Shin2018-01-261-0/+1
| |
| * Port some non-EE-specific config/ changes to CE42420-follow-up-from-resolve-asset-was-not-declared-to-be-precompiled-in-production-favicon-green-icoRémy Coutable2018-01-251-3/+3
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+1
| |
| * Filter out build traces from logged parametersStan Hu2018-01-111-0/+2
| |
* | Removed the katex precompile steps from the application configurationJose Ivan Vargas2017-12-211-2/+0
|/
* Merge branch 'rc/use-factory_bot_rails' into 'master'Robert Speicher2017-12-151-1/+1
|\ | | | | | | | | Replace factory_girl_rails with factory_bot_rails See merge request gitlab-org/gitlab-ce!15919
| * Replace factory_girl_rails with factory_bot_railsrc/use-factory_bot_railsRémy Coutable2017-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands: ``` grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|" grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|" ``` Signed-off-by: Rémy Coutable <remy@rymai.me>