Skip to content

Source Chargebee: Updates schemas for validation and missing fields errors, updates test bypass, adds expected records, adds custom error handling, adds incremental support for three streams #34053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 60 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
18a04a8
Set `additionalProperties` to true fro `custom_fields` object.
pnilan Jan 8, 2024
974cd0c
Updated `invoice` and `transaction` schemas to include missing fields
pnilan Jan 8, 2024
7414f3c
Added missing fields to `credit_note` schema
pnilan Jan 8, 2024
4fbe535
Updated `subscription` schema `plan_unit_price` field for validation …
pnilan Jan 8, 2024
80c2225
Updated `payment_source` for typo in `funding_type` field
pnilan Jan 8, 2024
3e28a13
Updated `credit_note` schema for validation errors
pnilan Jan 8, 2024
e4ca966
Updated `item` and `item_price` schemas for validation errors
pnilan Jan 8, 2024
0400d6a
Added missing fields to `customer` schema
pnilan Jan 8, 2024
0bcca84
Update `customer` stream to account for correct `tax_provider_fields`…
pnilan Jan 9, 2024
c52be59
Updates chargebee changelog for correct date for 0.3.0 release
pnilan Jan 9, 2024
c774d91
Remove enumeration from `entity_type` field for `unbilled_charge` stream
pnilan Jan 9, 2024
41636d5
Chore: Format code
pnilan Jan 9, 2024
94eb58e
Updates Chargebee documentation to reflect current template
pnilan Jan 9, 2024
f7f5305
Updates spec to make Product Catalog an optional input
pnilan Jan 9, 2024
c7a7d4c
Revert `start_date` to required property
pnilan Jan 9, 2024
c5a94e8
Adds suggested streams
pnilan Jan 10, 2024
464053c
Update documentation to better reflect prereqs
pnilan Jan 10, 2024
f46bb6b
Updates connector for inc syncs for gift and site_migration_detail st…
pnilan Jan 11, 2024
f168f15
Updates QL to reflect silver certification
pnilan Jan 16, 2024
eafbeac
Updated date format error in spec.yaml
pnilan Jan 17, 2024
b984d59
Rollback update to `destination_sync_mode` in `configured_catalog`
pnilan Jan 17, 2024
75b25b3
Merge branch 'master' into pnilan/source-chargebee-schema-update
pnilan Jan 17, 2024
439c4b5
Added error handling for `attached_item` stream
pnilan Jan 19, 2024
3b603e8
Removed test bypass for `unbilled_charge` and `hosted_page` streams.
pnilan Jan 19, 2024
12fcfe9
Merge branch 'master' into pnilan/source-chargebee-schema-update
pnilan Jan 19, 2024
dd84c07
Merge branch 'master' into pnilan/source-chargebee-schema-update
pnilan Jan 19, 2024
87d5c93
Add `append + deduped` to supported sync modes in docs
pnilan Jan 19, 2024
2e72df0
Update metadata and changelog for new minor version
pnilan Jan 19, 2024
46b69eb
Merge branch 'pnilan/source-chargebee-schema-update' of github.com:ai…
pnilan Jan 19, 2024
5d7ab98
Update `gift` stream to be full_refresh.
pnilan Jan 19, 2024
b4631d2
Adds inc bypass for `gift` stream because it's full refresh only
pnilan Jan 19, 2024
8e2d4ef
Updated `site_migration_detail` and `unbilled_charge` to be `full_ref…
pnilan Jan 19, 2024
dd4bf85
Added `event` stream bypass for incremental tests due to large datase…
pnilan Jan 22, 2024
ede9fc1
Removed errant records in expected_records
pnilan Jan 22, 2024
b5e0f3c
Adds parent stream foreign key field to `contact` and `quote_line_gro…
pnilan Jan 23, 2024
64a855f
Updated `expected_records` for `contact` and `quote_line_group` strea…
pnilan Jan 23, 2024
1a70c7a
Merge branch 'master' into pnilan/source-chargebee-schema-update
pnilan Jan 23, 2024
cd4cf02
Removed `item_family` records from before `start_date`
pnilan Jan 23, 2024
cec6d54
Removes unnecessary validation in schemas, moves `custom_fields` to s…
pnilan Jan 26, 2024
69116f5
chore: format code
pnilan Jan 26, 2024
68d29df
Sets fail_on_extra_columns to true
pnilan Jan 29, 2024
2328919
Merge branch 'master' into pnilan/source-chargebee-schema-update
pnilan Feb 1, 2024
b47fd5a
Removes `event` from `configured_catalog` -- currently untested and s…
pnilan Feb 1, 2024
94756de
Adds missing fields to schemas
pnilan Feb 2, 2024
3d96563
Adds semi-incremental custom component for unbilled_charge, gift, and…
pnilan Feb 4, 2024
186545d
Merge branch 'pnilan/source-chargebee-semi-inc' into pnilan/source-ch…
pnilan Feb 4, 2024
7bdd9f4
Updates configured_catalog to reflect addition of semi-incremental st…
pnilan Feb 5, 2024
0da8206
Add unit tests for custom semi incremental stream component
pnilan Feb 5, 2024
c7db177
Added test to achieve 90% unit test coverage
pnilan Feb 5, 2024
5105c50
Fixed error in configured catalog
pnilan Feb 5, 2024
0a4ea9f
Adds cursor field parameters to `gift`, `unbilled_charge`, and `site_…
pnilan Feb 5, 2024
e456c74
chore: format code
pnilan Feb 5, 2024
a45de7b
Temp `fail_on_extra_columns = False`
pnilan Feb 5, 2024
6080eb2
Removes `site_migration_detail` stream from configured catalog as it …
pnilan Feb 6, 2024
02a9d4d
Remove high test strictness, skip comprehensive inc tests
pnilan Feb 6, 2024
b033cc9
Set up expected records for split testing
pnilan Feb 7, 2024
5f56df8
Revert `attached_item` stream to full refresh only
pnilan Feb 7, 2024
7462176
Updates acceptance-test-config for attached_item full refresh impleme…
pnilan Feb 8, 2024
ae2c3a3
Bypasses `subscription`, `customer`, and `coupon` streams in acceptan…
pnilan Feb 12, 2024
e2636f3
Merge branch 'master' of github.com:airbytehq/airbyte into pnilan/sou…
pnilan Feb 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,22 @@ acceptance_tests:
bypass_reason: "Not available for Product Catalog 2.0 sites."
- name: "virtual_bank_account"
bypass_reason: "Cannot populate with test data"
- name: "unbilled_charge"
bypass_reason: "Empty stream. Unstable data"
- name: "hosted_page"
bypass_reason: "Empty stream. Unstable data"
- name: "event"
bypass_reason: "Unstable data. Updated daily."
bypass_reason: "Unstable data. Test data is not persistent."
- name: "site_migration_detail"
bypass_reason: "Cannnot populate with test data."
ignored_fields:
subscription:
- name: "current_term_start"
bypass_reason: "Field updated daily."
- name: "customer"
bypass_reason: "To be Tested with integration tests."
- name: "subscription"
bypass_reason: "To be Tested with integration tests."
- name: "coupon"
bypass_reason: "To be Tested with integration tests."
expect_records:
path: "integration_tests/expected_records.jsonl"
extra_fields: no
exact_order: no
extra_records: yes
fail_on_extra_columns: false
fail_on_extra_columns: true
incremental:
tests:
- config_path: "secrets/config.json"
Expand All @@ -54,12 +52,12 @@ acceptance_tests:
future_state:
future_state_path: "integration_tests/future_state.json"
missing_streams:
- name: attached_item
bypass_reason: "This stream is Full-Refresh only"
- name: contact
bypass_reason: "This stream is Full-Refresh only"
- name: quote_line_group
bypass_reason: "This stream is Full-Refresh only"
- name: attached_item
bypass_reason: "This stream is Full-Refresh only"
full_refresh:
tests:
- config_path: "secrets/config.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,6 @@
"destination_sync_mode": "append",
"cursor_field": ["updated_at"]
},
{
"stream": {
"name": "event",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["occurred_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "incremental",
"destination_sync_mode": "append",
"cursor_field": ["occurred_at"]
},
{
"stream": {
"name": "customer",
"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": "contact",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "invoice",
Expand Down Expand Up @@ -107,13 +69,11 @@
"stream": {
"name": "attached_item",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"supported_sync_modes": ["full_refresh"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
"destination_sync_mode": "overwrite"
},
{
"stream": {
Expand Down Expand Up @@ -147,7 +107,7 @@
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"default_cursor_field": ["created_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "incremental",
Expand All @@ -160,25 +120,12 @@
"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": "coupon",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"source_defined_primary_key": [["id"]]
"source_defined_primary_key": [["id"]],
"default_cursor_field": ["created_at"]
},
"sync_mode": "incremental",
"destination_sync_mode": "append",
"cursor_field": ["updated_at"]
"cursor_field": ["created_at"]
},
{
"stream": {
Expand Down Expand Up @@ -212,8 +159,8 @@
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"source_defined_primary_key": [["id"]]
"source_defined_primary_key": [["id"]],
"default_cursor_field": ["updated_at"]
},
"sync_mode": "incremental",
"destination_sync_mode": "append",
Expand All @@ -236,26 +183,11 @@
"stream": {
"name": "quote_line_group",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"supported_sync_modes": ["full_refresh"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "site_migration_detail",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["migrated_at"],
"source_defined_primary_key": [["entity_id"]]
},
"sync_mode": "incremental",
"destination_sync_mode": "append",
"cursor_field": ["migrated_at"]
"destination_sync_mode": "overwrite"
},
{
"stream": {
Expand Down
Loading