chore(flipper): delete disable_label_optional_champ_2023_06_29 feature flag

This commit is contained in:
Colin Darie 2023-10-03 14:32:48 +02:00
parent 8c66f4d6df
commit 9673485904
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
2 changed files with 13 additions and 2 deletions

View file

@ -2,8 +2,6 @@
- if @champ.public? && !@champ.checkbox?
- if @champ.mandatory?
= render EditableChamp::AsteriskMandatoryComponent.new
- elsif @champ.dossier.procedure.feature_enabled?(:disable_label_optional_champ_2023_06_29)
-# noop here, allow admin to disable the optional_champ
- else
%span.sr-only= t('.optional_champ')

View file

@ -0,0 +1,13 @@
namespace :after_party do
desc 'Deployment task: delete_optional_champ_feature_flag'
task delete_optional_champ_feature_flag: :environment do
puts "Running deploy task 'delete_optional_champ_feature_flag'"
Flipper::Adapters::ActiveRecord::Gate.where(feature_key: 'disable_label_optional_champ_2023_06_29').destroy_all
# Update task as completed. If you remove the line below, the task will
# run with every deploy (or every time you call after_party:run).
AfterParty::TaskRecord
.create version: AfterParty::TaskRecorder.new(__FILE__).timestamp
end
end