Add effective code lines to project graphs
What does this MR do and why?
Related to issue #1279 (closed) Add effective code lines to graphs api. So frontend can display effective code lines data.
{
additions: 21
author_email: "fatkodima123@gmail.com"
author_name: "fatkodima"
date: "2022-06-07"
deletions: 1
effective_additions: 17
effective_deletions: 1
id: "dd33effa46d3b8b3083b8f990df9eb1a3e708034"
}
Screenshots or screen recordings
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Enable
lines_of_code
feature for a project
::Feature.enable(:lines_of_code, @project)
- Visit project detail page, click Repository -> Contributors
- Open the chrome console.
- See the data.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
由 张泽华 编辑于