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

fix: enable filtering/sorting on qualified purl json fields #1073

Merged
merged 7 commits into from
Dec 6, 2024

Conversation

jcrossley3
Copy link
Contributor

@jcrossley3 jcrossley3 commented Dec 5, 2024

Fixes #888
Fixes #951
Fixes #972

This introduces some potential naming conflicts, specifically that type is a valid PURL qualifier as well as an attribute of the PURL itself, therefore we currently alias ty to type, which effectively prohibits using the type qualifier in queries; only the type of the PURL itself may be used.

We need to decide which qualifiers we want to support.

@jcrossley3 jcrossley3 marked this pull request as ready for review December 5, 2024 21:14
This required us to fix the filter logic so that translation occurs
before fetching the field's column metadata.

Signed-off-by: Jim Crossley <[email protected]>
Signed-off-by: Jim Crossley <[email protected]>
Copy link
Collaborator

@JimFuller-RedHat JimFuller-RedHat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice, LGTM

Copy link
Member

@carlosthe19916 carlosthe19916 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it with UI and it works! Thank you!

@jcrossley3 jcrossley3 added this pull request to the merge queue Dec 6, 2024
Merged via the queue into trustification:main with commit 60c6097 Dec 6, 2024
2 checks passed
@jcrossley3 jcrossley3 deleted the purl-json-fields branch December 6, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants