Skip to content

Rails5: fix VulnerabilitySummaryEntity

What does this MR do?

In Rails 5 the counted_by_report_and_severity returns the report_type enum value instead of the db integer. Added Rails 5 check to fix the serialiser entity.

Fix ee/spec/controllers/groups/security/vulnerabilities_controller_spec.rb:165, see https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/106942334

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Merge request reports