Commit 1bf766cd authored by Dylan Griffith's avatar Dylan Griffith

Merge branch 'remove_loose_foreign_key_cleanup_ff' into 'master'

Remove the loose_foreign_key_cleanup FF

See merge request gitlab-org/gitlab!79831
parents 8b6589fe cc1805c4
...@@ -12,8 +12,6 @@ module LooseForeignKeys ...@@ -12,8 +12,6 @@ module LooseForeignKeys
idempotent! idempotent!
def perform def perform
return if Feature.disabled?(:loose_foreign_key_cleanup, default_enabled: :yaml)
in_lock(self.class.name.underscore, ttl: ModificationTracker::MAX_RUNTIME, retries: 0) do in_lock(self.class.name.underscore, ttl: ModificationTracker::MAX_RUNTIME, retries: 0) do
stats = {} stats = {}
......
---
name: loose_foreign_key_cleanup
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/69165
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/343545
milestone: '14.4'
type: development
group: group::sharding
default_enabled: true
...@@ -141,16 +141,6 @@ RSpec.describe LooseForeignKeys::CleanupWorker do ...@@ -141,16 +141,6 @@ RSpec.describe LooseForeignKeys::CleanupWorker do
end end
end end
context 'when the loose_foreign_key_cleanup feature flag is off' do
before do
stub_feature_flags(loose_foreign_key_cleanup: false)
end
it 'does nothing' do
expect { described_class.new.perform }.not_to change { LooseForeignKeys::DeletedRecord.status_processed.count }
end
end
describe 'multi-database support' do describe 'multi-database support' do
where(:current_minute, :configured_base_models, :expected_connection) do where(:current_minute, :configured_base_models, :expected_connection) do
2 | { main: ApplicationRecord, ci: Ci::ApplicationRecord } | ApplicationRecord.connection 2 | { main: ApplicationRecord, ci: Ci::ApplicationRecord } | ApplicationRecord.connection
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment