debian-mirror-gitlab/lib/gitlab/background_migration/sanitize_confidential_todos.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
920 B
Ruby
Raw Normal View History

2023-01-13 00:05:48 +05:30
# 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
2023-03-17 16:20:25 +05:30
feature_category :database
2023-01-13 00:05:48 +05:30
def perform
2023-04-23 21:23:45 +05:30
# 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
2023-01-13 00:05:48 +05:30
end
end
end
end