Publish: one-time import of git-published posts into the store

Aperta
#21 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
sqlite
Ambito
backend, database

Direzione di ricerca

Start with how the CMS records each post's slug and published_hash in the SQLite store, and how it currently reads published .svx files from the blog checkout. Add an import command or admin action with a dry-run mode that lists writes without making them. Done when a second run changes nothing and switching to the Cloudflare target shows every post as published with no pending changes. The issue depends on #18, so confirm that work has landed first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Part of #16. Depends on #18.

Existing blogs have published posts as .svx files in git. Provide a one-time import that reads the blog checkout's published set into the store, so switching targets does not lose or duplicate anything.

Acceptance criteria

  • A command or admin action imports every published post into the store, keyed by the same slug and published_hash the CMS already tracks.
  • Running it twice changes nothing.
  • A dry run lists what would be written.
  • After import, switching the target to Cloudflare shows every post as published with no pending changes.
Lingua principale
HTML
Stelle
0
Fork
0
Merge medio
1m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mrgnw/cfcms

Tutte le issue di mrgnw/cfcms

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.