Links: post:<id> references resolved at publish
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 30/100
Direzione di ricerca
Start with renderSvx and syncSiteText, which the issue names as the places that rewrite post:<id> hrefs and compare site .svx bodies to the published revision. The id-to-slug lookup comes from posts.id in SQLite. Done when the five checks (live, draft, deleted, rename between publishes, no-post:-link byte-identical output) pass and a publish never writes a post: href. This depends on the link-lint issue, so confirm that lands first.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
Links by slug break on rename and say nothing about draft status. Every post already has a permanent 6-character id (posts.id). Design notes: a post:<id> link written in the editor, resolved to /<slug> when the .svx is rendered.
Scope
renderSvxtakes the live id-to-slug map and rewritespost:<id>hrefs. A target that is not live (draft, unpublished, deleted) loses its href and keeps its text, with a warning in the Publish view naming the link.syncSiteTextmust compare a site.svxbody against the rendered form of the published revision, otherwise every publish looks like an external edit.- Unlinked references heal on the next publish once the target goes live.
Acceptance criteria
- Checks cover: live target, draft target, deleted target, rename between two publishes, and a body without
post:links (byte-identical output). - After a publish, no post shows as changed because of link rewriting.
- A
post:href never reaches a written.svx; if one would, the publish is blocked.
Depends on the link-lint issue. Estimate: about 5 hours.
- Lingua principale
- HTML
- Stelle
- 0
- Fork
- 0
- Merge medio
- 1m
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mrgnw/cfcms
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
G-nn-r/lg_heatpump#52 ·
-
area: core bug priority: high
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
griffinwork40/agent-afk#4872 ·
I maintainer di solito rispondono entro 1 giorno
-
fleet size/m
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sipyourdrink-ltd/bernstein#7517 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
BUG-MERGE-TO-HDR-RESULT-NAMEForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
storytold/photocraft#14025 ·
I maintainer di solito rispondono entro 1 giorno