-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
🐛 Source tiktok-marketing: fix include deleted option #44048
🐛 Source tiktok-marketing: fix include deleted option #44048
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change looks reasonable and aligned with the API doc you pointed to 🚢
@@ -343,6 +343,42 @@ def test_read_with_state(self, http_mocker: HttpMocker): | |||
{"cursor": {"stat_time_hour": self.cursor}, "partition": {"advertiser_id": self.advertiser_id, "parent_slice": {}}} | |||
] | |||
|
|||
@HttpMocker() | |||
def test_read_with_include_deleted(self, http_mocker: HttpMocker): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for all the tests 🐟
What
This is related to https://github.com/airbytehq/oncall/issues/5205
According to documentation and @tolik0 investigation, now the "filters," param was changed to "filtering." Also, it won't ignore the incorrect "field_name" when filtering as it used to do, so it needs to pass the correct one for each data level.
How
Update yaml to use filtering when available and required.
Review guide
airbyte-integrations/connectors/source-tiktok-marketing/source_tiktok_marketing/manifest.yaml
: changes removing filters and adding filtering param with correct field_name.airbyte-integrations/connectors/source-tiktok-marketing/unit_tests/integration/test_reports_hourly.py
: new testing for filtering wheninclude_deleted
is true in config.User Impact
When fetching streams ad_groups_reports_daily and ads_reports_daily from TikTok Marketing connector and putting "Include deleted data in reports" toggle on the user get the deleted ad_groups and ads (respectively).
Can this PR be safely reverted and rolled back?