b913a2bf90
Refs gitea:Adriano/AI-OS#310 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
979 B
979 B
Task 4 report: repository posts — autore e liste per autore
- Status: DONE
- Commit:
6d1e260— "feat(posts): author_id nel repository + listByAuthor + helper utenti" - Test:
npm test -- tests/posts.test.ts→ 10 passed (10) — inclusi i 3 nuovi test indescribe('autore articoli') - Build:
npm run build→ Complete, nessun errore - TDD: test aggiunti prima → fallimento confermato (
listByAuthor is not a function,getUsernameById is not a function) → implementazione → successo - Modifiche:
src/lib/posts.ts:Post.author_id: number | null,PostInput.author_id?: number | null,createPostscriveauthor_id(default null), nuovalistByAuthor(db, authorId).updatePostnon toccato (non modifica author_id, come da spec).src/lib/auth.ts: nuovegetUsernameById(db, id)elistUsers(db).tests/posts.test.ts: import aggiornati + nuovo bloccodescribe('autore articoli')con 3 test verbatim da brief.
- Concern: nessuno.