From 5919bf3380373f9db536c4b816459168ff6da30f Mon Sep 17 00:00:00 2001 From: Alex Bourret Date: Fri, 14 Nov 2025 15:20:55 +0100 Subject: [PATCH 1/3] Set error behavior to ignore on preexisting flows for backward compatibility --- custom-recipes/api-connect/recipe.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom-recipes/api-connect/recipe.py b/custom-recipes/api-connect/recipe.py index 54fd9ad..61159c9 100644 --- a/custom-recipes/api-connect/recipe.py +++ b/custom-recipes/api-connect/recipe.py @@ -35,7 +35,10 @@ def get_partitioning_keys(id_list, dku_flow_variables): logger.info("config={}".format(logger.filter_secrets(config))) credential_parameters = config.get("credential", {}) -behaviour_when_error = config.get("behaviour_when_error", "add-error-column") +behaviour_when_error = config.get("behaviour_when_error", "ignore") +# if behaviour_when_error not in UI, this is an update from older version +# -> behave like the older version (=ignore) +logger.info("Behaviour in case of an error: {}".format(behaviour_when_error)) endpoint_parameters = get_endpoint_parameters(config) secure_credentials = get_secure_credentials(config) extraction_key = endpoint_parameters.get("extraction_key", "") From 3ef0dac63e95135145b39cad89e61b3a043b9a29 Mon Sep 17 00:00:00 2001 From: Alex Bourret Date: Fri, 14 Nov 2025 15:25:12 +0100 Subject: [PATCH 2/3] v1.2.7 --- plugin.json | 2 +- python-lib/dku_constants.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.json b/plugin.json index 9f69c33..afb4273 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "id": "api-connect", - "version": "1.2.6", + "version": "1.2.7", "meta": { "label": "API Connect", "description": "Retrieve data from any REST API", diff --git a/python-lib/dku_constants.py b/python-lib/dku_constants.py index 623c844..3736450 100644 --- a/python-lib/dku_constants.py +++ b/python-lib/dku_constants.py @@ -2,6 +2,6 @@ class DKUConstants(object): API_RESPONSE_KEY = "api_response" FORBIDDEN_KEYS = ["token", "password", "api_key_value", "secure_token"] FORM_DATA_BODY_FORMAT = "FORM_DATA" - PLUGIN_VERSION = "1.2.5" + PLUGIN_VERSION = "1.2.7" RAW_BODY_FORMAT = "RAW" REPONSE_ERROR_KEY = "dku_error" From e2ab6d15e90979b1a8351435d60d0ac133685e86 Mon Sep 17 00:00:00 2001 From: Alex Bourret Date: Fri, 14 Nov 2025 15:25:26 +0100 Subject: [PATCH 3/3] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f08acf9..a45e46a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [Version 1.2.7](https://github.com/dataiku/dss-plugin-api-connect/releases/tag/v1.2.7) - Bugfix release - 2025-10-14 + +- Better backward compatibility on existing flows using the recipe + ## [Version 1.2.6](https://github.com/dataiku/dss-plugin-api-connect/releases/tag/v1.2.6) - Feature - 2025-09-24 - Add "recipesCategory" parameter so that the API connect recipe is categorized as a Visual recipe in the right hand panel