Defer NATS event publishing until after transaction commits to prevent RAG race condition

FixKBService
Shipped
30 marzo 2026 alle ore 22:16 UTC
Author
Kamo
Commit
424279b

Events were firing inside @Transactional methods, causing RAGService to read stale data from CockroachDB before the commit. Also auto-defaults aiVisibleToMembers when AI is enabled with no visibility flags set, and guards event publishing to skip DRAFT articles.

All changes

Come quello che vedi la spedizione?

Ognuno di questi aggiornamenti atterra automaticamente nello spazio di lavoro. Inizia gratis e guardalo crescere settimana dopo settimana.

Inizia gratis per sempreVisualizza il prezzo