Commit 560c71b6 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'remove_save_description_versions_flag' into 'master'

Remove save_description_versions feature flag

See merge request gitlab-org/gitlab!28935
parents d0321e4a a1e9070d
......@@ -16,7 +16,6 @@ module VersionedDescription
def save_description_version
self.saved_description_version = nil
return unless Feature.enabled?(:save_description_versions, issuing_parent, default_enabled: true)
return unless saved_change_to_description?
unless description_versions.exists?
......
......@@ -9,11 +9,6 @@ RSpec.shared_examples 'versioned description' do
let(:factory_name) { described_class.name.underscore.to_sym }
let!(:model) { create(factory_name, description: 'Original description') }
context 'when feature is enabled' do
before do
stub_feature_flags(save_description_versions: true)
end
context 'when description was changed' do
before do
model.update!(description: 'New description')
......@@ -49,17 +44,4 @@ RSpec.shared_examples 'versioned description' do
end
end
end
context 'when feature is disabled' do
before do
stub_feature_flags(save_description_versions: false)
end
it 'does not save any description version' do
expect { model.update!(description: 'New description') }.not_to change { model.description_versions.count }
expect(model.saved_description_version).to be_nil
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