[Batched Migration] Fix corrupted scanner_ids of vulnerability_reads
There was a bug in production where the `scanner_id` of a vulnerability finding would be updated, yet the `scanner_id` of the related `vulnerability_read` would remain unchanged. This was an issue as the `vulnerability_read` should always be in sync with the `vulnerability_finding`. The bug has already been [fixed in production][0], so now we need a migration to fix all of the `vulnerability_reads` that were affected by the bug. [0]:https://gitlab.com/gitlab-org/gitlab/-/merge_requests/148016 --- MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/148807 Related to: https://gitlab.com/gitlab-org/gitlab/-/issues/454290 resolves: https://gitlab.com/gitlab-org/gitlab/-/issues/454827 Changelog: fixed EE: true
显示
- db/docs/batched_background_migrations/fix_corrupted_scanner_ids_of_vulnerability_reads.yml 19 个添加, 0 个删除...ions/fix_corrupted_scanner_ids_of_vulnerability_reads.yml
- db/post_migrate/20240409023046_queue_fix_corrupted_scanner_ids_of_vulnerability_reads.rb 28 个添加, 0 个删除...queue_fix_corrupted_scanner_ids_of_vulnerability_reads.rb
- db/schema_migrations/20240409023046 1 个添加, 0 个删除db/schema_migrations/20240409023046
- ee/lib/ee/gitlab/background_migration/fix_corrupted_scanner_ids_of_vulnerability_reads.rb 35 个添加, 0 个删除...ation/fix_corrupted_scanner_ids_of_vulnerability_reads.rb
- ee/spec/lib/ee/gitlab/background_migration/fix_corrupted_scanner_ids_of_vulnerability_reads_spec.rb 171 个添加, 0 个删除.../fix_corrupted_scanner_ids_of_vulnerability_reads_spec.rb
- lib/gitlab/background_migration/fix_corrupted_scanner_ids_of_vulnerability_reads.rb 23 个添加, 0 个删除...ation/fix_corrupted_scanner_ids_of_vulnerability_reads.rb
- spec/migrations/20240409023046_queue_fix_corrupted_scanner_ids_of_vulnerability_reads_spec.rb 26 个添加, 0 个删除..._fix_corrupted_scanner_ids_of_vulnerability_reads_spec.rb
加载中
想要评论请 注册 或 登录