blob: 8215e92cbebd8cbf76575d581bbb154409e84d1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# frozen_string_literal: true
module Gitlab
module BackgroundMigration
# Iterates through confidential notes and removes any its todos if user can
# not read the note
#
# Warning: This migration is not properly isolated. The reason for this is
# that we need to check permission for notes and it would be difficult
# to extract all related logic.
# Details in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/87908#note_952459215
class SanitizeConfidentialTodos < BatchedMigrationJob
operation_name :delete_invalid_todos
feature_category :database
def perform
# no-op: this BG migration is left here only for compatibility reasons,
# but it's not scheduled from any migration anymore.
# It was a temporary migration which used not-isolated code.
# https://gitlab.com/gitlab-org/gitlab/-/issues/382557
end
end
end
end
|