Create partial report file as pipelineArtifact so we can use it for the Code Quality MR diff view
Summary
TBD After #271077 (closed)
Once we have moved the diff logic for the Code Quality report files into the backend, we should persist those diffs as PipelineArtifacts. We should create a partial report file as a pipelineArtifact for this widget to use. This is the second step in displaying code quality notices in the MR Diff view along side test coverage notices.
Proposal
- Add
code_quality
as afile_type
to PipelineArtifact - Refactor CreateArtifactService to support
code_quality
-
Persist
code_quality
diff report inPipelineArtifacts
-
Fetch
code_quality
report fromPipelineArtifacts
Improvements
This will enable the same artifact to be used for the MR widget and the MR Diff reducing the amount of load time for these artifacts. Hopefully this improves initial load times and also makes the data more flexible.
Documentation
The PipelineArtifact documentation page should be updated to contain this type of artifact.
Risks
This may introduce a delay between when the MR widget will be prepared to display as now it must wait on the background processing to finish before displaying. I'm not sure that this will be better or worse than it is right now though.