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
2019-03-13Filter Jira shared secret from logsHeinrich Lee Yu
2019-02-22Move highlight themes to subfolderSimon Knox
2019-02-15Only load selected syntax highlight CSSSimon Knox
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
2019-02-14Filter note parametersAndrew Newdigate
This change adds `note` to the Rails `filter_parameters` configuration.
2019-01-17Actually set raise_on_unfiltered_parameters to trueJasper Maes
2018-12-16Remove rails4 specific codeJasper Maes
2018-12-14Remove rails 4 support in CI, Gemfiles, bin/ and config/Jasper Maes
2018-12-08Integrate csslabClement Ho
2018-11-29Merge branch 'security-182-update-workhorse' into 'master'Cindy Pallares
[Master] Redact sensitive information on gitlab-workhorse log See merge request gitlab/gitlabhq!2584
2018-11-23Merge branch 'jprovazn-locale-fix' into 'master'Grzegorz Bizon
Explicitly set locale fallbacks Closes #54274 See merge request gitlab-org/gitlab-ce!23271
2018-11-22Add version migration support to rails 4Jan Provaznik
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
2018-11-21Explicitly set locale fallbacksJan Provaznik
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.
2018-11-16Use Nokogiri as the ActiveSupport XML backendStan Hu
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
2018-11-14Switch to Rails 5 by defaultJan Provaznik
* updates Gemfile * uses Rails 5 unless explicitly disabled
2018-10-31Rename @gitlab-org/gitlab-svgs to @gitlab/svgsLukas Eipert
2018-09-21Correct Gitlab Capitalization in code filesMarcel Amirault
2018-09-19Lazy load xterm css colorsFilipa Lacerda
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
2018-09-12Filter any parameters ending with "key" in logsStan Hu
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
2018-09-11Fix rails 5 deprecation warningsJan Provaznik
Fixes rails 5 deprecation warnings in `config/` files
2018-08-03Focus terminal on loadFilipa Lacerda
Use object.assign for default option
2018-08-03Uses npm css and removes css from vendor folderFilipa Lacerda
2018-07-29Use /-/health instead of breaking /-/livenessStan Hu
2018-07-29Simplify /-/liveness check to avoid connecting to the databaseStan Hu
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.
2018-07-27Merge branch 'ce-7000-introduce-PolicyCheckable' into 'master'Grzegorz Bizon
CE: Add PolicyCheckable concern for things passing to policy check See merge request gitlab-org/gitlab-ce!20839
2018-07-26Moved repo.css to its own CSS bundle to reduce the size of the main bundleTim Zallmann
2018-07-25Add mutation toggling WIP state of merge requestsBob Van Landuyt
This is mainly the setup of mutations for GraphQL. Including authorization and basic return type-structure.
2018-07-25Introduce PolicyCheckable for checking policiesLin Jen-Shin
2018-07-09Updates from `rubocop -a`Lin Jen-Shin
2018-07-04Add pipeline lists to GraphQLBob Van Landuyt
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.
2018-06-21Mysql fixes for Rails 5Jan Provaznik
* `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
2018-06-21[Rails5] Fix ActionCable's mount_path configurationblackst0ne
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
2018-06-20[Rails5] Fix ActionCable '/cable' mountpoint conflictblackst0ne
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
2018-06-13[Rails5] Pass class references instead of strings to middleware builderblackst0ne
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) ```
2018-06-06Enforce UTF-8 encoding on user input in LogrageWithTimestamp formatter and ↵Imre Farkas
filter out file content from logs
2018-06-01Update 404 and 403 pagesPaul Slaughter
2018-05-02Optimize Emoji Sprite HandlingTim Zallmann
2018-04-16Merge branch '8088_embedded_snippets_support' into 'master'Grzegorz Bizon
Embedded Snippets Support Closes #8088 See merge request gitlab-org/gitlab-ce!15695
2018-03-22Force Rails to not complain about reloadingLin Jen-Shin
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.
2018-03-14Revert "Merge branch 'sh-filter-secret-variables' into 'master'"Stan Hu
This reverts merge request !17159
2018-03-10Remove sync script for gitlab-svgs and reference the vendored library directlyMike Greiling
2018-03-09Add Gitlab.rails5? methodblackst0ne
2018-03-05Projects and groups badges APIFrancisco Javier López
2018-02-28embedded snippets supporthaseeb
2018-02-15Filter secret variable values from logsStan Hu
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
2018-02-12Merge branch 'master' into jivl-update-katexJose Ivan Vargas
2018-02-09make sure there is a dependency on Gitlab::CurrentSettings isBrett Walker
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.
2018-02-06Merge branch 'master' into jivl-update-katexJose Ivan Vargas
2018-01-26Eliminate the last warning for redis wrapperLin Jen-Shin
2018-01-25Port some non-EE-specific config/ changes to CERémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-01-11Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉