From eb9aad27c34ce0b49052193fb10e3c27a804efbd Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 29 May 2024 13:07:03 +0200 Subject: [PATCH] fix(dossier): handle missing siret information when dossier passe en instruction --- app/models/concerns/dossier_state_concern.rb | 1 - app/services/serializer_service.rb | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/concerns/dossier_state_concern.rb b/app/models/concerns/dossier_state_concern.rb index e90902066..fae8b5f91 100644 --- a/app/models/concerns/dossier_state_concern.rb +++ b/app/models/concerns/dossier_state_concern.rb @@ -62,7 +62,6 @@ module DossierStateConcern MailTemplatePresenterService.create_commentaire_for_state(self, Dossier.states.fetch(:en_instruction)) if procedure.sva_svr_enabled? - # TODO: handle serialization errors when SIRET demandeur was not completed log_automatic_dossier_operation(:passer_en_instruction, self) else log_automatic_dossier_operation(:passer_en_instruction) diff --git a/app/services/serializer_service.rb b/app/services/serializer_service.rb index 6f97841c1..04ee431ea 100644 --- a/app/services/serializer_service.rb +++ b/app/services/serializer_service.rb @@ -164,6 +164,7 @@ class SerializerService demandeur { ...PersonnePhysiqueFragment ...PersonneMoraleFragment + ...PersonneMoraleIncompleteFragment } motivation motivationAttachment { @@ -309,6 +310,10 @@ class SerializerService } } + fragment PersonneMoraleIncompleteFragment on PersonneMoraleIncomplete { + siret + } + fragment AddressFragment on Address { label type