Extension of NPM REST API (repo index)

Aperta
#430 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@TenSt ci sta già lavorando.

Dal 16/9/2026.

  • #431 di @TenSt — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api, backend

Direzione di ricerca

Start with the existing GET …/content/npm/packages/ endpoint and trace the API handling for the repository and content routes. Implement the specified PackageList, PackageVersions, PackageGet, and RepoMetrics behavior, including scoped names, pagination, exact version filtering, collapse_builds, and the listed response fields. Done means the four UI paths can use Pulp REST without direct Postgres access.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Lightwell UI lists npm packages, versions, and (if added) repository counts through content-sources-backend. That backend reads Pulp Postgres directly (Tangy). We need Pulp HTTP APIs so the path is UI → backend → Pulp REST, not SQL.

Today GET …/content/npm/packages/ is one row per (name, version). It cannot paginate distinct package names or return versions grouped per package. The content filter supports name only — there is no version=, so PackageGet cannot select one version without listing all of them.

Scoped packages use the full name string (@types/node).

{pk} is the repository UUID. Latest complete repository version is implied.

UI path Pulp
PackageList New GET …/repositories/npm/npm/{pk}/packages/ — one row per name, paginate, name__istartswith

PackageList rows: name, versions[]).

Lingua principale
Python
Stelle
15
Fork
27
Merge medio
22h 44m
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pulp/pulp_npm

Tutte le issue di pulp/pulp_npm

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.