🐛(Bug) Interlinking mentions create link traces on docs the user never opened

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

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python, typescript
Área
api, backend

Línea de trabajo

Start with retrieve in src/backend/core/api/viewsets.py and follow the title lookups in LinkSelected.tsx and src/frontend/apps/impress/src/features/docs/doc-export/utils.ts. Check how those calls differ from opening a document page. Done means title lookups no longer create visit traces, while opening a document still records one.

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

Descripción

backend frontend

retrieve records a LinkTrace on the first GET /documents/{id}/ of every authenticated user:
https://github.com/suitenumerique/docs/blob/74608c95633636a132ce97424774bd9a715c31bb/src/backend/core/api/viewsets.py#L733-L737
Interlinking calls it only to show the title of a mentioned doc, in the editor (LinkSelected) and on export (resolveInterlinkTitles). So reading a doc that mentions a public or authenticated-reach doc adds that doc to the reader's doc list as noise, and fills the table with traces nobody needs.
Suggested fix: add an opt-out on retrieve (e.g. ?trace=false) used by these title lookups, so that only opening the doc page records a visit; or a lightweight title lookup endpoint, like the dedicated action proposed in #2868.

Lenguaje dominante
TypeScript
Estrellas
17k
Forks
705
Merge medio
4 d 13 h
PR fusionados (30 d)
47

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 suitenumerique/docs

Todos los issues de suitenumerique/docs

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.