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 |
|
zerosaturation
|
bdf3abc2bc
|
feat(task): migration + backfill daily_task trigger_event
- task_definitions: add trigger_event varchar(64) + target_count int default 1
- user_daily_task_progress: add progress int default 0
- backfill id=3 (daily_mint) + id=4 (daily_place_asset) trigger_event
- sequence sync per CLAUDE.md (task_definitions_id_seq + user_daily_task_progress_id_seq)
- sync docker/init-db.sql CREATE TABLE + COPY data (id=1,2,5 leave NULL; id=3,4 fill)
spec: docs/superpowers/specs/2026-07-21-daily-task-config-driven-design.md
plan: docs/superpowers/plans/2026-07-21-daily-task-config-driven-impl.md
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-07-27 15:38:46 +08:00 |
|
zerosaturation
|
7734d33697
|
feat:修改ws的配置
|
2026-06-15 22:33:37 +08:00 |
|
zerosaturation
|
19890d5908
|
feat:修改数据库配置密码,修改星榜样式
|
2026-06-14 22:19:32 +08:00 |
|
zerosaturation
|
4d42d9a6d0
|
feat: 新增历史点赞查询和修改点赞规则
|
2026-05-22 18:06:33 +08:00 |
|
zerosaturation
|
3f8a8ba470
|
image:图片压缩,sql迁移表
|
2026-05-17 19:55:22 +08:00 |
|
zerosaturation
|
f6e1caad8b
|
feat:新增docker密钥登录部署
|
2026-04-24 18:04:55 +08:00 |
|
zerosaturation
|
a5e3008819
|
feat: 增加health健康检查和替换前端跳转路由api
|
2026-04-14 00:10:24 +08:00 |
|
zerosaturation
|
6f51cead6c
|
feat: 部署diocker到服务器上
|
2026-04-08 20:48:38 +08:00 |
|
zerosaturation
|
0e6d0c3584
|
初始化项目
|
2026-04-07 22:28:50 +08:00 |
|