- Notifications
You must be signed in to change notification settings - Fork 4.9k
Source Pinterest - Adding missing columns for analytics streams #23457
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 Pinterest - Adding missing columns for analytics streams #23457
Conversation
| Tagging @sh4sh, @natalyjazzviolin |
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.
Hey @artusiep,
Thanks for the contribution, it looks like you're adding around 22 new columns to the analytics streams.
In the conftest.py, what's the reason behind removing the "windows_in_days" value?
Also there seems to be some merge conflicts, can you fix them?
96639a3 to df908ac Compare df908ac to e6a8ef9 Compare | Hey @sajarin answering your question
Exactly this is the main purpose of this contribution. The list of columns are mentioned in Pull Request description
Merge conflict fixed |
| /test connector=connectors/source-pinterest
Build FailedTest summary info: |
| @sajarin I think the backward compatibility error is connected with adding these columns and changing the type of columns. |
| "client_secret": "client_secret", | ||
| "refresh_token": "refresh_token", | ||
| "start_date": "2020-06-01", | ||
| "window_in_days": 1 |
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.
Why are you removing this parameter?
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.
As it is mentioned above:
In the conftest.py, what's the reason behind removing the "windows_in_days" value?
windows_in_days parameter is simply not used anywhere, and it is not configurable. Take a look at: https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/connectors/source-pinterest/source_pinterest/source.py#L44-L46 I just wanted do make a clean up of this variable as well
I can rollback that but it is not going to be used
| }, | ||
| "CAMPAIGN_NAME": { | ||
| "type": ["null", "number"] | ||
| "type": ["null", "string"] |
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.
Changing an existing schame you must edit the acceptance-test to skip the backward compatibility issue.
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.
I will try to understand how this backward compatibility acceptance tests works in order to mitigate that
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.
Hello @artusiep sorry the long delay here. I submitted a few changes to correct integration tests.
| /test connector=connectors/source-pinterest
Build PassedTest summary info: |
marcosmarxm left a comment
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 @artusiep I'll request the final approval from the connector team to release the new version of your changes. This is going to happens next week but everything is ok from your side. Sorry again for the long delay to review the contribution.
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! Need update strictness level for tests
airbyte-integrations/connectors/source-pinterest/acceptance-test-config.yml Outdated Show resolved Hide resolved
| /test connector=connectors/source-pinterest
Build PassedTest summary info: |
lazebnyi left a comment
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!
| /publish connector=connectors/source-pinterest
if you have connectors that successfully published but failed definition generation, follow step 4 here |


What
Adding missing metrics for pinterest source
Not all columns are available for synchronous endpoint so I have added all available columns:
This contribution brings 22 columns to analytics columns.
windows_in_daysparameter is not used anywhere, and it is not configurable so deleting that from conftest.Unit test:

Closes #22206 #21326
Duplicates: [https://github.com//pull/22501]
How
Adding columns and making list of columns easier to review
Recommended reading order
airbyte-integrations/connectors/source-pinterest/source_pinterest/utils.pyairbyte-integrations/connectors/source-pinterest/source_pinterest/source.py🚨 User Impact 🚨
Pinterest source users would need to
refresh source schemato pickup changesPre-merge Checklist
Expand the relevant checklist and delete the others.
Updating a connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/integrations/<source or destination>/<name>.mdincluding 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/publishcommand described here