Commit 79b13a8d authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents 4447c081 497ba83f
......@@ -65,6 +65,7 @@ description: 'Learn how to contribute to GitLab.'
- [Repository mirroring](repository_mirroring.md)
- [Git LFS](lfs.md)
- [Developing against interacting components or features](interacting_components.md)
- [File uploads](uploads.md)
## Performance guides
......
......@@ -2,6 +2,8 @@
We use the [CarrierWave] gem to handle file upload, store and retrieval.
File uploads should be accelerated by workhorse, for details please refer to [uploads development documentation](uploads.md).
There are many places where file uploading is used, according to contexts:
- System
......
This diff is collapsed.
......@@ -97,7 +97,7 @@ module Gitlab
attr_reader :load_times_by_model, :private_token
def debug(message, *)
message.gsub!(private_token, FILTERED_STRING) if private_token
message = message.gsub(private_token, FILTERED_STRING) if private_token
_, type, time = *message.match(/(\w+) Load \(([0-9.]+)ms\)/)
......
......@@ -17,8 +17,9 @@ module Gitlab
return unless content
all_names.each do |a_name|
content.gsub!(%r{/#{a_name} ?(.*)$}i, execute_block(action_block, context, '\1'))
content = content.gsub(%r{/#{a_name} ?(.*)$}i, execute_block(action_block, context, '\1'))
end
content
end
end
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::LegacyGithubImport::ReleaseFormatter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::LegacyGithubImport::UserFormatter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::LegacyGithubImport::WikiFormatter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::LoopHelpers do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ManifestImport::Manifest do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ManifestImport::ProjectCreator do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::MarkupHelper do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::BackgroundTransaction do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::Delta do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::Instrumentation do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::MethodCall do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::Methods do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::Metric do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::Prometheus, :prometheus do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::RackMiddleware do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::RequestsRackMiddleware do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::Samplers::InfluxSampler do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::Samplers::RubySampler do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::Samplers::UnicornSampler do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::SidekiqMetricsExporter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::SidekiqMiddleware do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::Subscribers::ActionView do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::Subscribers::ActiveRecord do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::Subscribers::RailsCache do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::System do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::WebTransaction do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Middleware::BasicHealthCheck do
......
# frozen_string_literal: true
require 'spec_helper'
require 'tempfile'
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Middleware::RailsQueueDuration do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Middleware::ReadOnly do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Middleware::ReleaseEnv do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::MultiCollectionPaginator do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ObjectHierarchy do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Octokit::Middleware do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::OmniauthInitializer do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::OptimisticLocking do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::OtherMarkup do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::OtpKeyRotator do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::PagesClient do
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::PathRegex do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::PerformanceBar do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::PhabricatorImport::Importer do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::PhabricatorImport::UserFinder, :clean_gitlab_redis_cache do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::PhabricatorImport::WorkerState, :clean_gitlab_redis_shared_state do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Plugin do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::PollingInterval do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Popen::Runner do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Popen do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Profiler do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ProjectAuthorizations do
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ProjectSearchResults do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ProjectTemplate do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ProjectTransfer do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Prometheus::AdditionalMetricsParser do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Prometheus::Queries::AdditionalMetricsDeploymentQuery do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Prometheus::Queries::AdditionalMetricsEnvironmentQuery do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Prometheus::Queries::DeploymentQuery do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Prometheus::Queries::MatchedMetricQuery do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::PrometheusClient do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::QueryLimiting::ActiveSupportSubscriber do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::QueryLimiting::Middleware do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::QueryLimiting::Transaction do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::QueryLimiting do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::QuickActions::CommandDefinition do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::QuickActions::Dsl do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::QuickActions::Extractor do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::QuickActions::SpendTimeAndDateSeparator do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::QuickActions::SubstitutionDefinition do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Redis::Cache do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Redis::Queues do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Redis::SharedState do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Redis::Wrapper do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ReferenceCounter do
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Regex do
......
# frozen_string_literal: true
require 'spec_helper'
describe ::Gitlab::RepoPath do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::RepositoryCacheAdapter do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::RepositoryCache do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::RepositorySetCache, :clean_gitlab_redis_cache do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::RequestContext do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::RequestForgeryProtection, :allow_forgery_protection do
......
# frozen_string_literal: true
require 'fast_spec_helper'
describe Gitlab::RequestProfiler::Profile do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::RequestProfiler do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::RouteMap do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Routing do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Sanitizers::Exif do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Sanitizers::SVG do
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......@@ -108,7 +109,7 @@ describe Gitlab::Search::FoundBlob do
end
context 'with ISO-8859-1' do
let(:search_result) { "master:encoding/iso8859.txt\x001\x00\xC4\xFC\nmaster:encoding/iso8859.txt\x002\x00\nmaster:encoding/iso8859.txt\x003\x00foo\n".force_encoding(Encoding::ASCII_8BIT) }
let(:search_result) { (+"master:encoding/iso8859.txt\x001\x00\xC4\xFC\nmaster:encoding/iso8859.txt\x002\x00\nmaster:encoding/iso8859.txt\x003\x00foo\n").force_encoding(Encoding::ASCII_8BIT) }
it 'returns results as UTF-8' do
expect(subject.filename).to eq('encoding/iso8859.txt')
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Search::Query do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::SearchResults do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Sentry do
......
# frozen_string_literal: true
require 'fast_spec_helper'
describe Gitlab::Serializer::Ci::Variables do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Serializer::Pagination do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::ShardHealthCache, :clean_gitlab_redis_cache do
......
# frozen_string_literal: true
require 'spec_helper'
require 'stringio'
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment