From 92cc8bb4151084a3febc54d54b6ff77967e757c4 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Fri, 20 Sep 2024 16:37:20 +0200 Subject: [PATCH 1/2] fix(rnf): change RNF api endpoint --- config/initializers/02_urls.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/02_urls.rb b/config/initializers/02_urls.rb index 44446a8ce..8dc3211e7 100644 --- a/config/initializers/02_urls.rb +++ b/config/initializers/02_urls.rb @@ -9,7 +9,7 @@ API_GEO_URL = ENV.fetch("API_GEO_URL", "https://geo.api.gouv.fr") API_PARTICULIER_URL = ENV.fetch("API_PARTICULIER_URL", "https://particulier.api.gouv.fr/api") API_TCHAP_URL = ENV.fetch("API_TCHAP_URL", "https://matrix.agent.tchap.gouv.fr/_matrix/identity/api/v1") API_COJO_URL = ENV.fetch("API_COJO_URL", nil) -API_RNF_URL = ENV.fetch("API_RNF_URL", "https://rnf.dso.numerique-interieur.com") +API_RNF_URL = ENV.fetch("API_RNF_URL", "https://rnf.apps.app1.numerique-interieur.com") API_RECHERCHE_ENTREPRISE_URL = ENV.fetch("API_RECHERCHE_ENTREPRISE_URL", "https://recherche-entreprises.api.gouv.fr") HELPSCOUT_API_URL = ENV.fetch("HELPSCOUT_API_URL", "https://api.helpscout.net/v2") SENDINBLUE_API_URL = ENV.fetch("SENDINBLUE_API_URL", "https://in-automate.sendinblue.com/api/v2") From e4ac781b54e5b6e92244c4d25121a4de9848e29e Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Fri, 20 Sep 2024 16:58:39 +0200 Subject: [PATCH 2/2] fix(rnf): remove deprecated status attribute --- app/models/champs/rnf_champ.rb | 2 +- app/schemas/rnf.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/champs/rnf_champ.rb b/app/models/champs/rnf_champ.rb index 9ebabe1b0..56850c55f 100644 --- a/app/models/champs/rnf_champ.rb +++ b/app/models/champs/rnf_champ.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Champs::RNFChamp < Champ - store_accessor :data, :title, :email, :phone, :createdAt, :updatedAt, :dissolvedAt, :address, :status + store_accessor :data, :title, :email, :phone, :createdAt, :updatedAt, :dissolvedAt, :address def rnf_id external_id&.gsub(/[[:space:]]/, '') diff --git a/app/schemas/rnf.json b/app/schemas/rnf.json index 866821090..b17244751 100644 --- a/app/schemas/rnf.json +++ b/app/schemas/rnf.json @@ -30,7 +30,6 @@ "regionName":{ "type": "string" }, "regionCode":{ "type": "string" } }, - "status": { "type": ["string", "null"] }, "persons": { "type": "array" } } }