needs.json exports first-pass post_content for render-after-needs-collection templates

Abierto
#1,119 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

Start by reading _reread_post_template_pages in score_sphinx_needs_templates and the needs builder path used by needs_json and docs_check; compare when each builder renders the marked templates. The issue points to #763 for the HTML-only check and #1093 for the discovery context. Done when exported post_content matches rendered HTML, or marked templates are excluded from the export.

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

Descripción

Problem

Post-templates marked score: render-after-needs-collection are re-rendered only for the html builder (_reread_post_template_pages in score_sphinx_needs_templates). The needs builder behind needs_json and docs_check therefore exports post_content from the first render. At that point backlinks and document ownership are not yet known.

For example, the post_content of doc_tool__score_docs_as_code in needs.json says "no potential malfunction is documented", because belongs_to_back is still empty during the first render. This affects every marked report template, not just the Tool Verification Report.

Expected

The post_content exported to needs.json matches the rendered HTML, or marked templates are excluded from the export.

Pointers

  • The html-only check was introduced in #763.
  • Found while reviewing #1093.
Lenguaje dominante
Python
Estrellas
11
Forks
39
Merge medio
1 d 13 h
PR fusionados (30 d)
65

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

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 eclipse-score/docs-as-code

Todos los issues de eclipse-score/docs-as-code

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.