diff --git a/scanpipe/tests/data/resolved_dependencies_inspect_packages.json b/scanpipe/tests/data/resolved_dependencies_inspect_packages.json index 4aedd79f7..20f0b184a 100644 --- a/scanpipe/tests/data/resolved_dependencies_inspect_packages.json +++ b/scanpipe/tests/data/resolved_dependencies_inspect_packages.json @@ -1110,13 +1110,13 @@ } ], "for_packages": [ - "pkg:npm/create-athena-partition@1.0.0?uuid=fixed-uid-done-for-testing-5642512d1758", + "pkg:npm/athena-express@6.0.4?uuid=fixed-uid-done-for-testing-5642512d1758", "pkg:npm/bluebird@3.7.2?uuid=fixed-uid-done-for-testing-5642512d1758", + "pkg:npm/create-athena-partition@1.0.0?uuid=fixed-uid-done-for-testing-5642512d1758", "pkg:npm/csvtojson@2.0.10?uuid=fixed-uid-done-for-testing-5642512d1758", - "pkg:npm/athena-express@6.0.4?uuid=fixed-uid-done-for-testing-5642512d1758", - "pkg:npm/strip-bom@2.0.0?uuid=fixed-uid-done-for-testing-5642512d1758", + "pkg:npm/is-utf8@0.2.1?uuid=fixed-uid-done-for-testing-5642512d1758", "pkg:npm/lodash@4.17.21?uuid=fixed-uid-done-for-testing-5642512d1758", - "pkg:npm/is-utf8@0.2.1?uuid=fixed-uid-done-for-testing-5642512d1758" + "pkg:npm/strip-bom@2.0.0?uuid=fixed-uid-done-for-testing-5642512d1758" ], "emails": [], "urls": [], diff --git a/scanpipe/tests/test_pipelines.py b/scanpipe/tests/test_pipelines.py index 8bd1a4b04..ed5c03ff8 100644 --- a/scanpipe/tests/test_pipelines.py +++ b/scanpipe/tests/test_pipelines.py @@ -481,10 +481,12 @@ def _normalize_package_uids(self, data): ): value = purl_with_fake_uuid(value) if key == "for_packages" and value: - value = [ - self.purl_fields_with_fake_uuid(package_uid, key) - for package_uid in value - ] + value = sorted( + [ + self.purl_fields_with_fake_uuid(package_uid, key) + for package_uid in value + ] + ) if is_local_files and key in ("name", "namespace", "purl") and value: value = self.purl_fields_with_fake_uuid(value, key) normalized_data[key] = value diff --git a/scanpipe/views.py b/scanpipe/views.py index 25afc709a..203c778bd 100644 --- a/scanpipe/views.py +++ b/scanpipe/views.py @@ -1543,10 +1543,6 @@ class DiscoveredDependencyListView( "field_name": "is_resolved", "filter_fieldname": "is_resolved", }, - { - "field_name": "is_direct", - "filter_fieldname": "is_direct", - }, "for_package", "resolved_to_package", "datafile_resource", diff --git a/setup.cfg b/setup.cfg index b334b295c..67b7344e5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -72,7 +72,7 @@ install_requires = # Docker container-inspector==33.0.0 # ScanCode-toolkit - scancode-toolkit[packages] @ git+https://github.com/nexB/scancode-toolkit.git@ce8e0d1ddc9e8968958313e82481d46498d51f25 + scancode-toolkit[packages] @ git+https://github.com/nexB/scancode-toolkit.git@ae22b45d23122df13ff5d6907a9bb6e117c63026 extractcode[full]==31.0.0 commoncode==31.2.1 # FetchCode