Replace JobArtifact.*_reports scopes with JobArtifact.of_report_type(report_type) scope
What does this MR do and why?
Replaces individual JobArtifact.*_scopes
with JobArtifact.of_report_type(report_type)
scope. This allows us to parameterize fetching of job artifacts of a given report type.
The MR only changes method names, without any change in the implementation.
Currently, the method takes a symbol representing the report type as a parameter, as listed in Ci::JobArtifacts::REPORT_FILE_TYPES
. In a follow up, these symbols should be turned into constants, in order to avoid unnecessary errors.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.