Three bugs preventing changelog translations from being saved

FixSecurityService
ส่งแล้ว
17 เมษายน 2569 เวลา 05:15 UTC
ผู้เขียน
Kamo
ตั้งค่า
2483c57

1. **************** was discarding events because handleWebhook() had no @Transactional — save + publishEvent() ran outside any transaction. Add @Transactional to handleWebhook() to fix. 2. Both onCommitLogSaved() and retryIncompleteTranslations() called translateCommitLog() via 'this', bypassing the Spring proxy and defeating @Async and @Transactional. Use a @Lazy @Autowired self-reference so all calls go through the proxy. 3. retryIncompleteTranslations() fetched all 4,600 commit log IDs then passed them as a huge IN clause. Now uses the updated query with Pageable and caps back-fill at 50 commit logs per 5-minute run (~1,050 HTTP calls max).

เปลี่ยนแปลงทั้งหมด

เหมือนที่คุณเห็นการขนส่ง?

ทุก คน ที่ ได้ รับ การ ปรับ ปรุง เหล่า นี้ จะ ลง ไป ใน ที่ ทํา งาน ของ คุณ โดย อัตโนมัติ. เริ่มให้อิสระและดูมันเติบโตสัปดาห์แล้วสัปดาห์เล่า.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์