Skip to content

Sort code quality degradations in comparison reports

Erick Bajao requested to merge eb-sort-code-quality-mr-widget into master

What does this MR do?

Solves #301121 (closed)

This sorts the degradations in the MR Widget code quality report by severity.

This adds a new method #sort_degradations! to the Gitlab::Ci::Reports::CodequalityReports which sorts the degradations by severity. This method is then called by the reports comparer upon initialization.

Screenshots (strongly suggested)

Screen_Shot_2021-03-23_at_11.20.22_PM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Merge request reports

Loading