generated from aboutcode-org/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Collect endpoint sorting ability and default ordering. #508
Labels
Comments
JonoYang
added a commit
that referenced
this issue
Jul 23, 2024
Signed-off-by: Jono Yang <[email protected]>
@tdruez I've set ordering of the package results from |
@JonoYang We want consistency across all endpoints. The |
JonoYang
added a commit
that referenced
this issue
Aug 1, 2024
Signed-off-by: Jono Yang <[email protected]>
JonoYang
added a commit
that referenced
this issue
Aug 2, 2024
* Create CommaListField Signed-off-by: Jono Yang <[email protected]>
JonoYang
added a commit
that referenced
this issue
Aug 2, 2024
Signed-off-by: Jono Yang <[email protected]>
JonoYang
added a commit
that referenced
this issue
Aug 2, 2024
Signed-off-by: Jono Yang <[email protected]>
JonoYang
added a commit
that referenced
this issue
Aug 2, 2024
Signed-off-by: Jono Yang <[email protected]>
JonoYang
added a commit
that referenced
this issue
Aug 2, 2024
Signed-off-by: Jono Yang <[email protected]>
JonoYang
added a commit
that referenced
this issue
Aug 2, 2024
Signed-off-by: Jono Yang <[email protected]>
JonoYang
added a commit
that referenced
this issue
Aug 12, 2024
Signed-off-by: Jono Yang <[email protected]>
JonoYang
added a commit
that referenced
this issue
Aug 12, 2024
* Create CommaListField Signed-off-by: Jono Yang <[email protected]>
JonoYang
added a commit
that referenced
this issue
Aug 12, 2024
Signed-off-by: Jono Yang <[email protected]>
JonoYang
added a commit
that referenced
this issue
Aug 12, 2024
Signed-off-by: Jono Yang <[email protected]>
JonoYang
added a commit
that referenced
this issue
Aug 12, 2024
Signed-off-by: Jono Yang <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In general, when multiple package entries are found in the PurlDB, we decided to use the most recent version for "package enriching" or data display in ScanCode.io and DejaCode.
When using the
packages
endpoint, one can use thesort=-version
filter for ordering, but this is not available on thecollect
endpoint.I think we should:
sort
parameter to thecollect
endpointorder_by
on thecollect
endpoint package QuerySet, to avoid returning a random order by the results. I would suggest always sorting by the most recent version, ie:-version
, to be coherent with the data we care to display first.The text was updated successfully, but these errors were encountered: