Skip to content
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 Facebook Marketing: apply configured statuses to ads insight streams #39439

Merged
merged 8 commits into from
Jun 13, 2024

Conversation

maxi297
Copy link
Contributor

@maxi297 maxi297 commented Jun 12, 2024

What

Branching off of #37437 to address #36998

Big kudos to @wmcguinn-octave for identifying the issue and providing an initial PR!

How

By forcing all ads statuses as part of the AdsInsights job creation request. That way, we don't rely on the default for each edge (account, campaign, ad sets and ad) but always have the same effective statuses being returned.

Review guide

  1. Having insights stream support filtering statuses:
    • Code: airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/streams/base_insight_streams.py
    • Test: airbyte-integrations/connectors/source-facebook-marketing/unit_tests/test_base_insight_streams.py
  2. Passing all the states to the AdInsights streams
    • Code: airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/source.py
    • Test: airbyte-integrations/connectors/source-facebook-marketing/unit_tests/integration/test_ads_insights_action_product_id.py

User Impact

When the jobs are too big and ad status is deleted or archived, they should still be returned.

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

TODO

@maxi297 maxi297 requested a review from a team June 12, 2024 18:13
Copy link

vercel bot commented Jun 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2024 0:44am

@maxi297 maxi297 changed the title Issue 36998/ensure job retry have all the ads 🐛 Source Facebook Marketing: apply configured statuses to ads insight streams Jun 12, 2024
Copy link
Collaborator

@bazarnov bazarnov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a reasonable change. LTGM.

@maxi297 maxi297 merged commit 677b010 into master Jun 13, 2024
30 checks passed
@maxi297 maxi297 deleted the issue-36998/ensure-job-retry-have-all-the-ads branch June 13, 2024 14:55
xiaohansong pushed a commit that referenced this pull request Jun 14, 2024
… streams (#39439)

Co-authored-by: williammcguinness <wmcguinness@findoctave.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/facebook-marketing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants