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

Offen
#1,119 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
documentation

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
Python
Sterne
11
Forks
39
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
65

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus eclipse-score/docs-as-code

Alle Issues in eclipse-score/docs-as-code

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.