Commit aaead3d2 authored by Stan Hu's avatar Stan Hu

Merge branch '340847-remove-deprecated-metric-status-3' into 'master'

Remove deprecateds Stage Manage  metrics

See merge request gitlab-org/gitlab!76701
parents 84804e8c b193734a
---
data_category: optional
key_path: usage_activity_by_stage_monthly.manage.bulk_imports.gitlab
description: DEPRECATED - Count of projects imported using bulk imports
description: REMOVED - Count of projects imported using bulk imports
product_section: dev
product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: 28d
data_source: database
distribution:
......
......@@ -8,7 +8,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -8,7 +8,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -7,7 +7,7 @@ product_stage: manage
product_group: group::import
product_category: importers
value_type: number
status: deprecated
status: removed
time_frame: all
data_source: database
distribution:
......
......@@ -553,33 +553,11 @@ module Gitlab
user_auth_by_provider: distinct_count_user_auth_by_provider(time_period),
unique_users_all_imports: unique_users_all_imports(time_period),
bulk_imports: {
gitlab: DEPRECATED_VALUE,
gitlab_v1: count(::BulkImport.where(**time_period, source_type: :gitlab))
},
project_imports: project_imports(time_period),
issue_imports: issue_imports(time_period),
group_imports: group_imports(time_period),
# Deprecated data to be removed
projects_imported: {
total: DEPRECATED_VALUE,
gitlab_project: DEPRECATED_VALUE,
gitlab: DEPRECATED_VALUE,
github: DEPRECATED_VALUE,
bitbucket: DEPRECATED_VALUE,
bitbucket_server: DEPRECATED_VALUE,
gitea: DEPRECATED_VALUE,
git: DEPRECATED_VALUE,
manifest: DEPRECATED_VALUE
},
issues_imported: {
jira: DEPRECATED_VALUE,
fogbugz: DEPRECATED_VALUE,
phabricator: DEPRECATED_VALUE,
csv: DEPRECATED_VALUE
},
groups_imported: DEPRECATED_VALUE
# End of deprecated keys
group_imports: group_imports(time_period)
}
end
# rubocop: enable CodeReuse/ActiveRecord
......
......@@ -279,8 +279,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
expect(described_class.usage_activity_by_stage_manage({})).to include(
{
bulk_imports: {
gitlab_v1: 2,
gitlab: Gitlab::UsageData::DEPRECATED_VALUE
gitlab_v1: 2
},
project_imports: {
bitbucket: 2,
......@@ -303,32 +302,13 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
group_imports: {
group_import: 2,
gitlab_migration: 2
},
projects_imported: {
total: Gitlab::UsageData::DEPRECATED_VALUE,
gitlab_project: Gitlab::UsageData::DEPRECATED_VALUE,
gitlab: Gitlab::UsageData::DEPRECATED_VALUE,
github: Gitlab::UsageData::DEPRECATED_VALUE,
bitbucket: Gitlab::UsageData::DEPRECATED_VALUE,
bitbucket_server: Gitlab::UsageData::DEPRECATED_VALUE,
gitea: Gitlab::UsageData::DEPRECATED_VALUE,
git: Gitlab::UsageData::DEPRECATED_VALUE,
manifest: Gitlab::UsageData::DEPRECATED_VALUE
},
issues_imported: {
jira: Gitlab::UsageData::DEPRECATED_VALUE,
fogbugz: Gitlab::UsageData::DEPRECATED_VALUE,
phabricator: Gitlab::UsageData::DEPRECATED_VALUE,
csv: Gitlab::UsageData::DEPRECATED_VALUE
},
groups_imported: Gitlab::UsageData::DEPRECATED_VALUE
}
}
)
expect(described_class.usage_activity_by_stage_manage(described_class.monthly_time_range_db_params)).to include(
{
bulk_imports: {
gitlab_v1: 1,
gitlab: Gitlab::UsageData::DEPRECATED_VALUE
gitlab_v1: 1
},
project_imports: {
bitbucket: 1,
......@@ -351,25 +331,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
group_imports: {
group_import: 1,
gitlab_migration: 1
},
projects_imported: {
total: Gitlab::UsageData::DEPRECATED_VALUE,
gitlab_project: Gitlab::UsageData::DEPRECATED_VALUE,
gitlab: Gitlab::UsageData::DEPRECATED_VALUE,
github: Gitlab::UsageData::DEPRECATED_VALUE,
bitbucket: Gitlab::UsageData::DEPRECATED_VALUE,
bitbucket_server: Gitlab::UsageData::DEPRECATED_VALUE,
gitea: Gitlab::UsageData::DEPRECATED_VALUE,
git: Gitlab::UsageData::DEPRECATED_VALUE,
manifest: Gitlab::UsageData::DEPRECATED_VALUE
},
issues_imported: {
jira: Gitlab::UsageData::DEPRECATED_VALUE,
fogbugz: Gitlab::UsageData::DEPRECATED_VALUE,
phabricator: Gitlab::UsageData::DEPRECATED_VALUE,
csv: Gitlab::UsageData::DEPRECATED_VALUE
},
groups_imported: Gitlab::UsageData::DEPRECATED_VALUE
}
}
)
end
......
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