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

Abierto
#2,937 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Área
api

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Sin datos de lenguaje
Estrellas
4
Forks
2
Merge medio
2 h 12 min
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenConceptLab/ocl_issues

Todos los issues de OpenConceptLab/ocl_issues

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.