aboutcode-org / aboutcode-org/purldb

Collect endpoint sorting ability and default ordering.

Abierto
#508 3 comentarios 0 reacciones 1 asignado Reclamado por @JonoYang Ver en GitHub
enhancement high priority
Lenguaje dominante
HTML
Estrellas
67
Forks
69
Merge medio
8 d 8 h
PR fusionados (30 d)
1

Descripción

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 the `sort=-version` filter for ordering, but this is not available on the `collect` endpoint.

I think we should:
1. Add the ability to provide the `sort` parameter to the `collect` endpoint
2. Set a default `order_by` on the `collect` 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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.