feat: editor write path

This commit is contained in:
Florian Sylvain committed 2026-11-02 03:24:30 +01:00
1 parent d9158025d4
commit a0b3c58c52
88 files changed
+5738 -263

No files matched your search

+9
View File
@@ -50,6 +50,15 @@ Package: `test` (black-box, extending `article_test.go`).
the valid cookie (assert `200`), then call `GET /v1/article/` with no cookie and assert the
decoded JSON array does not contain an element with id `1`.
17. Disabled language: add a fake language repo row for "es" with enabled false and seed offline
article 15 in lang "es". `PATCH /v1/article/15/publish` -> status `422`, body
`"language_disabled\n"`, article stays offline, no `UpdateIsOnline` call recorded on the fake.
18. Seed online article 16 in lang "es" (disabled). `PATCH /v1/article/16/unpublish` -> `200`,
`is_online == false`. Re-seed it online, `PATCH /v1/article/16/publish` -> `200`,
`is_online == true`.
19. Siblings: seed story 5 with article 10 (en, online) and article 12 (fr, offline).
`PATCH /v1/article/12/publish` -> `200`; article 10's `IsOnline` and `UpdatedAt` are unchanged.
## Manual verification (not exercised by the Go test)
- SPA-visible behaviour: confirm the back-office article editor exposes a publish/unpublish
control that calls the new endpoints and updates the visible online/offline state, against the