Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group multiple artifacts of a package version in a set #237

Closed
3 tasks done
pombredanne opened this issue Dec 13, 2023 · 1 comment
Closed
3 tasks done

Group multiple artifacts of a package version in a set #237

pombredanne opened this issue Dec 13, 2023 · 1 comment
Assignees

Comments

@pombredanne
Copy link
Member

pombredanne commented Dec 13, 2023

There are several cases where the relationship between two artifacts of the same package version matters such as tracking a binary and its (assumed) source code together and being able to supplement certain package metadata with details from multiple artifacts. It is also essential to get access to the source code to achieve the goals of this project.

This feature should group together multiple package(s) artifact(s) such as multiple builds of the same package version and the source, patch and Git repo archives in a set that can then be used at query time.

It could also be about grouping multiple manifests or data sources (such as an API and a manifest)

Some of the things I envision include

  • Enhance the data models to support a package set attribute (some UUID?), (or a relationship between packages)
  • Create an API endpoint to return enhanced results for a package set, either by default or as an option
  • Develop various procedures to group packages in a set using PURL-based heuristics or else. These could be triggered at package creation time for instance when the source and binary packages are created together, or there could something like the VCIO improvers to the same effect.
@pombredanne
Copy link
Member Author

This is now completed.

** To test the features of this Task, install PurlDB. Run it locally then:

  1. add a package using the new on demand data collection endpoint
    https:///api/collect/?purl=pkg:maven/com.drewnoakes/metadata-extractor@2.19.0
  2. browse the package:
    https:///api/packages/?purl=pkg:maven/com.drewnoakes/metadata-extractor@2.19.0

See the set for this package with 2 packages (source and binaries)

  1. You can also query the enhanced package details in the set using:
    https:///api/packages//get_enhanced_package_data/ from the details of a package using the “extra data” dropdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants