diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-23 15:07:23 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-23 15:07:23 +0300 |
commit | 84b507d17bad7636a02ae2e9f59e8eb219ad7e15 (patch) | |
tree | fb544e6ae2990ec9b7ccd21c7add91a89623f4de /app/assets/javascripts/analytics/shared/constants.js | |
parent | 5831f05b4ce3e5af23c98a8c9495419509df6d62 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/analytics/shared/constants.js')
-rw-r--r-- | app/assets/javascripts/analytics/shared/constants.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/assets/javascripts/analytics/shared/constants.js b/app/assets/javascripts/analytics/shared/constants.js index e48281a7453..1d4a0e07051 100644 --- a/app/assets/javascripts/analytics/shared/constants.js +++ b/app/assets/javascripts/analytics/shared/constants.js @@ -122,6 +122,12 @@ export const MERGE_REQUEST_METRICS = { THROUGHPUT: MERGE_REQUEST_THROUGHPUT_TYPE, }; +export const CONTRIBUTOR_COUNT_TYPE = 'contributor_count'; + +export const CONTRIBUTOR_METRICS = { + COUNT: CONTRIBUTOR_COUNT_TYPE, +}; + export const METRIC_TOOLTIPS = { [DORA_METRICS.DEPLOYMENT_FREQUENCY]: { description: s__( @@ -193,6 +199,15 @@ export const METRIC_TOOLTIPS = { projectLink: '-/analytics/merge_request_analytics', docsLink: helpPagePath('user/analytics/merge_request_analytics'), }, + [CONTRIBUTOR_METRICS.COUNT]: { + description: s__( + 'ValueStreamAnalytics|Number of monthly unique users with contributions in the group.', + ), + groupLink: '-/contribution_analytics', + docsLink: helpPagePath('user/profile/contributions_calendar.html', { + anchor: 'user-contribution-events', + }), + }, [VULNERABILITY_METRICS.CRITICAL]: { description: s__('ValueStreamAnalytics|Critical vulnerabilities over time.'), groupLink: '-/security/vulnerabilities?severity=CRITICAL', |