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
6ba21d8c
Commit
6ba21d8c
authored
Mar 15, 2021
by
charlie ablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename metric keys to be more user centric
- bump implemented to 13.11 - remove some code duplication
parent
abb6a6ec
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
73 additions
and
15 deletions
+73
-15
doc/development/usage_ping/dictionary.md
doc/development/usage_ping/dictionary.md
+48
-0
ee/app/services/epics/update_service.rb
ee/app/services/epics/update_service.rb
+2
-4
ee/config/metrics/counts_28d/20210312101935_g_project_management_users_updating_epic_titles_monthly.yml
...project_management_users_updating_epic_titles_monthly.yml
+2
-2
ee/config/metrics/counts_28d/20210312102051_g_project_management_users_updating_epic_descriptions_monthly.yml
...t_management_users_updating_epic_descriptions_monthly.yml
+2
-2
ee/config/metrics/counts_7d/20210312101753_g_project_management_users_updating_epic_descriptions_weekly.yml
...ct_management_users_updating_epic_descriptions_weekly.yml
+2
-2
ee/config/metrics/counts_7d/20210312101826_g_project_management_users_updating_epic_titles_weekly.yml
..._project_management_users_updating_epic_titles_weekly.yml
+2
-2
ee/lib/gitlab/usage_data_counters/epic_activity_unique_counter.rb
...itlab/usage_data_counters/epic_activity_unique_counter.rb
+2
-2
lib/gitlab/usage_data_counters/known_events/epic_events.yml
lib/gitlab/usage_data_counters/known_events/epic_events.yml
+13
-1
No files found.
doc/development/usage_ping/dictionary.md
View file @
6ba21d8c
...
...
@@ -10004,6 +10004,30 @@ Status: `implemented`
Tiers:
`premium`
,
`ultimate`
### `redis_hll_counters.epics_usage.g_project_management_users_updating_epic_descriptions_monthly`
Counts of MAU changing epic descriptions
[
YAML definition
](
https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/config/metrics/counts_28d/20210312102051_g_project_management_users_updating_epic_descriptions_monthly.yml
)
Group:
`group:product planning`
Status:
`implemented`
Tiers:
`premium`
,
`ultimate`
### `redis_hll_counters.epics_usage.g_project_management_users_updating_epic_descriptions_weekly`
Counts of WAU changing epic descriptions
[
YAML definition
](
https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/config/metrics/counts_7d/20210312101753_g_project_management_users_updating_epic_descriptions_weekly.yml
)
Group:
`group:product planning`
Status:
`implemented`
Tiers:
`premium`
,
`ultimate`
### `redis_hll_counters.epics_usage.g_project_management_users_updating_epic_notes_monthly`
Counts of MAU updating epic notes
...
...
@@ -10028,6 +10052,30 @@ Status: `implemented`
Tiers:
`premium`
,
`ultimate`
### `redis_hll_counters.epics_usage.g_project_management_users_updating_epic_titles_monthly`
Counts of MAU changing epic titles
[
YAML definition
](
https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/config/metrics/counts_28d/20210312101935_g_project_management_users_updating_epic_titles_monthly.yml
)
Group:
`group:product planning`
Status:
`implemented`
Tiers:
`premium`
,
`ultimate`
### `redis_hll_counters.epics_usage.g_project_management_users_updating_epic_titles_weekly`
Counts of WAU changing epic titles
[
YAML definition
](
https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/config/metrics/counts_7d/20210312101826_g_project_management_users_updating_epic_titles_weekly.yml
)
Group:
`group:product planning`
Status:
`implemented`
Tiers:
`premium`
,
`ultimate`
### `redis_hll_counters.ide_edit.g_edit_by_sfe_monthly`
Missing description
...
...
ee/app/services/epics/update_service.rb
View file @
6ba21d8c
...
...
@@ -94,13 +94,11 @@ module Epics
end
def
track_changes
(
epic
)
changes
=
epic
.
saved_changes
.
keys
.
map
(
&
:to_sym
)
if
changes
.
include?
(
:title
)
if
epic
.
saved_changes
.
key?
(
'title'
)
::
Gitlab
::
UsageDataCounters
::
EpicActivityUniqueCounter
.
track_epic_title_changed_action
(
author:
current_user
)
end
if
changes
.
include?
(
:description
)
if
epic
.
saved_changes
.
key?
(
'description'
)
::
Gitlab
::
UsageDataCounters
::
EpicActivityUniqueCounter
.
track_epic_description_changed_action
(
author:
current_user
)
end
end
...
...
ee/config/metrics/counts_28d/20210312101935_g_pro
duct_planning_epic_title_changed
_monthly.yml
→
ee/config/metrics/counts_28d/20210312101935_g_pro
ject_management_users_updating_epic_titles
_monthly.yml
View file @
6ba21d8c
...
...
@@ -2,7 +2,7 @@
# Name of this metric contains g_project_management prefix
# because we are using the same slot from issue_tracking to
# allow data aggregation.
key_path
:
g_project_management_epic_title_changed
_monthly
key_path
:
redis_hll_counters.epics_usage.g_project_management_users_updating_epic_titles
_monthly
description
:
Counts of MAU changing epic titles
product_section
:
dev
product_stage
:
plan
...
...
@@ -10,7 +10,7 @@ product_group: group:product planning
product_category
:
epics_usage
value_type
:
number
status
:
implemented
milestone
:
"
13.1
0
"
milestone
:
"
13.1
1
"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56489
time_frame
:
28d
data_source
:
redis_hll
...
...
ee/config/metrics/counts_28d/20210312102051_g_pro
duct_planning_epic_description_changed
_monthly.yml
→
ee/config/metrics/counts_28d/20210312102051_g_pro
ject_management_users_updating_epic_descriptions
_monthly.yml
View file @
6ba21d8c
...
...
@@ -2,7 +2,7 @@
# Name of this metric contains g_project_management prefix
# because we are using the same slot from issue_tracking to
# allow data aggregation.
key_path
:
g_project_management_epic_description_changed
_monthly
key_path
:
redis_hll_counters.epics_usage.g_project_management_users_updating_epic_descriptions
_monthly
description
:
Counts of MAU changing epic descriptions
product_section
:
dev
product_stage
:
plan
...
...
@@ -10,7 +10,7 @@ product_group: group:product planning
product_category
:
epics_usage
value_type
:
number
status
:
implemented
milestone
:
"
13.1
0
"
milestone
:
"
13.1
1
"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56489
time_frame
:
28d
data_source
:
redis_hll
...
...
ee/config/metrics/counts_7d/20210312101753_g_pro
duct_planning_epic_description_changed
_weekly.yml
→
ee/config/metrics/counts_7d/20210312101753_g_pro
ject_management_users_updating_epic_descriptions
_weekly.yml
View file @
6ba21d8c
...
...
@@ -2,7 +2,7 @@
# Name of this metric contains g_project_management prefix
# because we are using the same slot from issue_tracking to
# allow data aggregation.
key_path
:
g_project_management_epic_description_changed
_weekly
key_path
:
redis_hll_counters.epics_usage.g_project_management_users_updating_epic_descriptions
_weekly
description
:
Counts of WAU changing epic descriptions
product_section
:
dev
product_stage
:
plan
...
...
@@ -10,7 +10,7 @@ product_group: group:product planning
product_category
:
epics_usage
value_type
:
number
status
:
implemented
milestone
:
"
13.1
0
"
milestone
:
"
13.1
1
"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56489
time_frame
:
7d
data_source
:
redis_hll
...
...
ee/config/metrics/counts_7d/20210312101826_g_pro
duct_planning_epic_title_changed
_weekly.yml
→
ee/config/metrics/counts_7d/20210312101826_g_pro
ject_management_users_updating_epic_titles
_weekly.yml
View file @
6ba21d8c
...
...
@@ -2,7 +2,7 @@
# Name of this metric contains g_project_management prefix
# because we are using the same slot from issue_tracking to
# allow data aggregation.
key_path
:
g_project_management_epic_title_changed
_weekly
key_path
:
redis_hll_counters.epics_usage.g_project_management_users_updating_epic_titles
_weekly
description
:
Counts of WAU changing epic titles
product_section
:
dev
product_stage
:
plan
...
...
@@ -10,7 +10,7 @@ product_group: group:product planning
product_category
:
epics_usage
value_type
:
number
status
:
implemented
milestone
:
"
13.1
0
"
milestone
:
"
13.1
1
"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56489
time_frame
:
7d
data_source
:
redis_hll
...
...
ee/lib/gitlab/usage_data_counters/epic_activity_unique_counter.rb
View file @
6ba21d8c
...
...
@@ -8,8 +8,8 @@ module Gitlab
# slot of issue events to allow data aggregation.
# More information in: https://gitlab.com/gitlab-org/gitlab/-/issues/322405
EPIC_CREATED
=
'g_project_management_epic_created'
EPIC_TITLE_CHANGED
=
'g_project_management_
epic_title_changed
'
EPIC_DESCRIPTION_CHANGED
=
'g_project_management_
epic_description_changed
'
EPIC_TITLE_CHANGED
=
'g_project_management_
users_updating_epic_titles
'
EPIC_DESCRIPTION_CHANGED
=
'g_project_management_
users_updating_epic_descriptions
'
EPIC_NOTE_CREATED
=
'g_project_management_users_creating_epic_notes'
EPIC_NOTE_UPDATED
=
'g_project_management_users_updating_epic_notes'
EPIC_NOTE_DESTROYED
=
'g_project_management_users_destroying_epic_notes'
...
...
lib/gitlab/usage_data_counters/known_events/epic_events.yml
View file @
6ba21d8c
...
...
@@ -9,6 +9,18 @@
aggregation
:
daily
feature_flag
:
track_epics_activity
-
name
:
g_project_management_users_updating_epic_titles
category
:
epics_usage
redis_slot
:
project_management
aggregation
:
daily
feature_flag
:
track_epics_activity
-
name
:
g_project_management_users_updating_epic_descriptions
category
:
epics_usage
redis_slot
:
project_management
aggregation
:
daily
feature_flag
:
track_epics_activity
-
name
:
g_project_management_users_creating_epic_notes
category
:
epics_usage
redis_slot
:
project_management
...
...
@@ -50,7 +62,7 @@
redis_slot
:
project_management
aggregation
:
daily
feature_flag
:
track_epics_activity
-
name
:
g_project_management_epic_reopened
category
:
epics_usage
redis_slot
:
project_management
...
...
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