Commit e1cd303d authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '292253-add-aggregate-counts-for-epic-related-user-driven-events' into 'master'

Added frontend tracking to epic tree

See merge request gitlab-org/gitlab!61822
parents 92e14dda 5142b955
...@@ -2454,7 +2454,7 @@ Whether or not ModSecurity is set to blocking mode ...@@ -2454,7 +2454,7 @@ Whether or not ModSecurity is set to blocking mode
Group: `group::container security` Group: `group::container security`
Status: `deprecated` Status: `removed`
Tiers: `free`, `premium`, `ultimate` Tiers: `free`, `premium`, `ultimate`
...@@ -2466,7 +2466,7 @@ Whether or not ModSecurity is disabled within Ingress ...@@ -2466,7 +2466,7 @@ Whether or not ModSecurity is disabled within Ingress
Group: `group::container security` Group: `group::container security`
Status: `deprecated` Status: `removed`
Tiers: `free`, `premium`, `ultimate` Tiers: `free`, `premium`, `ultimate`
...@@ -2478,7 +2478,7 @@ Whether or not ModSecurity is set to logging mode ...@@ -2478,7 +2478,7 @@ Whether or not ModSecurity is set to logging mode
Group: `group::container security` Group: `group::container security`
Status: `deprecated` Status: `removed`
Tiers: `free`, `premium`, `ultimate` Tiers: `free`, `premium`, `ultimate`
...@@ -2490,7 +2490,7 @@ Whether or not ModSecurity has not been installed into the cluster ...@@ -2490,7 +2490,7 @@ Whether or not ModSecurity has not been installed into the cluster
Group: `group::container security` Group: `group::container security`
Status: `deprecated` Status: `removed`
Tiers: `free`, `premium`, `ultimate` Tiers: `free`, `premium`, `ultimate`
...@@ -2502,7 +2502,7 @@ Cumulative count of packets identified as anomalous by ModSecurity since Usage P ...@@ -2502,7 +2502,7 @@ Cumulative count of packets identified as anomalous by ModSecurity since Usage P
Group: `group::container security` Group: `group::container security`
Status: `deprecated` Status: `removed`
Tiers: `free`, `premium`, `ultimate` Tiers: `free`, `premium`, `ultimate`
...@@ -2514,7 +2514,7 @@ Cumulative count of packets processed by ModSecurity since Usage Ping was last r ...@@ -2514,7 +2514,7 @@ Cumulative count of packets processed by ModSecurity since Usage Ping was last r
Group: `group::container security` Group: `group::container security`
Status: `deprecated` Status: `removed`
Tiers: `free`, `premium`, `ultimate` Tiers: `free`, `premium`, `ultimate`
...@@ -2526,7 +2526,7 @@ Whether or not ModSecurity statistics are unavailable ...@@ -2526,7 +2526,7 @@ Whether or not ModSecurity statistics are unavailable
Group: `group::container security` Group: `group::container security`
Status: `deprecated` Status: `removed`
Tiers: `ultimate` Tiers: `ultimate`
...@@ -11206,6 +11206,30 @@ Status: `data_available` ...@@ -11206,6 +11206,30 @@ Status: `data_available`
Tiers: `premium`, `ultimate` Tiers: `premium`, `ultimate`
### `redis_hll_counters.epics_usage.g_project_management_users_epic_issue_added_from_epic_monthly`
Number of users creating an issue from an epic
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/config/metrics/counts_28d/20210608191652_g_project_management_users_epic_issue_added_from_epic_monthly.yml)
Group: `group::product planning`
Status: `implemented`
Tiers: `premium`
### `redis_hll_counters.epics_usage.g_project_management_users_epic_issue_added_from_epic_weekly`
Number of users creating an issue from an epic
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/config/metrics/counts_7d/20210608191647_g_project_management_users_epic_issue_added_from_epic_weekly.yml)
Group: `group::product planning`
Status: `implemented`
Tiers: `premium`
### `redis_hll_counters.epics_usage.g_project_management_users_removing_epic_emoji_monthly` ### `redis_hll_counters.epics_usage.g_project_management_users_removing_epic_emoji_monthly`
Counts of MAU removing emoji on epic Counts of MAU removing emoji on epic
......
...@@ -58,3 +58,5 @@ export const issueHealthStatusCSSMapping = { ...@@ -58,3 +58,5 @@ export const issueHealthStatusCSSMapping = {
onTrack: 'status-on-track', onTrack: 'status-on-track',
needsAttention: 'status-needs-attention', needsAttention: 'status-needs-attention',
}; };
export const trackingAddedIssue = 'g_project_management_users_epic_issue_added_from_epic';
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
relatedIssuesRemoveErrorMap, relatedIssuesRemoveErrorMap,
} from '~/related_issues/constants'; } from '~/related_issues/constants';
import { ChildType, ChildState, idProp, relativePositions } from '../constants'; import { ChildType, ChildState, idProp, relativePositions, trackingAddedIssue } from '../constants';
import epicChildReorder from '../queries/epicChildReorder.mutation.graphql'; import epicChildReorder from '../queries/epicChildReorder.mutation.graphql';
import { processQueryResponse, formatChildItem, gqClient } from '../utils/epic_utils'; import { processQueryResponse, formatChildItem, gqClient } from '../utils/epic_utils';
...@@ -335,6 +335,7 @@ export const addItem = ({ state, dispatch, getters }) => { ...@@ -335,6 +335,7 @@ export const addItem = ({ state, dispatch, getters }) => {
issuable_references: state.pendingReferences, issuable_references: state.pendingReferences,
}) })
.then(({ data }) => { .then(({ data }) => {
Api.trackRedisHllUserEvent(trackingAddedIssue);
dispatch('receiveAddItemSuccess', { dispatch('receiveAddItemSuccess', {
// Newly added item is always first in the list // Newly added item is always first in the list
rawItems: data.issuables.slice(0, state.pendingReferences.length), rawItems: data.issuables.slice(0, state.pendingReferences.length),
...@@ -568,6 +569,7 @@ export const createNewIssue = ({ state, dispatch }, { issuesEndpoint, title }) = ...@@ -568,6 +569,7 @@ export const createNewIssue = ({ state, dispatch }, { issuesEndpoint, title }) =
return axios return axios
.post(issuesEndpoint, { epic_id: epicId, title }) .post(issuesEndpoint, { epic_id: epicId, title })
.then(({ data }) => { .then(({ data }) => {
Api.trackRedisHllUserEvent(trackingAddedIssue);
dispatch('receiveCreateIssueSuccess', data); dispatch('receiveCreateIssueSuccess', data);
dispatch('fetchItems', { dispatch('fetchItems', {
parentItem, parentItem,
......
---
key_path: redis_hll_counters.epics_usage.g_project_management_users_epic_issue_added_from_epic_monthly
description: Number of users creating an issue from an epic
product_section: dev
product_stage: plan
product_group: group::product planning
product_category: epics_usage
value_type: number
status: implemented
milestone: "13.12"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/61822
time_frame: 28d
data_source: redis_hll
distribution:
- ee
tier:
- premium
--- ---
key_path: usage_activity_by_stage.enablement.counts.geo_node_usage.git_push_event_count_weekly key_path: usage_activity_by_stage.enablement.counts.geo_node_usage.git_push_event_count_weekly
description: Number of git push events from Prometheus on the Geo secondary description: Number of Git push events from Prometheus on the Geo secondary
product_section: enablement product_section: enablement
product_stage: enablement product_stage: enablement
product_group: group::geo product_group: group::geo
......
---
key_path: redis_hll_counters.epics_usage.g_project_management_users_epic_issue_added_from_epic_weekly
description: Number of users creating an issue from an epic
product_section: dev
product_stage: plan
product_group: group::product planning
product_category: epics_usage
value_type: number
status: implemented
milestone: "13.12"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/61822
time_frame: 7d
data_source: redis_hll
distribution:
- ee
tier:
- premium
...@@ -182,3 +182,9 @@ ...@@ -182,3 +182,9 @@
redis_slot: project_management redis_slot: project_management
aggregation: daily aggregation: daily
feature_flag: track_epics_activity feature_flag: track_epics_activity
- name: g_project_management_users_epic_issue_added_from_epic
category: epics_usage
redis_slot: project_management
aggregation: daily
feature_flag: track_epics_activity
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