pages: republish in place, keeping the slug
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 58/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- cli, javascript
Direzione di ricerca
Start by reading the chroxy publish command and the POST /api/pages handler, then inspect the existing page persistence and publish tests. Trace how page content, slug, title, timestamp, and authentication are handled. Done means replacement preserves the URL, missing slugs fail without creating a page, the page list still has one entry, JSON output retains its shape, and tests cover replacement, missing slugs, and auth.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
chroxy publish always creates a new slug. A page that is rebuilt on a schedule (for example a monthly report) gets a new share URL every time, so:
- the people holding the link have to be sent a new one after every rebuild, and
- the publisher has to remember to
chroxy pages rmthe previous slug, or old copies stay live.
Proposal
Let a publish replace the content of an existing page and keep its slug:
chroxy publish out/index.html --replace <slug>
- Writes the new HTML to the existing page, keeps the slug and share URL, and updates its title and timestamp.
- Fails (non-zero exit, nothing changed) if the slug does not exist, so a typo never mints a new page by accident.
--jsonoutput stays the same shape as a normal publish.- The matching
POST /api/pagescall takes the slug and has the same auth as publish. - A way to rotate the slug on purpose stays available: publish new, then
rmthe old one.
Acceptance
- Replacing a page keeps its URL working, and the URL serves the new content.
- Replacing a slug that does not exist exits non-zero and creates nothing.
chroxy pages listshows one entry for the page before and after a replace.- Tests cover replace, a missing slug and auth.
- Lingua principale
- JavaScript
- Stelle
- 7
- Fork
- 1
- Merge medio
- 2h 3m
- PR unite (30g)
- 333
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun 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 blamechris/chroxy
-
from-review tech-debt testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
blamechris/chroxy#9520 ·
I maintainer di solito rispondono entro 1 giorno
-
priority: low server
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
blamechris/chroxy#9340 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation from-review
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
blamechris/chroxy#9237 ·
I maintainer di solito rispondono entro 1 giorno
-
agent-control client: notify() docstring should say the outbound gate applies only in principal modeApertaenhancement from-review
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
blamechris/chroxy#9227 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
blamechris/chroxy#9108 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di blamechris/chroxy
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Use one constant for the 10,000-character input limitForse già presa @NginxL l’ha presa oggi. Apertagood first issue refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
aniru-dh21/snap-validate#51 ·
I maintainer di solito rispondono entro 1 giorno
-
Documentation pleaseAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
area/host bug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Fei2411/DeepSeek-Bot#3190 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
freelawproject/litigant-portal#1307 ·
I maintainer di solito rispondono entro 2 giorni