suppression du message d'alerte suite aux problèmes d'upload

This commit is contained in:
clemkeirua 2020-07-27 10:32:03 +02:00
parent 98fbf69f58
commit de1df85462
7 changed files with 0 additions and 1108 deletions

View file

@ -72,19 +72,6 @@ module DossierHelper
end
end
# On the 22/01/2020, a technical error on the demarches-simplifees.fr
# instance caused some files attached to some dossiers to be deleted.
#
# This method returns true if the dossier contained attachments
# whose files were deleted during this incident.
def has_lost_attachments(dossier)
if dinum_instance?
dossiers_with_lost_attachments_ids.include?(dossier.id)
else
false
end
end
def status_badge(state)
status_text = dossier_display_state(state, lower: true)
status_class = state.tr('_', '-')
@ -114,16 +101,4 @@ module DossierHelper
end
end
end
private
def dinum_instance?
# rubocop:disable DS/ApplicationName
ENV['APP_HOST']&.ends_with?('demarches-simplifiees.fr')
# rubocop:enable DS/ApplicationName
end
def dossiers_with_lost_attachments_ids
@@ids ||= YAML.load_file(Rails.root.join('config', 'dossiers-with-lost-attachments.yml'))
end
end