diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-28 15:10:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-28 15:10:41 +0300 |
commit | b1e352740bd52771b419829abef0a0ad73141ac1 (patch) | |
tree | e86202376eb85b6314ab90fe028c0889098b05ef /lib/gitlab | |
parent | aeee5b6a212eafefe3c994fb3731ccfca590a6ba (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/reactive_cache_set_cache.rb | 5 | ||||
-rw-r--r-- | lib/gitlab/repository_set_cache.rb | 5 | ||||
-rw-r--r-- | lib/gitlab/set_cache.rb | 6 | ||||
-rw-r--r-- | lib/gitlab/usage_data.rb | 6 |
4 files changed, 3 insertions, 19 deletions
diff --git a/lib/gitlab/reactive_cache_set_cache.rb b/lib/gitlab/reactive_cache_set_cache.rb index 7fee1d0727f..e4a92ed5122 100644 --- a/lib/gitlab/reactive_cache_set_cache.rb +++ b/lib/gitlab/reactive_cache_set_cache.rb @@ -10,11 +10,6 @@ module Gitlab @expires_in = expires_in end - # NOTE Remove as part of #331319 - def old_cache_key(key) - "#{cache_namespace}:#{key}:set" - end - def cache_key(key) super(key) end diff --git a/lib/gitlab/repository_set_cache.rb b/lib/gitlab/repository_set_cache.rb index 7de53c4b3ff..3061fb96190 100644 --- a/lib/gitlab/repository_set_cache.rb +++ b/lib/gitlab/repository_set_cache.rb @@ -13,11 +13,6 @@ module Gitlab @expires_in = expires_in end - # NOTE Remove as part of #331319 - def old_cache_key(type) - "#{type}:#{namespace}:set" - end - def cache_key(type) super("#{type}:#{namespace}") end diff --git a/lib/gitlab/set_cache.rb b/lib/gitlab/set_cache.rb index 9fc7a44ec99..feb2c3c1d7d 100644 --- a/lib/gitlab/set_cache.rb +++ b/lib/gitlab/set_cache.rb @@ -10,11 +10,6 @@ module Gitlab @expires_in = expires_in end - # NOTE Remove as part of https://gitlab.com/gitlab-org/gitlab/-/issues/331319 - def old_cache_key(key) - "#{key}:set" - end - def cache_key(key) "#{cache_namespace}:#{key}:set" end @@ -25,7 +20,6 @@ module Gitlab with do |redis| keys_to_expire = keys.map { |key| cache_key(key) } - keys_to_expire += keys.map { |key| old_cache_key(key) } # NOTE Remove as part of #331319 Gitlab::Instrumentation::RedisClusterValidator.allow_cross_slot_commands do redis.unlink(*keys_to_expire) diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb index 96cbf9c4808..4802c45c949 100644 --- a/lib/gitlab/usage_data.rb +++ b/lib/gitlab/usage_data.rb @@ -652,9 +652,9 @@ module Gitlab todos: distinct_count(::Todo.where(time_period), :author_id), service_desk_enabled_projects: distinct_count_service_desk_enabled_projects(time_period), service_desk_issues: count(::Issue.service_desk.where(time_period)), - projects_jira_active: distinct_count(::Project.with_active_jira_integrations.where(time_period), :creator_id), - projects_jira_dvcs_cloud_active: distinct_count(::Project.with_active_jira_integrations.with_jira_dvcs_cloud.where(time_period), :creator_id), - projects_jira_dvcs_server_active: distinct_count(::Project.with_active_jira_integrations.with_jira_dvcs_server.where(time_period), :creator_id) + projects_jira_active: distinct_count(::Project.with_active_integration(::Integrations::Jira) .where(time_period), :creator_id), + projects_jira_dvcs_cloud_active: distinct_count(::Project.with_active_integration(::Integrations::Jira) .with_jira_dvcs_cloud.where(time_period), :creator_id), + projects_jira_dvcs_server_active: distinct_count(::Project.with_active_integration(::Integrations::Jira) .with_jira_dvcs_server.where(time_period), :creator_id) } end # rubocop: enable CodeReuse/ActiveRecord |