Skip to content

Commit b15cf3c

Browse files
author
askarpets
committed
Remove unused component
1 parent 64ab753 commit b15cf3c

File tree

3 files changed

+17
-46
lines changed

3 files changed

+17
-46
lines changed

airbyte-integrations/connectors/source-pinterest/source_pinterest/components/record_filter.py

-41
This file was deleted.

airbyte-integrations/connectors/source-pinterest/source_pinterest/manifest.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ definitions:
122122
record_selector:
123123
$ref: "#/definitions/selector"
124124
record_filter:
125-
type: CustomRecordFilter
126-
class_name: source_pinterest.components.record_filter.PinterestSemiIncrementalRecordFilter
125+
type: RecordFilter
126+
condition: "{{ record['updated_time'] >= stream_slice['start_time'] | int }}"
127127
incremental_sync:
128128
type: DatetimeBasedCursor
129129
cursor_field: "updated_time"

airbyte-integrations/connectors/source-pinterest/unit_tests/test_incremental_streams.py

+15-3
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,29 @@ def test_should_retry(test_config, http_status, should_retry):
8989
("2024-04-02", {}, [{"id": "campaign_id_2", "ad_account_id": "ad_account_id", "updated_time": 1712102400}]),
9090
(
9191
"2024-03-30",
92-
{"states": [{"partition": {"id": "ad_account_id"}, "cursor": {"updated_time": 1712016000}}]},
92+
{
93+
"states": [
94+
{"partition": {"id": "ad_account_id", "parent_slice": {}}, "cursor": {"updated_time": 1712016000}},
95+
],
96+
},
9397
[{"id": "campaign_id_2", "ad_account_id": "ad_account_id", "updated_time": 1712102400}],
9498
),
9599
(
96100
"2024-04-02",
97-
{"states": [{"partition": {"id": "ad_account_id"}, "cursor": {"updated_time": 1711929599}}]},
101+
{
102+
"states": [
103+
{"partition": {"id": "ad_account_id", "parent_slice": {}}, "cursor": {"updated_time": 1711929599}},
104+
],
105+
},
98106
[{"id": "campaign_id_2", "ad_account_id": "ad_account_id", "updated_time": 1712102400}],
99107
),
100108
(
101109
None,
102-
{"states": [{"partition": {"id": "ad_account_id"}, "cursor": {"updated_time": 1712016000}}]},
110+
{
111+
"states": [
112+
{"partition": {"id": "ad_account_id", "parent_slice": {}}, "cursor": {"updated_time": 1712016000}},
113+
],
114+
},
103115
[{"id": "campaign_id_2", "ad_account_id": "ad_account_id", "updated_time": 1712102400}],
104116
),
105117
),

0 commit comments

Comments
 (0)