Skip to content

Commit

Permalink
🎉 Source Recharge: migrate to Low-Code (#35450)
Browse files Browse the repository at this point in the history
  • Loading branch information
bazarnov authored Mar 28, 2024
1 parent ca6d722 commit 85d2469
Show file tree
Hide file tree
Showing 38 changed files with 1,780 additions and 823 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,23 @@ acceptance_tests:
- config_path: secrets/config.json
empty_streams:
- name: collections
bypass_reason: "volatile data"
bypass_reason: "The stream is tested with `Integration Tests`, since no data is available"
- name: discounts
bypass_reason: "volatile data"
bypass_reason: "The stream is tested with `Integration Tests`, since no data is available"
- name: onetimes
bypass_reason: "no data from stream"
timeout_seconds: 7200
bypass_reason: "The stream is tested with `Integration Tests`, since no data is available"
expect_records:
path: "integration_tests/expected_records.jsonl"
exact_order: no
fail_on_extra_columns: false
- config_path: secrets/config_order_modern_api.json
empty_streams:
- name: collections
bypass_reason: "volatile data"
bypass_reason: "The stream is tested with `Integration Tests`, since no data is available"
- name: discounts
bypass_reason: "volatile data"
bypass_reason: "The stream is tested with `Integration Tests`, since no data is available"
- name: onetimes
bypass_reason: "no data from stream"
timeout_seconds: 7200
bypass_reason: "The stream is tested with `Integration Tests`, since no data is available"
expect_records:
path: "integration_tests/expected_records_orders_modern_api.jsonl"
exact_order: no
fail_on_extra_columns: false
connection:
tests:
- config_path: secrets/config.json
Expand All @@ -36,7 +30,7 @@ acceptance_tests:
discovery:
tests:
- backward_compatibility_tests_config:
disable_for_version: 1.1.2
disable_for_version: 1.1.5
config_path: secrets/config.json
full_refresh:
tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,49 @@
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2050-05-18T00:00:00" },
"stream_state": { "updated_at": "2050-05-18T00:00:00Z" },
"stream_descriptor": { "name": "addresses" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2050-05-18T00:00:00" },
"stream_state": { "updated_at": "2050-05-18T00:00:00Z" },
"stream_descriptor": { "name": "charges" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2050-05-18T00:00:00" },
"stream_state": { "updated_at": "2050-05-18T00:00:00Z" },
"stream_descriptor": { "name": "customers" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2050-05-18T00:00:00" },
"stream_state": { "updated_at": "2050-05-18T00:00:00Z" },
"stream_descriptor": { "name": "discounts" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2050-05-18T00:00:00" },
"stream_state": { "updated_at": "2050-05-18T00:00:00Z" },
"stream_descriptor": { "name": "onetimes" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2050-05-18T00:00:00" },
"stream_state": { "updated_at": "2050-05-18T00:00:00Z" },
"stream_descriptor": { "name": "orders" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2050-05-18T00:00:00" },
"stream_state": { "updated_at": "2050-05-18T00:00:00Z" },
"stream_descriptor": { "name": "subscriptions" }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@
"destination_sync_mode": "append",
"cursor_field": ["updated_at"]
},
{
"stream": {
"name": "onetimes",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "incremental",
"destination_sync_mode": "append",
"cursor_field": ["updated_at"]
},
{
"stream": {
"name": "discounts",
Expand Down Expand Up @@ -108,19 +121,6 @@
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "subscriptions",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "incremental",
"destination_sync_mode": "append",
"cursor_field": ["updated_at"]
},
{
"stream": {
"name": "metafields",
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions airbyte-integrations/connectors/source-recharge/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ data:
connectorSubtype: api
connectorType: source
connectorBuildOptions:
baseImage: docker.io/airbyte/python-connector-base:1.1.0@sha256:bd98f6505c6764b1b5f99d3aedc23dfc9e9af631a62533f60eb32b1d3dbab20c
baseImage: docker.io/airbyte/python-connector-base:1.2.0@sha256:c22a9d97464b69d6ef01898edf3f8612dc11614f05a84984451dde195f337db9
definitionId: 45d2e135-2ede-49e1-939f-3e3ec357a65e
dockerImageTag: 1.1.6
dockerImageTag: 1.2.0
dockerRepository: airbyte/source-recharge
githubIssueLabel: source-recharge
icon: recharge.svg
Expand All @@ -26,7 +26,7 @@ data:
documentationUrl: https://docs.airbyte.com/integrations/sources/recharge
tags:
- language:python
- cdk:python
- cdk:low-code
ab_internal:
sl: 200
ql: 400
Expand Down
34 changes: 24 additions & 10 deletions airbyte-integrations/connectors/source-recharge/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "1.1.6"
version = "1.2.0"
name = "source-recharge"
description = "Source implementation for Recharge."
authors = [ "Airbyte <[email protected]>",]
Expand All @@ -17,7 +17,8 @@ include = "source_recharge"

[tool.poetry.dependencies]
python = "^3.9,<3.12"
airbyte-cdk = "==0.60.1"
airbyte-cdk = "^0"
freezegun = "^1.4.0"

[tool.poetry.scripts]
source-recharge = "source_recharge.run:run"
Expand Down
Loading

0 comments on commit 85d2469

Please sign in to comment.