Show Code Quality report for changed files only
Problem to solve
Having the entire code quality report available to developers in the pipeline view is nice for small projects or projects with only a handful of overall issues but it's overwhelming on a project like GitLab.org which has over 1000 code quality errors. Finding anything in that list that is actionable is impossible.
Intended users
Further details
This feature will get us closer to the goals of making the code quality data usable for all developers and ensuring Delaney can help fight off tech debt in a project.
Proposal
The original proposal (copied below) was to copy the MR widget for Code Quality to the pipeline tab. Since then the Full Code Quality report has been implemented. This proposal has been changed to include a toggle to show code quality results only on files edited in the change.
Create a toggle to switch between all Code Quality entries and just those for files that are part of the current change. This is different from the MR widget in there is no comparison to another file, just filtering on file name to those that changed. "What's Changed" is up for discussion as this implies there is a Merge Request. If there is another well understood way to express "changed files" that are associated with a pipeline that method can be used. Regardless we will focus on the smallest possible change that delivers value.
Permissions and Security
Documentation
Availability & Testing
What does success look like, and how can we measure that?
Success
- This change will result in an increase of 25% in active users of the Full Code Quality report within 90 days of its launch as measured on .com.
Acceptance Criteria
What is the type of buyer?
This is a value add for Delaney an engineering/dev team lead.
Links / references
We also make the There could be a scenario where the workflow does not include MRs (like a personal project) or it could be usefull to know directly through the pipelines where the code was degraded or improved. We already have the frontend and backend to do this (it would be an easy change) We could add it in the Pipelines view, I think this is the most minimal change we could do:
Original writeup
Currently we support code quality in MR, and show a visual of the generated `codeclimate.json` in the MR widget:
codeclimate.json
file available as an artifact once the pipeline runs to download.
Proposal:
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.