Commit b8438780 authored by Tetiana Chupryna's avatar Tetiana Chupryna

Update naming for licence_scanning

parent dd4f6a66
...@@ -47,7 +47,7 @@ module EE ...@@ -47,7 +47,7 @@ module EE
end end
def license_scanning_reports def license_scanning_reports
reports_response(merge_request.compare_license_management_reports(current_user)) reports_response(merge_request.compare_license_scanning_reports(current_user))
end end
def container_scanning_reports def container_scanning_reports
......
...@@ -183,7 +183,7 @@ module EE ...@@ -183,7 +183,7 @@ module EE
compare_reports(::Ci::CompareDependencyScanningReportsService, current_user) compare_reports(::Ci::CompareDependencyScanningReportsService, current_user)
end end
def has_license_management_reports? def has_license_scanning_reports?
!!(actual_head_pipeline&.has_reports?(::Ci::JobArtifact.license_scanning_reports)) !!(actual_head_pipeline&.has_reports?(::Ci::JobArtifact.license_scanning_reports))
end end
...@@ -217,8 +217,8 @@ module EE ...@@ -217,8 +217,8 @@ module EE
compare_reports(::Ci::CompareDastReportsService, current_user) compare_reports(::Ci::CompareDastReportsService, current_user)
end end
def compare_license_management_reports(current_user) def compare_license_scanning_reports(current_user)
return missing_report_error("license management") unless has_license_management_reports? return missing_report_error("license scanning") unless has_license_scanning_reports?
compare_reports(::Ci::CompareLicenseScanningReportsService, current_user) compare_reports(::Ci::CompareLicenseScanningReportsService, current_user)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment