diff --git a/app/views/projects/graphs/show.html.haml b/app/views/projects/graphs/show.html.haml index 9d6f67bd1900042da36fc15dcb1e198fdf519926..97909dc8c1843cd14b800cc6b460235b4c5a36eb 100644 --- a/app/views/projects/graphs/show.html.haml +++ b/app/views/projects/graphs/show.html.haml @@ -1,4 +1,4 @@ -- page_title _('Contributor statistics') +- page_title _('Contributor analytics') - graph_path = project_graph_path(@project, current_ref, ref_type: @ref_type, format: :json) - commits_path = project_commits_path(@project, current_ref, ref_type: @ref_type) diff --git a/doc/user/analytics/contributor_analytics.md b/doc/user/analytics/contributor_analytics.md new file mode 100644 index 0000000000000000000000000000000000000000..26dd79533a35467705a020f5ca3ad2122abce72d --- /dev/null +++ b/doc/user/analytics/contributor_analytics.md @@ -0,0 +1,48 @@ +--- +stage: Plan +group: Optimize +info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments +--- + +# Contributor analytics **(FREE ALL)** + +Contributor analytics give you an overview of the commits made by projects members to a project over time. + +## View contributor analytics + +The contributor analytics page displays a line chart with the number of commits to the selected project branch over time, +and line charts with the number of commits by each project member. + +To view contributor analytics for a project: + +1. On the left sidebar, select **Search or go to** and find your project. +1. Select **Analyze > Contributor analytics**. +1. From the **Branches** (**main**) dropdown list, select the branch you want to view commits for. +1. To view the number of commits made on a specific day, hover over the line chart. +1. Optional. To display commits only for a specific time period, select the pause icons (**{status-paused}**) and slide them along the horizontal axis: + + - To change the start date, slide the left pause icon to the left or right. + - To change the end date, slide the right pause icon to the left or right. + +## View project commit history + +To view a list of commits made by project members per day: + +1. On the left sidebar, select **Search or go to** and find your project. +1. Select **Analyze > Contributor analytics**. +1. Select **History**. +1. From the **Branches** (**main**) dropdown list, select the branch you want to view commits for. +1. To view the number of commits made by the members on a specific day, hover over the line chart. +1. Optional. Filter the results. + + - To filter by author, from the **Author** dropdown list, select the user whose commits you want to view. + - To filter by commit message, in the text box, enter your search criteria. + +## Retrieve project commits as an RSS feed + +To view the list of commits to the project as an RSS feed in Atom format: + +1. On the left sidebar, select **Search or go to** and find your project. +1. Select **Analyze > Contributor analytics**. +1. Select **History**. +1. In the upper-right corner, select the feed symbol (**{rss}**). diff --git a/doc/user/analytics/contributor_statistics.md b/doc/user/analytics/contributor_statistics.md index 37ba852b16f79846caa8aa29aa6e2ac2e418d7cb..b6f195e22adbe36009856b101779f2400ae8b50f 100644 --- a/doc/user/analytics/contributor_statistics.md +++ b/doc/user/analytics/contributor_statistics.md @@ -1,48 +1,11 @@ --- -stage: Plan -group: Optimize -info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments +redirect_to: 'contributor_analytics.md' +remove_date: '2023-03-06' --- -# Contributor statistics **(FREE ALL)** +This document was moved to [another location](contributor_analytics.md). -Contributor statistics give you an overview of the commits made by projects members to a project over time. - -## View contributor statistics - -The contributor statistics page displays a line chart with the number of commits to the selected project branch over time, -and line charts with the number of commits by each project member. - -To view contributor statistics for a project: - -1. On the left sidebar, select **Search or go to** and find your project. -1. Select **Analyze > Contributor statistics**. -1. From the **Branches** (**main**) dropdown list, select the branch you want to view commits for. -1. To view the number of commits made on a specific day, hover over the line chart. -1. Optional. To display commits only for a specific time period, select the pause icons (**{status-paused}**) and slide them along the horizontal axis: - - - To change the start date, slide the left pause icon to the left or right. - - To change the end date, slide the right pause icon to the left or right. - -## View project commit history - -To view a list of commits made by project members per day: - -1. On the left sidebar, select **Search or go to** and find your project. -1. Select **Analyze > Contributor statistics**. -1. Select **History**. -1. From the **Branches** (**main**) dropdown list, select the branch you want to view commits for. -1. To view the number of commits made by the members on a specific day, hover over the line chart. -1. Optional. Filter the results. - - - To filter by author, from the **Author** dropdown list, select the user whose commits you want to view. - - To filter by commit message, in the text box, enter your search criteria. - -## Retrieve project commits as an RSS feed - -To view the list of commits to the project as an RSS feed in Atom format: - -1. On the left sidebar, select **Search or go to** and find your project. -1. Select **Analyze > Contributor statistics**. -1. Select **History**. -1. In the upper-right corner, select the feed symbol (**{rss}**). +<!-- This redirect file can be deleted after <YYYY-MM-DD>. --> +<!-- Redirects that point to other docs in the same project expire in three months. --> +<!-- Redirects that point to docs in a different project or site (for example, link is not relative and starts with `https:`) expire in one year. --> +<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/redirects.html --> diff --git a/doc/user/analytics/index.md b/doc/user/analytics/index.md index e015c68a9beba642b7d96b1ff6f816d1708a02b9..d58426bd76b1590768b8e08f61abf7ddb5820906 100644 --- a/doc/user/analytics/index.md +++ b/doc/user/analytics/index.md @@ -37,7 +37,7 @@ Use project-level analytics to get insights into your projects': - [Security Dashboards](../application_security/security_dashboard/index.md) - [CI/CD analytics and DORA metrics](ci_cd_analytics.md) - [Code review analytics](code_review_analytics.md) -- [Contributor statistics](../../user/analytics/contributor_statistics.md) +- [Contributor analytics](../../user/analytics/contributor_analytics.md) - [Insights](../project/insights/index.md) - [Issue analytics](../../user/analytics/issue_analytics.md) - [Merge request analytics](merge_request_analytics.md), enabled with the `project_merge_request_analytics` diff --git a/doc/user/project/repository/index.md b/doc/user/project/repository/index.md index fff4174d9390faf2f49b2101f36fb03b41b55265..3640a54149a5f104b4da303c8af65cf0bd593a28 100644 --- a/doc/user/project/repository/index.md +++ b/doc/user/project/repository/index.md @@ -255,9 +255,9 @@ The size can differ slightly from one instance to another due to compression, ho Administrators can set a [repository size limit](../../../administration/settings/account_and_limit_settings.md). [GitLab sets the size limits for GitLab.com](../../gitlab_com/index.md#account-and-limit-settings). -## Repository contributor statistics +## Repository contributor analytics -You can view a list and charts of commits made by project members in [Contributor statistics](../../analytics/contributor_statistics.md). +You can view a list and charts of commits made by project members in [Contributor analytics](../../analytics/contributor_analytics.md). ## Repository history graph diff --git a/lib/sidebars/projects/menus/repository_menu.rb b/lib/sidebars/projects/menus/repository_menu.rb index 259e32853381aab38925ea3a102fde53240a1717..5d23bf1f59c843365b65992d9be776020dc2f26a 100644 --- a/lib/sidebars/projects/menus/repository_menu.rb +++ b/lib/sidebars/projects/menus/repository_menu.rb @@ -102,7 +102,7 @@ def contributors_menu_item link = project_graph_path(context.project, context.current_ref, ref_type: ref_type_from_context(context)) ::Sidebars::MenuItem.new( - title: _('Contributor statistics'), + title: _('Contributor analytics'), link: link, super_sidebar_parent: ::Sidebars::Projects::SuperSidebarMenus::AnalyzeMenu, active_routes: { path: 'graphs#show' }, diff --git a/locale/gitlab.pot b/locale/gitlab.pot index ef795e9926e14d83df4499132b6b53ae97cb5d5d..fba46976d55009bd207830a5ba7d483ef995f2f1 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -13818,7 +13818,7 @@ msgstr "" msgid "Contributor" msgstr "" -msgid "Contributor statistics" +msgid "Contributor analytics" msgstr "" msgid "Control how the CI_JOB_TOKEN CI/CD variable is used for API access between projects." diff --git a/qa/qa/ee/page/project/sub_menus/analyze.rb b/qa/qa/ee/page/project/sub_menus/analyze.rb index 5a09153de7ea8f9aea5125f7224bdb770cda3b4a..5f238bfe2c499e88f79c7b28323cc5a8d7c3f49e 100644 --- a/qa/qa/ee/page/project/sub_menus/analyze.rb +++ b/qa/qa/ee/page/project/sub_menus/analyze.rb @@ -21,7 +21,7 @@ def go_to_value_stream_analytics end def go_to_contributor_statistics - open_analyze_submenu('Contributor statistics') + open_analyze_submenu('Contributor analytics') end def go_to_code_review_analytics diff --git a/spec/lib/sidebars/projects/menus/repository_menu_spec.rb b/spec/lib/sidebars/projects/menus/repository_menu_spec.rb index 1aa0ea30d0aa0bbba9c3d3c8b7b9ea224187f55d..b29427d68dd923c63e4bced229901240c5352c28 100644 --- a/spec/lib/sidebars/projects/menus/repository_menu_spec.rb +++ b/spec/lib/sidebars/projects/menus/repository_menu_spec.rb @@ -112,7 +112,7 @@ end end - describe 'Contributor statistics' do + describe 'Contributor analytics' do let_it_be(:item_id) { :contributors } context 'when analytics is disabled' do diff --git a/spec/support/helpers/navbar_structure_helper.rb b/spec/support/helpers/navbar_structure_helper.rb index 131c7597827123a51ba97be71c2c675668d3921e..5519a6910a21549f2dbd4624bebdc8e5813125b6 100644 --- a/spec/support/helpers/navbar_structure_helper.rb +++ b/spec/support/helpers/navbar_structure_helper.rb @@ -127,7 +127,7 @@ def insert_model_experiments_nav(within) def project_analytics_sub_nav_item [ _('Value stream analytics'), - _('Contributor statistics'), + _('Contributor analytics'), _('CI/CD analytics'), _('Repository analytics'), (_('Code review analytics') if Gitlab.ee?),