From 218f58ec2908f2a1a3ab484d0ab078013f99b718 Mon Sep 17 00:00:00 2001 From: Pat Nadolny Date: Thu, 20 Oct 2022 12:01:51 -0400 Subject: [PATCH 1/4] add default envs to the cookie cutter meltano.yml --- cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml index 1ca496a86..d4c2652b7 100644 --- a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml +++ b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml @@ -1,6 +1,10 @@ version: 1 send_anonymous_usage_stats: true project_id: "{{cookiecutter.tap_id}}" +environments: +- name: dev +- name: staging +- name: prod plugins: extractors: - name: "{{cookiecutter.tap_id}}" From 0467f9a48a33b9376cef17d7db534e7ab86eb136 Mon Sep 17 00:00:00 2001 From: pnadolny13 Date: Thu, 20 Oct 2022 14:17:09 -0400 Subject: [PATCH 2/4] only use test environment --- .../tap-template/{{cookiecutter.tap_id}}/meltano.yml | 5 ++--- .../target-template/{{cookiecutter.target_id}}/meltano.yml | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml index d4c2652b7..c30b1f03e 100644 --- a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml +++ b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml @@ -1,10 +1,9 @@ version: 1 send_anonymous_usage_stats: true project_id: "{{cookiecutter.tap_id}}" +default_environment: test environments: -- name: dev -- name: staging -- name: prod +- name: test plugins: extractors: - name: "{{cookiecutter.tap_id}}" diff --git a/cookiecutter/target-template/{{cookiecutter.target_id}}/meltano.yml b/cookiecutter/target-template/{{cookiecutter.target_id}}/meltano.yml index 000712603..ed927d30f 100644 --- a/cookiecutter/target-template/{{cookiecutter.target_id}}/meltano.yml +++ b/cookiecutter/target-template/{{cookiecutter.target_id}}/meltano.yml @@ -1,6 +1,9 @@ version: 1 send_anonymous_usage_stats: true project_id: "{{cookiecutter.target_id}}" +default_environment: test +environments: +- name: test plugins: extractors: [] loaders: From b8152eeda8e728bf7c0176c8e85b9f39bd1eb8d9 Mon Sep 17 00:00:00 2001 From: pnadolny13 Date: Thu, 20 Oct 2022 14:21:46 -0400 Subject: [PATCH 3/4] remove invalid target capabilities from the target cookiecutter --- .../target-template/{{cookiecutter.target_id}}/meltano.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookiecutter/target-template/{{cookiecutter.target_id}}/meltano.yml b/cookiecutter/target-template/{{cookiecutter.target_id}}/meltano.yml index ed927d30f..da876d4df 100644 --- a/cookiecutter/target-template/{{cookiecutter.target_id}}/meltano.yml +++ b/cookiecutter/target-template/{{cookiecutter.target_id}}/meltano.yml @@ -11,9 +11,9 @@ plugins: namespace: "{{cookiecutter.library_name}}" pip_url: -e . capabilities: - - state - - catalog - - discover + - about + - stream-maps + - record-flattening config: start_date: '2010-01-01T00:00:00Z' settings: From 03d1c86b69ba6a7aef22d1180c48a6074869ccf3 Mon Sep 17 00:00:00 2001 From: pnadolny13 Date: Thu, 20 Oct 2022 15:33:34 -0400 Subject: [PATCH 4/4] add more tap capabilities --- cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml index c30b1f03e..e6a1cfba5 100644 --- a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml +++ b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/meltano.yml @@ -13,6 +13,8 @@ plugins: - state - catalog - discover + - about + - stream-maps config: start_date: '2010-01-01T00:00:00Z' settings: