feat(git): Teilen per Snapshot – snapshotAt im Git-Status, Anzeige im Editor, Tests für alle Leser-Routen (ADR 0003 §6)
CI / Storage (mongo) (pull_request) Failing after 1m13s
CI / Storage (postgres) (pull_request) Successful in 1m12s
CI / App (npm ci + Build, ESLint, Stylelint, Jest) (pull_request) Successful in 2m9s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dev-bot BotandClaude Sonnet 5.5 committed 2026-11-25 21:32:14 +00:00
1 parent 448c67912f
commit 3e05096fd6
5 files changed
+81 -3

No files matched your search

+8
View File
@@ -117,3 +117,11 @@ HB_TEST_POSTGRES_URL=… HB_TEST_MONGODB_URI=… npx jest server/storage tests/f
`tests/fork/git-http-test-server.js` startet `git http-backend` hinter einem Node-Server mit Basic-Auth
(Remote mit `uploadpack.allowFilter` und `http.receivepack`). Gegen eine echte Gitea-Instanz (Wegwerf-Container): `scripts/git-e2e-gitea.sh`; gegen ein beliebiges
Remote (GitHub, GitLab, …): `GIT_E2E_URL=… GIT_E2E_USER=… GIT_E2E_TOKEN=… node scripts/git-e2e.mjs`.
## Teilen (Snapshot, ADR 0003 §6)
Share-, Fetch-, CSS-, Metadaten-, Quelltext- und Download-Routen liefern den DB-Snapshot und greifen nie auf Git
zu. Leser brauchen weder Konto noch Repo-Zugriff und sehen weder Token noch Repo-URL oder Pfad (auch bei privaten
Repos). Der Snapshot wird bei jedem erfolgreichen Speichern, Pull und Abgleich beim Öffnen aktualisiert. Sein
Zeitpunkt (`updatedAt`) steht im Share-Link-Metadatenmenü („vor … “) und im Git-Menü des Editors als „Teilen-Stand“
(`snapshotAt` in `GET /api/git/brews/:editId`). Commits außerhalb der App erscheinen erst nach Öffnen im Editor oder Pull.