aboutcode-org / aboutcode-org/purldb

Collect endpoint sorting ability and default ordering.

オープン
#508 コメント 3 件 リアクション 0 件 担当者 1 名 @JonoYang が担当を希望しています GitHub で見る
enhancement high priority
主要言語
HTML
スター
67
フォーク
69
平均マージ
8日 8時間
マージ済み PR(30日)
1

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。