Go to file
zerosaturation 89d5d12450 fix(task): backfill id=1/2 trigger_event + cleanup misleading NULL comments
daily_browse_asset (id=2) / daily_login (id=1) 之前永远不触发,根因:
2026_07_21_004 迁移只 backfill 了 id=3/4 的 trigger_event=task_key,
id=1/2 留 NULL。但 ProcessTaskEvent 引擎按 trigger_event = ? 严格匹配
(spec §4 单一隔离单元),NULL 不会命中,前端 reportEvent 后引擎跑空
循环、daily-tasks 任务永远 pending。

修复:
- 新增 2026_07_27_005 迁移:回填 id=1/2 的 trigger_event=task_key(幂等)
- 修订原 004 迁移的错误注释('trigger_event 留 NULL'误导后人)
- model/task_models.go:删除 'NULL 仍走 def.TaskKey 兜底' 不实承诺
- impl plan §37/39:修订错描述('暂不依赖 trigger_event 列')
- docker/init-db.sql:124668/124671:重建 dev DB 时也带 trigger_event
- daily_task_repo_test.go:补 2 个回归测试
  - NullTriggerEvent_NotMatched:trigger_event=NULL 时查不到
  - TriggerEventEqualsTaskKey_Matches:trigger_event=task_key 时能命中

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-27 16:36:40 +08:00
.agents/skills
.tmp feat:增加二维码验证真伪的功能 2026-07-13 11:22:56 +08:00
backend fix(task): backfill id=1/2 trigger_event + cleanup misleading NULL comments 2026-07-27 16:36:40 +08:00
docker fix(task): backfill id=1/2 trigger_event + cleanup misleading NULL comments 2026-07-27 16:36:40 +08:00
docs fix(task): backfill id=1/2 trigger_event + cleanup misleading NULL comments 2026-07-27 16:36:40 +08:00
frontend feat(frontend): daily-task reportEvent 接入 + exhibition 错位实现迁移 2026-07-27 15:47:01 +08:00
k8s fix(k8s): livenessProbe port to healthPort + values.yaml healthPort +1000 (follow-up P2) 2026-07-24 15:14:38 +08:00
mock
scripts
.gitignore fix(0a): replace real keys with placeholders in .env.example + harden .gitignore 2026-07-24 15:23:26 +08:00
AGENTS.md
CLAUDE.md docs:新增后端bug修改文档 2026-07-21 21:14:22 +08:00
README.md

TopFans