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.
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**.
NOTE:
Initially, no data appears. Data is populated as users comment on open merge requests.
You can filter the list of merge requests by milestone and label.
![Code Review Analytics](img/code_review_analytics_v13_11.png"List of code reviews; oldest review first.")
![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:
...
@@ -36,6 +30,14 @@ The table is sorted by:
or to be broken down into smaller parts.
or to be broken down into smaller parts.
- Other columns: Display the author, approvers, comment count, and line change (-/+) counts.
- 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
## Use cases
This feature is designed for [development team leaders](https://about.gitlab.com/handbook/marketing/strategic-marketing/roles-personas/#delaney-development-team-lead)
This feature is designed for [development team leaders](https://about.gitlab.com/handbook/marketing/strategic-marketing/roles-personas/#delaney-development-team-lead)
it'does not replace plantuml pre tag with img tag if disabled'do
'<pre lang="plantuml"><code>Bob -> Sara : Hello</code></pre>'
stub_application_setting(plantuml_enabled: false)
else
'<pre><code lang="plantuml">Bob -> Sara : Hello</code></pre>'
end
output='<div class="listingblock"><div class="content"><pre class="plantuml plantuml-error"> Error: cannot connect to PlantUML server at "invalid"</pre></div></div>'
input='<pre lang="plantuml"><code>Bob -> Sara : Hello</code></pre>'
doc=filter(input)
output='<pre lang="plantuml"><code>Bob -> Sara : Hello</code></pre>'
doc=filter(input)
expect(doc.to_s).toeqoutput
expect(doc.to_s).toeqoutput
end
end
end
context'using ruby-based HTML renderer'do
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>'
beforedo
output='<div class="listingblock"><div class="content"><pre class="plantuml plantuml-error"> Error: cannot connect to PlantUML server at "invalid"</pre></div></div>'
This paragraph has a footnote.footnote:[This is the text of the footnote.]
Learn how to xref:cross-references[use cross references].
ADOC
output=<<~HTML
[[cross-references]]A link to another location within an AsciiDoc document or between AsciiDoc documents is called a cross reference (also referred to as an xref).
<div>
ADOC
<p>This paragraph has a footnote.<sup>[<a id="_footnoteref_1" href="#_footnotedef_1" title="View footnote.">1</a>]</sup></p>
</div>
output=<<~HTML
<div>
<div>
<hr>
<p>Learn how to <a href="#cross-references">use cross references</a>.</p>
<div id="_footnotedef_1">
</div>
<a href="#_footnoteref_1">1</a>. This is the text of the footnote.
<div>
</div>
<p><a id="user-content-cross-references"></a>A link to another location within an AsciiDoc document or between AsciiDoc documents is called a cross reference (also referred to as an xref).</p>
Learn how to xref:cross-references[use cross references].
Werewolves are allergic to #cassia cinnamon#.
[[cross-references]]A link to another location within an AsciiDoc document or between AsciiDoc documents is called a cross reference (also referred to as an xref).
ADOC
output=<<~HTML
Did the werewolves read the [.small]#small print#?
<div>
<p>Learn how to <a href="#cross-references">use cross references</a>.</p>
</div>
<div>
<p><a id="user-content-cross-references"></a>A link to another location within an AsciiDoc document or between AsciiDoc documents is called a cross reference (also referred to as an xref).</p>