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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-03-24 00:08:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-24 00:08:09 +0300
commitbbc06065aa40c3d0d037bea16081f4f5c969053e (patch)
tree2d3af210ea3daec10a705bc6d65d3b3a2dcda89a /lib/gitlab/usage_data_queries.rb
parent82f12c20905e97952cf673e74ec05267fee0b43b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/usage_data_queries.rb')
-rw-r--r--lib/gitlab/usage_data_queries.rb15
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/gitlab/usage_data_queries.rb b/lib/gitlab/usage_data_queries.rb
index 54c130060e0..d40ac71afc6 100644
--- a/lib/gitlab/usage_data_queries.rb
+++ b/lib/gitlab/usage_data_queries.rb
@@ -50,7 +50,7 @@ module Gitlab
def alt_usage_data(value = nil, fallback: FALLBACK, &block)
if block_given?
- { alt_usage_data_block: "non-SQL usage data block" }
+ { alt_usage_data_block: block.to_s }
else
{ alt_usage_data_value: value }
end
@@ -58,9 +58,9 @@ module Gitlab
def redis_usage_data(counter = nil, &block)
if block_given?
- { redis_usage_data_block: "non-SQL usage data block" }
+ { redis_usage_data_block: block.to_s }
elsif counter.present?
- { redis_usage_data_counter: counter.to_s }
+ { redis_usage_data_counter: counter }
end
end
@@ -74,15 +74,6 @@ module Gitlab
def epics_deepest_relationship_level
{ epics_deepest_relationship_level: 0 }
end
-
- # Do not include Devise omniauth providers for consistency between local and CI-run specs
- def auth_providers
- AuthenticationEvent::STATIC_PROVIDERS
- end
-
- def omniauth_provider_names
- []
- end
end
end
end