Skip to content

Replace JobArtifact.*_reports scopes with JobArtifact.of_report_type(report_type) scope

Albert requested to merge alberts-add-method-for-report-scopes into master

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.

#371286

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.

Edited by Albert

Merge request reports