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
This commit is contained in:
@@ -212,10 +212,10 @@ Supported options:
|
||||
Infra wrapper:
|
||||
|
||||
```bash
|
||||
./infra/scripts/register-notifications.sh
|
||||
./infra/scripts/register-notifications.sh --dry-run
|
||||
./infra/scripts/register-notifications.sh --source-key welcome_bonus
|
||||
./infra/scripts/register-notifications.sh --prune --reconcile-targets
|
||||
./infra/scripts/dev-migrate.sh sync-notifications
|
||||
./infra/scripts/dev-migrate.sh sync-notifications -- --dry-run
|
||||
./infra/scripts/dev-migrate.sh sync-notifications -- --source-key welcome_bonus
|
||||
./infra/scripts/dev-migrate.sh sync-notifications -- --prune --reconcile-targets
|
||||
```
|
||||
|
||||
## Failure behavior
|
||||
|
||||
Reference in New Issue
Block a user