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

Return empty purl fields in purl_to_lookups #118

Closed
JonoYang opened this issue Apr 24, 2023 · 1 comment
Closed

Return empty purl fields in purl_to_lookups #118

JonoYang opened this issue Apr 24, 2023 · 1 comment

Comments

@JonoYang
Copy link
Collaborator

purl_to_lookups in django/utils.py returns the purl fields that have values. It would be nice to have an option for it to return all purl fields, even if the field was not populated. This is helpful in the case where we have two packages, pkg:maven/net.minidev/accessors-smart@2.4.9 and pkg:maven/net.minidev/accessors-smart@2.4.9?classifier=sources. When I use purl_to_lookups on pkg:maven/net.minidev/accessors-smart@2.4.9, and then use that to get a Package from the database, it returns pkg:maven/net.minidev/accessors-smart@2.4.9 and pkg:maven/net.minidev/accessors-smart@2.4.9?classifier=sources, when I just want pkg:maven/net.minidev/accessors-smart@2.4.9

tdruez added a commit that referenced this issue Jun 13, 2024
Signed-off-by: tdruez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Jun 13, 2024
Signed-off-by: tdruez <tdruez@nexb.com>
@tdruez
Copy link
Collaborator

tdruez commented Jun 13, 2024

Merged in #156

There's now the possibility to filter on exact match.

@tdruez tdruez closed this as completed Jun 13, 2024
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