Merge pull request #9553 from colinux/remove-optional-mention

ETQ usager, plus de mention "facultatif" sur les champs optionnels
This commit is contained in:
Paul Chavard 2023-10-03 13:48:38 +00:00 committed by GitHub
commit d14ba89ed2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 3 deletions

View file

@ -2,10 +2,8 @@
- 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
= "#{t('.optional_champ')}"
%span.sr-only= t('.optional_champ')
- if @champ.forked_with_changes?
%span.updated-at.highlighted

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