Concept detail with `includeInverseMappings=true` returns every inverse mapping, unpaginated

Aperta
#2,937 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
api

Direzione di ricerca

Compare the concept detail endpoint with the mappings list URL described in the issue to understand how inverse mappings are included and paginated. First clarify the proposed response behavior with the TBv2 and TBv3 owners; then check the endpoint documentation and relevant API tests. Done means the agreed cap, total and paging URL (or caller guidance) are covered, with tests for the large result set.

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

Descrizione

component/api decision/human-review program/platform-health signal/needs-human signal/small-scope stage/triaged type/bug

GET /orgs/CIEL/sources/CIEL/concepts/1065/?includeMappings=true&includeInverseMappings=true returns 869 mappings (1.39 MB) and takes 1.2–2.5 s. Several LOINC concepts, e.g. 72230-6 and LA6577-6, have 6,000–7,200 inverse mappings in their own source, so their responses would run to many MB.

The repository's mappings list, …/mappings/?toConcept=…&toConceptSource=…&toConceptOwner=…, already pages and counts the same set, in about 0.3 s.

  • Concept detail caps the inverse mappings it includes inline (e.g. at 100), and reports the total and the list URL that pages through the rest. Or the docs point callers to the list.
  • The change to default behaviour is agreed with the TBv2 and TBv3 owners.
Lingua principale
Nessun dato sulla lingua
Stelle
4
Fork
2
Merge medio
2h 12m
PR unite (30g)
1

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 OpenConceptLab/ocl_issues

Tutte le issue di OpenConceptLab/ocl_issues

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.