-
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 Facebook Marketing: fix url parsing and add report that exposes conversions. #5826
🐛 Source Facebook Marketing: fix url parsing and add report that exposes conversions. #5826
Conversation
@manavkohli thanks! will review it soon |
cafbeed
to
c866bb0
Compare
Awesome, thanks! |
@sherifnada @vitaliizazmic any feedback here? |
Test results:
@sherifnada do I need a particular pair of keys to test the integration tests? They're failing for me on master. |
@manavkohli to run those tests you need to add credentials for your connector in |
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.
LGTM! one question on unit tests
|
||
parse_result = parsed_url._replace(query="&".join(res_query)) | ||
return urlparse.urlunparse(parse_result) | ||
parsed = urlparse.urlparse(url) |
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.
would you mind adding a unit test for this method?
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.
Yes definitely!
@sherifnada I actually did, but it looks like the tests are written to assert for a specific account, e.g:
It looks like both of those tests are dependent on data from a particular account? |
Added test coverage results:
|
c866bb0
to
0d05f40
Compare
Ah, it's a hack we've done in the test for FB to get around some limitations of our test infra. If you change that ID to the ID of your ad account do the tests pass? if so could you post a screenshot of the passing tests? we should be good to go aftewards |
@sherifnada anything else needed here? |
@manavkohli we've been debugging some test failures on our side. I'm pretty sure they should be non-blocking for your PR so I just published the connector and @vitaliizazmic will create an issue to follow up on the test failures. Thanks for your contribution! |
What
This solves the issue of being able to fetch conversion data from the Facebook Marketing API. The discussion can be found here: #5190
How
This pull request creates a new report that fetches the
action_type
(whereomni_purchase
) represents a conversion whereas the other reports cannot due to misconfiguredbreakdown
sRecommended reading order
x.java
y.python
Pre-merge Checklist
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described here