Backfill PATs seven_days_notification_sent_at column
Includes a batched background migration to backfill the column using the `expired_at` dates. Also creates a temporary index for the BBM. Changes `PersonalAccessTokens::ExpiringWorker` to dual-write to both `expire_notification_delivered` boolean column and the replacement `seven_days_notification_sent_at` column. Changelog: changed
显示
- app/workers/personal_access_tokens/expiring_worker.rb 13 个添加, 2 个删除app/workers/personal_access_tokens/expiring_worker.rb
- db/docs/batched_background_migrations/backfill_personal_access_token_seven_days_notification_sent.yml 10 个添加, 0 个删除...ll_personal_access_token_seven_days_notification_sent.yml
- db/post_migrate/20240909222539_create_temp_index_for_backfilling_pat_notifications.rb 22 个添加, 0 个删除...39_create_temp_index_for_backfilling_pat_notifications.rb
- db/post_migrate/20240909222743_queue_backfill_personal_access_token_seven_days_notification_sent.rb 26 个添加, 0 个删除...ill_personal_access_token_seven_days_notification_sent.rb
- db/schema_migrations/20240909222539 1 个添加, 0 个删除db/schema_migrations/20240909222539
- db/schema_migrations/20240909222743 1 个添加, 0 个删除db/schema_migrations/20240909222743
- db/structure.sql 2 个添加, 0 个删除db/structure.sql
- lib/gitlab/background_migration/backfill_personal_access_token_seven_days_notification_sent.rb 24 个添加, 0 个删除...ill_personal_access_token_seven_days_notification_sent.rb
- spec/lib/gitlab/background_migration/backfill_personal_access_token_seven_days_notification_sent_spec.rb 62 个添加, 0 个删除...ersonal_access_token_seven_days_notification_sent_spec.rb
- spec/migrations/20240909222743_queue_backfill_personal_access_token_seven_days_notification_sent_spec.rb 26 个添加, 0 个删除...ersonal_access_token_seven_days_notification_sent_spec.rb
- spec/workers/personal_access_tokens/expiring_worker_spec.rb 4 个添加, 0 个删除spec/workers/personal_access_tokens/expiring_worker_spec.rb
加载中
想要评论请 注册 或 登录