Files
eryao/.trellis/tasks/archive/2026-04/04-16-fix-notification-targets-cleanup/task.json
T
qzl c79c773d67 feat(notification): add target_mode enum constraint and merge register-notifications script
- Add NotificationTargetMode enum (new_users/exist_users/all_users/user_ids)
- Create Alembic migrations: drop duplicate indexes, add target_mode column
- Merge register-notifications.sh into dev-migrate.sh sync-notifications subcommand
- Shorten notification config path: static/notification/notifications -> static/notifications
- Update registration flow to dispatch notifications by target_mode
- Add is_first_registration to RegisterBonusResult for first-time user detection
- Remove dead code: link_published_notifications_to_user
- Update welcome_points.yaml to target new_users only
- Add 44 unit tests + 1 integration test, all passing
2026-04-16 17:50:57 +08:00

44 lines
1.2 KiB
JSON

{
"id": "fix-notification-targets-cleanup",
"name": "fix-notification-targets-cleanup",
"title": "修复通知 targets 约束、合并注册脚本、路径缩短及清理重复索引",
"description": "1) 分析并修复 llm_factory 和 llms 表的重复索引; 2) 将 register-notifications.sh 功能合并到 dev-migrate.sh 作为子命令并合入 bootstrap; 3) 缩短 notification 路径; 4) 为 notification targets 添加 pydantic schema 约束",
"status": "completed",
"dev_type": null,
"scope": null,
"priority": "P2",
"creator": "opencode",
"assignee": "opencode",
"createdAt": "2026-04-16",
"completedAt": "2026-04-16",
"branch": "worktree/fix-notification-targets-cleanup",
"base_branch": "worktree/fix-notification-targets-cleanup",
"worktree_path": null,
"current_phase": 0,
"next_action": [
{
"phase": 1,
"action": "implement"
},
{
"phase": 2,
"action": "check"
},
{
"phase": 3,
"action": "finish"
},
{
"phase": 4,
"action": "create-pr"
}
],
"commit": null,
"pr_url": null,
"subtasks": [],
"children": [],
"parent": null,
"relatedFiles": [],
"notes": "",
"meta": {}
}