Commit 000be31b authored by Luke Duncalfe's avatar Luke Duncalfe Committed by Peter Leitzen

Remove design_management_resize_images flag

https://gitlab.com/gitlab-org/gitlab/-/issues/207351/
parent 7b5ad03d
......@@ -25,8 +25,6 @@ module DesignManagement
end
def generate_image_versions(version)
return unless ::Feature.enabled?(:design_management_resize_images, version.project)
DesignManagement::GenerateImageVersionsService.new(version).execute
end
end
......
---
title: Generate smaller versions of Design Management design files
merge_request: 29215
author:
type: added
......@@ -6,10 +6,6 @@ describe DesignManagement::NewVersionWorker do
describe '#perform' do
let(:worker) { described_class.new }
before do
stub_feature_flags(design_management_resize_images: true)
end
context 'the id is wrong or out-of-date' do
let(:version_id) { -1 }
......@@ -53,18 +49,6 @@ describe DesignManagement::NewVersionWorker do
worker.perform(version.id)
end
context 'when the `design_management_resize_images` flag is disabled' do
before do
stub_feature_flags(design_management_resize_images: false)
end
it 'does not invoke GenerateImageVersionsService' do
expect(DesignManagement::GenerateImageVersionsService).not_to receive(:new)
worker.perform(version.id)
end
end
end
context 'the version includes multiple types of action' do
......
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