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 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", "") 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"