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
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 🙉
2018-01-11Filter out build traces from logged parametersStan Hu
2017-12-21Removed the katex precompile steps from the application configurationJose Ivan Vargas
2017-12-15Merge branch 'rc/use-factory_bot_rails' into 'master'Robert Speicher
Replace factory_girl_rails with factory_bot_rails See merge request gitlab-org/gitlab-ce!15919
2017-12-14Add eager-load paths to autoload paths to fix Rake tasksNick Thomas
Rake doesn't respect eager-loading, so to avoid explicit requires we have to duplicate the eager-load config into the auto-load config. This backports an EE change made in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3706
2017-12-14Replace factory_girl_rails with factory_bot_railsRémy Coutable
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>
2017-11-17Add request throttlesMichael Kozono
2017-10-10Merge branch 'master' into bvl-group-treesBob Van Landuyt
2017-10-06Create idea of read-only databaseToon Claes
In GitLab EE, a GitLab instance can be read-only (e.g. when it's a Geo secondary node). But in GitLab CE it also might be useful to have the "read-only" idea around. So port it back to GitLab CE. Also having the principle of read-only in GitLab CE would hopefully lead to less errors introduced, doing write operations when there aren't allowed for read-only calls. Closes gitlab-org/gitlab-ce#37534.
2017-10-04Add a `WithPagination` concern to reuse across serializersBob Van Landuyt
2017-10-04Load only the currently needed JS locale fileTim Zallmann
2017-09-25Move new nav into main CSS folderAnnabel Dunstone Gray
2017-09-10Expand filtered parameters to include `token`Stan Hu
Now that we are logging API requests in `api_json.log`, we see that the runner token was not filtered properly.
2017-08-31Filter additional secrets from Rails logsStan Hu
Upon inspection of logs, there were a number of fields not filtered. For example: * authenticity_token: CSRF token * rss_token: Used for RSS feeds * secret: Used with Projects::UploadController Rails provides a way to match regexps, so we now filter: * Any parameter ending with `_token` * Any parameter containing `password` * Any parameter containing `secret`
2017-08-08Re-enable SqlInjection and CommandInjectionBrian Neel
2017-08-07Support references to group milestonesSean McGivern
Group milestones can only be referred to by name, not IID. They also do not support cross-project references.
2017-08-04Backport to CE for:Lin Jen-Shin
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2483
2017-07-11Support multiple Redis instances based on queue typePaul Charlton
2017-07-07Merge branch 'feature/user-datetime-search-api-mysql' into 'master'Douwe Maan
Add creation time filters to user search API for admins Closes #29507 See merge request !12682
2017-07-07move CreatedAtFilter to concerns folderJames Lopez
2017-07-07Include new URL helpers retroactively into includers of Gitlab::RoutingDouwe Maan
2017-07-07Merge branch 'fix-routes-in-production-mode' into 'master'Douwe Maan
Fix shorter route helpers in production environment Closes #34741 See merge request !12675
2017-07-06Improve & fix the performance bar UI and behaviorRémy Coutable
2017-07-06Fix shorter route helpers in production environmentSean McGivern
I don't know exactly when Rails picks each module to use, but this seems to be used by `app` in the console (for instance, `app.project_path` would fail before, but works now).
2017-07-05Create and use project path helpers that only need a project, no namespaceDouwe Maan
2017-06-28Resolve "Navigation - Move contextual navigation to sidebar"Annabel Dunstone Gray
2017-06-21Top navigation redesignPhil Hughes
Start of the new navigation by redesigning just the top navigation menu. This is only shown when a cookie is set. Part of #32794
2017-06-09Fix vendor/peek.js so that it can be bundled with WebpackRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-09Small adjustmentsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-09New performance bar that can be enabled with the `p b` shortcutRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-24add rss_token attribute to user modelAlexis Reigel
2017-05-15Add test.js and test.css to disable animations during testing and include ↵Luke "Jared" Bennett
these in _head when testing
2017-05-09Remove CI/CD models directory from `eager_load_paths`Grzegorz Bizon
CI/CD models are already located inside `CI` module, thus usual Rails autoloading principles apply. See https://github.com/rails/rails/issues/28854 for more details.