Initially, no data appears. Data is populated as users comment on open merge requests.
## Overview
Code Review Analytics is available to users with at least the Reporter [role](../permissions.md), and displays a table of open merge requests that have at least one non-author comment. The review time is measured from the time the first non-author comment was submitted.
To access Code Review Analytics, from your project's menu, go to **Analytics > Code Review**.
You can filter the list of merge requests by milestone and label.
NOTE:
Initially, no data appears. Data is populated as users comment on open merge requests.
![Code Review Analytics](img/code_review_analytics_v13_11.png"List of code reviews; oldest review first.")
...
...
@@ -36,6 +30,14 @@ The table is sorted by:
or to be broken down into smaller parts.
- Other columns: Display the author, approvers, comment count, and line change (-/+) counts.
## View Code Review Analytics
To view Code Review Analytics:
1. On the top bar, select **Menu > Projects** and find your project.
1. On the left sidebar, select **Analytics > Code Review**.
1. Filter merge requests by milestone and label.
## Use cases
This feature is designed for [development team leaders](https://about.gitlab.com/handbook/marketing/strategic-marketing/roles-personas/#delaney-development-team-lead)
'<pre lang="plantuml"><code>Bob -> Sara : Hello</code></pre>'
else
'<pre><code lang="plantuml">Bob -> Sara : Hello</code></pre>'
end
it'does not replace plantuml pre tag with img tag if disabled'do
stub_application_setting(plantuml_enabled: false)
output='<div class="listingblock"><div class="content"><pre class="plantuml plantuml-error"> Error: cannot connect to PlantUML server at "invalid"</pre></div></div>'
doc=filter(input)
input='<pre lang="plantuml"><code>Bob -> Sara : Hello</code></pre>'
output='<pre lang="plantuml"><code>Bob -> Sara : Hello</code></pre>'
doc=filter(input)
expect(doc.to_s).toeqoutput
end
expect(doc.to_s).toeqoutput
end
context'using ruby-based HTML renderer'do
beforedo
stub_feature_flags(use_cmark_renderer: false)
end
it_behaves_like'renders correct markdown'
end
it'does not replace plantuml pre tag with img tag if url is invalid'do
input='<pre lang="plantuml"><code>Bob -> Sara : Hello</code></pre>'
output='<div class="listingblock"><div class="content"><pre class="plantuml plantuml-error"> Error: cannot connect to PlantUML server at "invalid"</pre></div></div>'