debian-mirror-gitlab/doc/user/analytics/merge_request_analytics.md

120 lines
4.8 KiB
Markdown
Raw Normal View History

2020-10-24 23:57:45 +05:30
---
description: "Merge Request Analytics help you understand the efficiency of your code review process, and the productivity of your team." # Up to ~200 chars long. They will be displayed in Google Search snippets. It may help to write the page intro first, and then reuse it here.
stage: Manage
2021-02-22 17:27:13 +05:30
group: Optimize
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-10-24 23:57:45 +05:30
---
2021-03-11 19:13:27 +05:30
# Merge Request Analytics **(PREMIUM)**
2020-10-24 23:57:45 +05:30
2021-06-08 01:23:25 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/229045) in GitLab 13.3.
> - Moved to GitLab Premium in 13.9.
2020-10-24 23:57:45 +05:30
Merge Request Analytics helps you understand the efficiency of your code review process, and the productivity of your team.
## Overview
2020-11-24 15:15:51 +05:30
Merge Request Analytics displays information that will help you evaluate the efficiency and productivity of your merge request process.
2020-10-24 23:57:45 +05:30
2020-11-24 15:15:51 +05:30
The Throughput chart shows the number of merge requests merged, by month. Merge request throughput is
2020-10-24 23:57:45 +05:30
a common measure of productivity in software engineering. Although imperfect, the average throughput can
be a meaningful benchmark of your team's overall productivity.
2021-11-11 11:23:49 +05:30
To access Merge Request Analytics:
1. On the top bar, select **Menu > Projects** and find your project.
1. On the left sidebar, select **Analytics > Merge request**.
2020-10-24 23:57:45 +05:30
## Use cases
2021-02-22 17:27:13 +05:30
This feature is designed for [development team leaders](https://about.gitlab.com/handbook/marketing/strategic-marketing/roles-personas/#delaney-development-team-lead)
2020-10-24 23:57:45 +05:30
and others who want to understand broad patterns in code review and productivity.
You can use Merge Request Analytics to expose when your team is most and least productive, and
identify improvements that might substantially accelerate your development cycle.
Merge Request Analytics could be used when:
- You want to know if you were more productive this month than last month, or 12 months ago.
- You want to drill into low- or high-productivity months to understand the work that took place.
2020-11-24 15:15:51 +05:30
## Visualizations and data
2021-02-22 17:27:13 +05:30
The following visualizations and data are available, representing all merge requests that were merged in the given date range.
2020-11-24 15:15:51 +05:30
2021-04-17 20:07:23 +05:30
### Mean time to merge
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/229389) in GitLab 13.9.
The mean time to merge (MTTM) metric shows the average time between when a merge request is created,
and when it is merged. To view how the MTTM changes over time, compare MTTM across different date ranges.
![Mean time to merge](img/mr_mean_time_to_merge_metric_v13_9.png "Merge Request Analytics - MTTM metric showing the average time it takes from initiating a MR to being merged")
2020-11-24 15:15:51 +05:30
### Throughput chart
The throughput chart shows the number of merge requests merged per month.
![Throughput chart](img/mr_throughput_chart_v13_3.png "Merge Request Analytics - Throughput chart showing merge requests merged in the past 12 months")
### Throughput table
2021-06-08 01:23:25 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/232651) in GitLab 13.3.
2021-02-22 17:27:13 +05:30
The Throughput table displays the most recent merge requests merged in the date range. The
table displays up to 20 merge requests at a time. If there are more than 20 merge requests,
you can paginate to them. For each merge request, you can review the following data:
- Title (as a link to the merge request itself)
- ID
- Pipeline status
- Label count
- Comment count
- Approval count (if approved)
- Date merged
- Time to merge
- Milestone
- Commit count
- Pipeline count
- Line change counts
- Assignees
2020-11-24 15:15:51 +05:30
![Throughput table](img/mr_throughput_table_v13_3.png "Merge Request Analytics - Throughput table listing the 100 merge requests most recently merged")
## Filter the data
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/229266) in GitLab 13.4
You can filter the data that is presented on the page based on the following parameters:
- Author
2021-01-29 00:20:46 +05:30
- Assignee
- Label
- Milestone
- Source branch
- Target branch
2020-11-24 15:15:51 +05:30
To filter results:
2021-11-11 11:23:49 +05:30
1. Select the filter bar.
2020-11-24 15:15:51 +05:30
1. Select a parameter to filter by.
1. Select a value from the autocompleted results, or enter search text to refine the results.
2021-11-11 11:23:49 +05:30
1. Press Enter.
2021-02-22 17:27:13 +05:30
## Date range
The date range is set to the past 12 months by default. You can modify the date range by changing the "From" and/or "To" values that appear alongside the filter bar. After changing either value, the data displayed on the page will update automatically.
## Tip: Bookmark preferred settings
You can bookmark preferred filters and date ranges. After you have applied a change to the
filter bar or the date range, you'll see that information in the URL. You can create a
bookmark for those preferred settings in your browser.
2020-11-24 15:15:51 +05:30
2020-10-24 23:57:45 +05:30
## Permissions
2020-11-24 15:15:51 +05:30
The **Merge Request Analytics** feature can be accessed only:
2021-11-18 22:05:49 +05:30
- On [GitLab Premium](https://about.gitlab.com/pricing/) and above.
2020-11-24 15:15:51 +05:30
- By users with [Reporter access](../permissions.md) and above.