From 0bb1eb8bc934ce40b6d26f85b7c588dd274a20c1 Mon Sep 17 00:00:00 2001 From: oscarbakker Date: Wed, 14 Feb 2024 14:42:09 +0100 Subject: [PATCH] Updates --- src/server/services/buurt/datasets.ts | 2 +- src/universal/config/app.ts | 2 +- src/universal/config/myarea-datasets.ts | 37 +++++++++++-------------- 3 files changed, 18 insertions(+), 23 deletions(-) diff --git a/src/server/services/buurt/datasets.ts b/src/server/services/buurt/datasets.ts index 436e848b6f..d1e7222e76 100644 --- a/src/server/services/buurt/datasets.ts +++ b/src/server/services/buurt/datasets.ts @@ -422,7 +422,7 @@ export const datasetEndpoints: Record< request: fetchLaadpalen, cancelTimeout: 30000, }, - disabled: IS_PRODUCTION || !FeatureToggle.laadpalenActive, + disabled: !FeatureToggle.laadpalenActive, }, }; diff --git a/src/universal/config/app.ts b/src/universal/config/app.ts index bacd61a489..d3c1727666 100644 --- a/src/universal/config/app.ts +++ b/src/universal/config/app.ts @@ -43,7 +43,7 @@ export const FeatureToggle = { stadspasRequestsActive: false, dbDisabled: false, passQueryParamsToStreamUrl: !IS_AP, - laadpalenActive: false, + laadpalenActive: !IS_PRODUCTION, }; // For testing and development purposes we can pass a set of arbitrary parameters to the BFF. diff --git a/src/universal/config/myarea-datasets.ts b/src/universal/config/myarea-datasets.ts index 42e715fd86..e0ca2ad520 100644 --- a/src/universal/config/myarea-datasets.ts +++ b/src/universal/config/myarea-datasets.ts @@ -62,30 +62,25 @@ const month = new Date().getMonth(); if (month !== 11 && month !== 0) { excludeFractieOmschrijving.push('Kerstboom'); } -FeatureToggle.laadpalenActive; export const DATASETS: DatasetCategories = { - ...(FeatureToggle.laadpalenActive - ? { - laadpalen: { - title: 'Laadpalen', - datasets: { - laadpalen: { - title: 'Laadpalen', - filters: { - connector_type: { - title: 'Connector type', - sort: 'asc', - }, - charging_cap_max: { - title: 'Wattage', - sort: 'asc', - }, - }, - }, + laadpalen: { + title: 'Laadpalen', + datasets: { + laadpalen: { + title: 'Laadpalen', + filters: { + connector_type: { + title: 'Connector type', + sort: 'asc', + }, + charging_cap_max: { + title: 'Wattage', + sort: 'asc', }, }, - } - : {}), + }, + }, + }, afvalcontainers: { title: 'Afvalcontainers', datasets: {