From 44f83bff70b34a11885339ec3d01332d5e25a7a1 Mon Sep 17 00:00:00 2001 From: Alexandre Girard Date: Mon, 8 Aug 2022 18:35:57 -0700 Subject: [PATCH 1/5] Fix template --- .../source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airbyte-integrations/connector-templates/source-configuration-based/source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs b/airbyte-integrations/connector-templates/source-configuration-based/source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs index 3ca79159242e4..6f8433d720263 100644 --- a/airbyte-integrations/connector-templates/source-configuration-based/source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs +++ b/airbyte-integrations/connector-templates/source-configuration-based/source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs @@ -11,7 +11,7 @@ requester: name: "\{{ options['name'] }}" http_method: "GET" authenticator: - type: ApiKeyAuthenticator + type: BearerAuthenticator api_token: "\{{ config['api_key'] }}" retriever: type: SimpleRetriever @@ -39,4 +39,4 @@ streams: - "*ref(customers_stream)" check: type: CheckStream - stream_names: ["customers_stream"] + stream_names: ["customers"] From 89226c6f4d47c5a826e7d45c10389681f0ddf855 Mon Sep 17 00:00:00 2001 From: Alexandre Girard Date: Mon, 8 Aug 2022 18:39:43 -0700 Subject: [PATCH 2/5] Bump cdk version --- .../connector-templates/source-configuration-based/setup.py.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-integrations/connector-templates/source-configuration-based/setup.py.hbs b/airbyte-integrations/connector-templates/source-configuration-based/setup.py.hbs index de23ef7a33a68..531674f36d292 100644 --- a/airbyte-integrations/connector-templates/source-configuration-based/setup.py.hbs +++ b/airbyte-integrations/connector-templates/source-configuration-based/setup.py.hbs @@ -6,7 +6,7 @@ from setuptools import find_packages, setup MAIN_REQUIREMENTS = [ - "airbyte-cdk~=0.1.68", + "airbyte-cdk~=0.1.71", ] TEST_REQUIREMENTS = [ From 87592a77570089468e5fea984f1d09ee2e01cb6b Mon Sep 17 00:00:00 2001 From: Alexandre Girard Date: Mon, 8 Aug 2022 18:50:07 -0700 Subject: [PATCH 3/5] move url_base to requester --- .../source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/airbyte-integrations/connector-templates/source-configuration-based/source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs b/airbyte-integrations/connector-templates/source-configuration-based/source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs index 6f8433d720263..59e95ca85eb3d 100644 --- a/airbyte-integrations/connector-templates/source-configuration-based/source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs +++ b/airbyte-integrations/connector-templates/source-configuration-based/source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs @@ -8,15 +8,16 @@ selector: transform: "_" requester: type: HttpRequester + $options: + url_base: TODO "your_api_base_url" name: "\{{ options['name'] }}" http_method: "GET" + authenticator: type: BearerAuthenticator api_token: "\{{ config['api_key'] }}" retriever: type: SimpleRetriever - $options: - url_base: TODO "your_api_base_url" name: "\{{ options['name'] }}" primary_key: "\{{ options['primary_key'] }}" record_selector: From 24eb508b35c7387a7c3a5fe5795f28d022386ff8 Mon Sep 17 00:00:00 2001 From: Alexandre Girard Date: Mon, 8 Aug 2022 18:50:41 -0700 Subject: [PATCH 4/5] Revert "move url_base to requester" This reverts commit 87592a77570089468e5fea984f1d09ee2e01cb6b. --- .../source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/airbyte-integrations/connector-templates/source-configuration-based/source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs b/airbyte-integrations/connector-templates/source-configuration-based/source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs index 59e95ca85eb3d..6f8433d720263 100644 --- a/airbyte-integrations/connector-templates/source-configuration-based/source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs +++ b/airbyte-integrations/connector-templates/source-configuration-based/source_{{snakeCase name}}/{{snakeCase name}}.yaml.hbs @@ -8,16 +8,15 @@ selector: transform: "_" requester: type: HttpRequester - $options: - url_base: TODO "your_api_base_url" name: "\{{ options['name'] }}" http_method: "GET" - authenticator: type: BearerAuthenticator api_token: "\{{ config['api_key'] }}" retriever: type: SimpleRetriever + $options: + url_base: TODO "your_api_base_url" name: "\{{ options['name'] }}" primary_key: "\{{ options['primary_key'] }}" record_selector: From 10a56a1379b09ee54bb1f8de4a453151f12870f7 Mon Sep 17 00:00:00 2001 From: Alexandre Girard Date: Mon, 8 Aug 2022 19:04:06 -0700 Subject: [PATCH 5/5] Bump to 0.1.72 --- .../connector-templates/source-configuration-based/setup.py.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-integrations/connector-templates/source-configuration-based/setup.py.hbs b/airbyte-integrations/connector-templates/source-configuration-based/setup.py.hbs index 531674f36d292..49b54192a86ec 100644 --- a/airbyte-integrations/connector-templates/source-configuration-based/setup.py.hbs +++ b/airbyte-integrations/connector-templates/source-configuration-based/setup.py.hbs @@ -6,7 +6,7 @@ from setuptools import find_packages, setup MAIN_REQUIREMENTS = [ - "airbyte-cdk~=0.1.71", + "airbyte-cdk~=0.1.72", ] TEST_REQUIREMENTS = [