Skip to content

Add effective code lines to project graphs

张泽华请求将lines-of-code-project合并到main-jh

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

image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Enable lines_of_code feature for a project
::Feature.enable(:lines_of_code, @project)
  1. Visit project detail page, click Repository -> Contributors
  2. Open the chrome console.
  3. See the data.

image

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

张泽华 编辑于

合并请求报告

加载中