Skip to content

Add code coverage data to GraphQL API

Problem to solve

As a frontend engineer at GitLab I want the Code coverage reporting data available through GraphQL so I can have flexible access to it in order to iterate on the code coverage analytics features without requiring small backend changes each iteration.

Intended users

Frontend Engineers at GitLab

User experience goal

Flexible access to the Code Coverage data for groups and projects over time in order to enable the features outlined in &2838 (closed).

Proposal

We should add our code coverage data from daily_build_group_report_results into our GraphQL api.

Further details

The data is stored in a jsonb column inside of the postgres database. It is unclear how writing a GraphQL resolver for this strongly structured json data should work. There's a github issue here: https://github.com/rmosolgo/graphql-ruby/issues/474 that potentially has a solution but investigation is required to figure out if that applies in our case.

Permissions and Security

Documentation

Availability & Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Is this a cross-stage feature?

Links / references

Edited by Ricky Wiens