Commit 65f019e5 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch '207351-remove-design_management_resize_images-feature-flag' into 'master'

Remove design_management_resize_images flag

See merge request gitlab-org/gitlab!29215
parents 55e1d68d 000be31b
...@@ -25,8 +25,6 @@ module DesignManagement ...@@ -25,8 +25,6 @@ module DesignManagement
end end
def generate_image_versions(version) def generate_image_versions(version)
return unless ::Feature.enabled?(:design_management_resize_images, version.project)
DesignManagement::GenerateImageVersionsService.new(version).execute DesignManagement::GenerateImageVersionsService.new(version).execute
end end
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 ...@@ -6,10 +6,6 @@ describe DesignManagement::NewVersionWorker do
describe '#perform' do describe '#perform' do
let(:worker) { described_class.new } 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 context 'the id is wrong or out-of-date' do
let(:version_id) { -1 } let(:version_id) { -1 }
...@@ -53,18 +49,6 @@ describe DesignManagement::NewVersionWorker do ...@@ -53,18 +49,6 @@ describe DesignManagement::NewVersionWorker do
worker.perform(version.id) worker.perform(version.id)
end 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 end
context 'the version includes multiple types of action' do 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