Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b193734a
Commit
b193734a
authored
Dec 15, 2021
by
Niko Belokolodov
Committed by
Nikolay Belokolodov
Dec 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated Stage Manage metrics
parent
1cb050a9
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
36 additions
and
96 deletions
+36
-96
config/metrics/counts_28d/20210216183640_gitlab.yml
config/metrics/counts_28d/20210216183640_gitlab.yml
+2
-2
config/metrics/counts_28d/20210216183712_total.yml
config/metrics/counts_28d/20210216183712_total.yml
+1
-1
config/metrics/counts_28d/20210216183714_gitlab_project.yml
config/metrics/counts_28d/20210216183714_gitlab_project.yml
+1
-1
config/metrics/counts_28d/20210216183716_gitlab.yml
config/metrics/counts_28d/20210216183716_gitlab.yml
+1
-1
config/metrics/counts_28d/20210216183718_github.yml
config/metrics/counts_28d/20210216183718_github.yml
+1
-1
config/metrics/counts_28d/20210216183720_bitbucket.yml
config/metrics/counts_28d/20210216183720_bitbucket.yml
+1
-1
config/metrics/counts_28d/20210216183722_bitbucket_server.yml
...ig/metrics/counts_28d/20210216183722_bitbucket_server.yml
+1
-1
config/metrics/counts_28d/20210216183724_gitea.yml
config/metrics/counts_28d/20210216183724_gitea.yml
+1
-1
config/metrics/counts_28d/20210216183726_git.yml
config/metrics/counts_28d/20210216183726_git.yml
+1
-1
config/metrics/counts_28d/20210216183728_manifest.yml
config/metrics/counts_28d/20210216183728_manifest.yml
+1
-1
config/metrics/counts_28d/20210216183730_jira.yml
config/metrics/counts_28d/20210216183730_jira.yml
+1
-1
config/metrics/counts_28d/20210216183731_fogbugz.yml
config/metrics/counts_28d/20210216183731_fogbugz.yml
+1
-1
config/metrics/counts_28d/20210216183733_phabricator.yml
config/metrics/counts_28d/20210216183733_phabricator.yml
+1
-1
config/metrics/counts_28d/20210216183735_csv.yml
config/metrics/counts_28d/20210216183735_csv.yml
+1
-1
config/metrics/counts_28d/20210216183737_groups_imported.yml
config/metrics/counts_28d/20210216183737_groups_imported.yml
+1
-1
config/metrics/counts_all/20210216180634_gitlab.yml
config/metrics/counts_all/20210216180634_gitlab.yml
+1
-1
config/metrics/counts_all/20210216180705_total.yml
config/metrics/counts_all/20210216180705_total.yml
+1
-1
config/metrics/counts_all/20210216180707_gitlab_project.yml
config/metrics/counts_all/20210216180707_gitlab_project.yml
+1
-1
config/metrics/counts_all/20210216180709_gitlab.yml
config/metrics/counts_all/20210216180709_gitlab.yml
+1
-1
config/metrics/counts_all/20210216180711_github.yml
config/metrics/counts_all/20210216180711_github.yml
+1
-1
config/metrics/counts_all/20210216180713_bitbucket.yml
config/metrics/counts_all/20210216180713_bitbucket.yml
+1
-1
config/metrics/counts_all/20210216180715_bitbucket_server.yml
...ig/metrics/counts_all/20210216180715_bitbucket_server.yml
+1
-1
config/metrics/counts_all/20210216180716_gitea.yml
config/metrics/counts_all/20210216180716_gitea.yml
+1
-1
config/metrics/counts_all/20210216180718_git.yml
config/metrics/counts_all/20210216180718_git.yml
+1
-1
config/metrics/counts_all/20210216180720_manifest.yml
config/metrics/counts_all/20210216180720_manifest.yml
+1
-1
config/metrics/counts_all/20210216180722_jira.yml
config/metrics/counts_all/20210216180722_jira.yml
+1
-1
config/metrics/counts_all/20210216180724_fogbugz.yml
config/metrics/counts_all/20210216180724_fogbugz.yml
+1
-1
config/metrics/counts_all/20210216180726_phabricator.yml
config/metrics/counts_all/20210216180726_phabricator.yml
+1
-1
config/metrics/counts_all/20210216180727_csv.yml
config/metrics/counts_all/20210216180727_csv.yml
+1
-1
config/metrics/counts_all/20210216180729_groups_imported.yml
config/metrics/counts_all/20210216180729_groups_imported.yml
+1
-1
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+1
-23
spec/lib/gitlab/usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+4
-42
No files found.
config/metrics/counts_28d/20210216183640_gitlab.yml
View file @
b193734a
---
data_category
:
optional
key_path
:
usage_activity_by_stage_monthly.manage.bulk_imports.gitlab
description
:
DEPRECAT
ED - Count of projects imported using bulk imports
description
:
REMOV
ED - Count of projects imported using bulk imports
product_section
:
dev
product_stage
:
manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183712_total.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183714_gitlab_project.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183716_gitlab.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183718_github.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183720_bitbucket.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183722_bitbucket_server.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183724_gitea.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183726_git.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183728_manifest.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183730_jira.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183731_fogbugz.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183733_phabricator.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183735_csv.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_28d/20210216183737_groups_imported.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
28d
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180634_gitlab.yml
View file @
b193734a
...
...
@@ -8,7 +8,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180705_total.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180707_gitlab_project.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180709_gitlab.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180711_github.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180713_bitbucket.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180715_bitbucket_server.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180716_gitea.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180718_git.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180720_manifest.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180722_jira.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180724_fogbugz.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180726_phabricator.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180727_csv.yml
View file @
b193734a
...
...
@@ -8,7 +8,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
config/metrics/counts_all/20210216180729_groups_imported.yml
View file @
b193734a
...
...
@@ -7,7 +7,7 @@ product_stage: manage
product_group
:
group::import
product_category
:
importers
value_type
:
number
status
:
deprecat
ed
status
:
remov
ed
time_frame
:
all
data_source
:
database
distribution
:
...
...
lib/gitlab/usage_data.rb
View file @
b193734a
...
...
@@ -552,33 +552,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
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
b193734a
...
...
@@ -278,8 +278,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
,
...
...
@@ -302,32 +301,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
,
...
...
@@ -350,25 +330,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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment