Commit f27e97de authored by Imre Farkas's avatar Imre Farkas

Remove periodic_project_authorization_recalculation feature flag

It is enabled by default since 13.2.
parent 6e8d2f10
...@@ -12,9 +12,7 @@ module AuthorizedProjectUpdate ...@@ -12,9 +12,7 @@ module AuthorizedProjectUpdate
idempotent! idempotent!
def perform def perform
if ::Feature.enabled?(:periodic_project_authorization_recalculation, default_enabled: true) AuthorizedProjectUpdate::PeriodicRecalculateService.new.execute
AuthorizedProjectUpdate::PeriodicRecalculateService.new.execute
end
end end
end end
end end
...@@ -12,9 +12,7 @@ module AuthorizedProjectUpdate ...@@ -12,9 +12,7 @@ module AuthorizedProjectUpdate
idempotent! idempotent!
def perform(start_user_id, end_user_id) def perform(start_user_id, end_user_id)
if ::Feature.enabled?(:periodic_project_authorization_recalculation, default_enabled: true) AuthorizedProjectUpdate::RecalculateForUserRangeService.new(start_user_id, end_user_id).execute
AuthorizedProjectUpdate::RecalculateForUserRangeService.new(start_user_id, end_user_id).execute
end
end end
end end
end end
---
name: periodic_project_authorization_recalculation
introduced_by_url:
rollout_issue_url:
group:
type: development
default_enabled: true
...@@ -11,17 +11,5 @@ RSpec.describe AuthorizedProjectUpdate::PeriodicRecalculateWorker do ...@@ -11,17 +11,5 @@ RSpec.describe AuthorizedProjectUpdate::PeriodicRecalculateWorker do
subject.perform subject.perform
end end
context 'feature flag :periodic_project_authorization_recalculation is disabled' do
before do
stub_feature_flags(periodic_project_authorization_recalculation: false)
end
it 'does not call AuthorizedProjectUpdate::PeriodicRecalculateService' do
expect(AuthorizedProjectUpdate::PeriodicRecalculateService).not_to receive(:new)
subject.perform
end
end
end end
end end
...@@ -14,17 +14,5 @@ RSpec.describe AuthorizedProjectUpdate::UserRefreshOverUserRangeWorker do ...@@ -14,17 +14,5 @@ RSpec.describe AuthorizedProjectUpdate::UserRefreshOverUserRangeWorker do
subject.perform(start_user_id, end_user_id) subject.perform(start_user_id, end_user_id)
end end
context 'feature flag :periodic_project_authorization_recalculation is disabled' do
before do
stub_feature_flags(periodic_project_authorization_recalculation: false)
end
it 'does not call AuthorizedProjectUpdate::RecalculateForUserRangeService' do
expect(AuthorizedProjectUpdate::RecalculateForUserRangeService).not_to receive(:new)
subject.perform(start_user_id, end_user_id)
end
end
end end
end end
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