From 410ebfb863daa4d94ea5d141be656c55726b395a Mon Sep 17 00:00:00 2001 From: Kat Date: Fri, 20 Sep 2024 15:11:10 +0100 Subject: [PATCH] Update provider_type and add new fields --- app/services/exports/organisation_export_constants.rb | 4 +++- app/services/exports/organisation_export_service.rb | 3 +++ spec/fixtures/exports/organisation.xml | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/services/exports/organisation_export_constants.rb b/app/services/exports/organisation_export_constants.rb index a7ab2182a..3a1c5fb48 100644 --- a/app/services/exports/organisation_export_constants.rb +++ b/app/services/exports/organisation_export_constants.rb @@ -20,6 +20,8 @@ module Exports::OrganisationExportConstants "deleted_at", "dsa_signed", "dsa_signed_at", - "dpo_email" + "dpo_email", + "profit_status", + "group" ] end diff --git a/app/services/exports/organisation_export_service.rb b/app/services/exports/organisation_export_service.rb index 637f51239..a0cc70d6b 100644 --- a/app/services/exports/organisation_export_service.rb +++ b/app/services/exports/organisation_export_service.rb @@ -62,6 +62,9 @@ module Exports attribute_hash["dsa_signed"] = organisation.data_protection_confirmed? attribute_hash["dsa_signed_at"] = organisation.data_protection_confirmation&.signed_at attribute_hash["dpo_email"] = organisation.data_protection_confirmation&.data_protection_officer_email + attribute_hash["provider_type"] = organisation.provider_type_before_type_cast + attribute_hash["profit_status"] = nil # will need update when we add the field to the org + attribute_hash["group"] = nil # will need update when we add the field to the org attribute_hash end diff --git a/spec/fixtures/exports/organisation.xml b/spec/fixtures/exports/organisation.xml index ed4e02039..8d87da16c 100644 --- a/spec/fixtures/exports/organisation.xml +++ b/spec/fixtures/exports/organisation.xml @@ -4,7 +4,7 @@ {id} MHCLG - LA + 1 2 Marsham Street London SW1P 4DF @@ -20,5 +20,7 @@ true {dsa_signed_at} {dpo_email} + +