From 66daee30790e5985610e58c17e855c91d3ec3978 Mon Sep 17 00:00:00 2001 From: remyvdwereld <86827854+remyvdwereld@users.noreply.github.com> Date: Fri, 22 Mar 2024 10:09:31 +0100 Subject: [PATCH] Updated /residents and removed open-zaak healthcheck --- app/apps/addresses/views.py | 5 ++--- app/apps/health/apps.py | 11 ++++------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/app/apps/addresses/views.py b/app/apps/addresses/views.py index daadc8d0c..072fb287b 100644 --- a/app/apps/addresses/views.py +++ b/app/apps/addresses/views.py @@ -71,8 +71,7 @@ def residents_by_bag_id(self, request, bag_id): # If no nummeraanduiding_id, get it! if not address.nummeraanduiding_id: try: - address.search_and_set_bag_address_data() - address.search_and_set_bag_nummeraanduiding_id() + address.update_bag_data() except Exception: return Response( {"error": "BAG data could not be obtained"}, @@ -91,7 +90,7 @@ def residents_by_bag_id(self, request, bag_id): except Exception: return Response( {"error": "BRP data could not be obtained"}, - status=status.HTTP_500_INTERNAL_SERVER_ERROR, + status=status.HTTP_403_FORBIDDEN, ) return Response( diff --git a/app/apps/health/apps.py b/app/apps/health/apps.py index e638213c6..e84b8d94f 100644 --- a/app/apps/health/apps.py +++ b/app/apps/health/apps.py @@ -6,7 +6,7 @@ class HealthConfig(AppConfig): name = "apps.health" def ready(self): - from .health_checks import ( + from .health_checks import ( # OpenZaakZaken,; OpenZaakZakenAlfresco,; OpenZaakZakenCatalogus, BAGAtlasServiceCheck, BAGNummeraanduidingenServiceCheck, BAGVerblijfsobjectServiceCheck, @@ -15,9 +15,6 @@ def ready(self): CeleryExecuteTask, DecosJoinCheck, KeycloakCheck, - OpenZaakZaken, - OpenZaakZakenAlfresco, - OpenZaakZakenCatalogus, PowerBrowser, Toeristischeverhuur, ) @@ -30,9 +27,9 @@ def ready(self): plugin_dir.register(CeleryExecuteTask) plugin_dir.register(DecosJoinCheck) plugin_dir.register(KeycloakCheck) - plugin_dir.register(OpenZaakZaken) - plugin_dir.register(OpenZaakZakenAlfresco) - plugin_dir.register(OpenZaakZakenCatalogus) + # plugin_dir.register(OpenZaakZaken) + # plugin_dir.register(OpenZaakZakenAlfresco) + # plugin_dir.register(OpenZaakZakenCatalogus) plugin_dir.register(PowerBrowser) plugin_dir.register(Toeristischeverhuur) # plugin_dir.register(VakantieVerhuurRegistratieCheck)