feat(git): Teilen von Git-Brews über Server-Snapshot (#9) (#25)
CI / App (npm ci + Build, ESLint, Stylelint, Jest) (push) Successful in 2m12s
CI / Storage (mongo) (push) Successful in 1m41s
CI / Storage (postgres) (push) Successful in 1m13s
Image / Image bauen und pushen (push) Successful in 5m18s

Co-authored-by: Dev (Paperclip) <dev-bot@noreply.git.morlana.online>
This commit was merged in pull request #25.
This commit is contained in:
dev-bot Bot authored and Gitea committed 2026-11-26 01:01:31 +00:00
1 parent adaa10a4dc
commit 3a77763641
8 files changed
+94 -4

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.