Skip to content

Commit

Permalink
chore(flipper): delete disable_label_optional_champ_2023_06_29 featur…
Browse files Browse the repository at this point in the history
…e flag
  • Loading branch information
colinux committed Oct 3, 2023
1 parent 8c66f4d commit 9673485
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9673485

Please sign in to comment.