Skip to content
Snippets Groups Projects

Sort dependencies by license

Merged mo khan requested to merge mokhax/422086/sort-by-spdx-id into master
1 unresolved thread
3 files
+ 17
7
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -15,7 +15,7 @@ def execute
@@ -15,7 +15,7 @@ def execute
sbom_occurrences.order_by_component_name(sort_direction)
sbom_occurrences.order_by_component_name(sort_direction)
when 'packager'
when 'packager'
sbom_occurrences.order_by_package_name(sort_direction)
sbom_occurrences.order_by_package_name(sort_direction)
when 'spdx_identifier'
when 'license'
sbom_occurrences.order_by_spdx_identifier(sort_direction)
sbom_occurrences.order_by_spdx_identifier(sort_direction)
else
else
sbom_occurrences.order_by_id
sbom_occurrences.order_by_id
@@ -32,7+32,7 @@
@@ -32,7+32,7 @@
collection = filter_by_package_managers(collection) if params[:package_managers].present?
collection = filter_by_package_managers(collection) if params[:package_managers].present?
collection = filter_by_component_names(collection) if params[:component_names].present?
collection = filter_by_component_names(collection) if params[:component_names].present?
collection.with_component.with_version.with_source.with_project
collection.with_component.with_version.with_source.with_project
end
end
Loading