aboutcode-org / aboutcode-org/purldb

Collect endpoint sorting ability and default ordering.

Aberta
#508 3 comentários 0 reações 1 responsável Reivindicada por @JonoYang Ver no GitHub
enhancement high priority
Linguagem predominante
HTML
Estrelas
67
Forks
69
Merge médio
8d 8h
PRs com merge (30d)
1

Descrição

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.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.