Architecture: punt all git concerns to DMC GitSync
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
- 45/100
Línea de trabajo
Comienza revisando la hoja de ruta de MDI y buscando en el repositorio cualquier uso externo de git o primitivas de git. Se considera completado cuando el trabajo de git auto-commit está ausente de la hoja de ruta, todas las operaciones de git existentes están identificadas para su extracción y el trabajo futuro de vigilancia de archivos está claramente separado de las responsabilidades de DMC GitSync.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Statement
Markdown Database Integration should not implement git operations. All git concerns (remotes, pull, push, bind, auth, conflict resolution) belong in the separate Data Machine Code GitSync module, which shipped this layer on 2026-04-20.
This issue exists to formalize that boundary so future contributors don't reach for git primitives inside MDI.
Layering
┌─────────────────────────────────────────────────┐
│ DMC GitSync │
│ bind / pull / push / submit / status / policy │ ← ALL git concerns
│ GitHub Contents + Git Data APIs │
│ (no shell, no git binary, no .git/ directory) │
└─────────────────────────────────────────────────┘
▲
│ points at wp-content/markdown/
│
┌─────────────────────────────────────────────────┐
│ Markdown Database Integration │
│ WP post ↔ .md file on disk │ ← filesystem stops here
│ frontmatter / loader / write engine / index │
└─────────────────────────────────────────────────┘
▲
│
┌─────────────────────────────────────────────────┐
│ WordPress (posts, meta, options) │
└─────────────────────────────────────────────────┘
- MDI's job: WordPress post ↔ markdown file on disk. Full stop.
- GitSync's job: markdown file on disk ↔ upstream git repo.
- Integration: GitSync writes files; MDI notices (via file-watching, not git).
What stays in MDI
- File watching / filesystem reactivity — detecting new or changed
.mdfiles and rehydrating the post index. This is incremental-sync plumbing, not a git concern. - Frontmatter round-trip, slug derivation, ID assignment (see #42).
- The markdown ↔ block conversion pipeline.
What moves out (or was never MDI's in the first place)
git commit/git push/git pull/git status— DMC GitSync.- Remote repo configuration and auth — DMC GitSync.
- Branch / worktree management — DMC GitSync.
- Conflict resolution semantics — DMC GitSync.
- PR creation for wiki-content syncs — DMC GitSync's
submitability.
Why this matters
MDI must work identically across environments:
- Self-hosted with DMC + GitSync installed
- Studio local dev (symlinked MDI checkouts, no DMC)
- WP.com / VIP (no drop-ins, no DMC)
- Minimal installs with only MDI
Coupling MDI to git primitives would produce two code paths — one for "git is available" and one for "git isn't" — which is exactly the class_exists() branching the ecosystem explicitly forbids inside feature flows. Users on managed hosts would get a subtly different MDI than self-hosters.
Keeping git in GitSync makes MDI portable, and makes GitSync swappable (the same markdown/ directory could be synced by any alternative implementation — Meilisearch-based sync, inotify-based local mirror, a Dropbox-style agent, etc.).
Action items
- Confirm current MDI roadmap does not list "git auto-commit" or similar. If it does, remove it.
- If any code inside MDI currently shells out to
git, extract it. (Spot-check says no, but double-check.) - Future "file watching" work (fs_events, inotify, polling) lands in MDI. Future "sync this dir with GitHub" work lands in DMC GitSync.
References
- DMC GitSync shipped: data-machine-code#38, PR #42, #43
- DMC GitSync is API-first (GitHub Contents + Git Data APIs) — works on WP.com Business, WP Engine, Pantheon, etc.
- Lenguaje dominante
- PHP
- Estrellas
- 7
- Forks
- 1
- Merge medio
- 1 h 35 min
- PR fusionados (30 d)
- 19
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Automattic/markdown-database-integration
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Automattic/markdown-database-integration#424 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 78/100
Automattic/markdown-database-integration#420 ·
Los mantenedores suelen responder en 1 día
-
Native scans use memory proportional to row count, and retired generations are never collectedAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Automattic/markdown-database-integration#415 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 78/100
Automattic/markdown-database-integration#414 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
Automattic/markdown-database-integration#401 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Automattic/markdown-database-integration
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 3 días
-
AdminNeo is failing to updateAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
PHP SDK drops the API path prefix when a custom base URL has no trailing slashPosiblemente ocupada @Winoren la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
langgenius/dify#44568 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día