Skip to content

Remove build_coverage_regex from project

Max Orefice requested to merge morefice/remove-coverage-regex-from-project into master

Ref: #357401 (closed)

What does this MR?

This MR stops exposing project#build_coverage_regex at the project level and ignore the column so we can drop it in %15.4.

This feature has been deprecated in %15.0.

Why are we doing this?

Following up !86909 (merged) where we continue to expose project#build_coverage_regex for 2 milestones in order to help users retrieve their coverage regex and update their CI job with the coverage keyword.

Testing locally

  1. Assign a value to project#build_coverage_regex for a given project
  2. Create an access token
  3. Verify you can retrieve the data for a given project
Project.find(<PROJECT_ID>).update(build_coverage_regex: '/coverage: \d+.\d+%/')
curl --header "Authorization: Bearer <ACCESS_TOKEN>" "http://192.168.100.160:3000/api/v4/projects/<PROJECT_ID>"

MR acceptance checklist

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

Edited by Max Orefice

Merge request reports