-
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 Instagram: Add primary keys for UserLifetimeInsights and UserInsights; add airbyte_type to timestamp fields #32500
🚨🚨✨ Source Instagram: Add primary keys for UserLifetimeInsights and UserInsights; add airbyte_type to timestamp fields #32500
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Before Merging a Connector Pull RequestWow! What a great pull request you have here! 🎉 To merge this PR, ensure the following has been done/considered for each connector added or updated:
If the checklist is complete, but the CI check is failing,
|
|
||
|
||
class InstagramStream(Stream, ABC): | ||
"""Base stream class""" | ||
|
||
page_size = 100 | ||
primary_key = "id" | ||
# Define fields to fix as tuples representing the path to the field | ||
fix_timestamp_fields = [] |
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.
maybe we could remove this attribute and use schema as a source of truth in order to find date-time
fields. (take a look at the facebook pages implementation)
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.
Fixed
airbyte-integrations/connectors/source-instagram/source_instagram/streams.py
Show resolved
Hide resolved
|
||
## Upgrading to 2.0.0 | ||
|
||
This release adds a default primary key for the streams UserLifetimeInsights and UserInsights, and updates the format of timestamp fields to include timezone information. |
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.
This release adds a default primary key for the streams UserLifetimeInsights and UserInsights, and updates the format of timestamp fields in the Media and Stories streams to include timezone information.
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.
Fixed
2.0.0: | ||
message: | ||
This release introduces a default primary key for the streams UserLifetimeInsights and UserInsights. | ||
Additionally, the format of timestamp fields has been updated to include timezone information. |
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.
Additionally, the format of timestamp fields has been updated in the Media and Stories streams to include timezone information.
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.
Fixed
87b553e
to
73417e1
Compare
@@ -2,6 +2,7 @@ | |||
# Copyright (c) 2023 Airbyte, Inc., all rights reserved. | |||
# | |||
|
|||
import pytest |
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 don't see any usage for that import. What is it there for?
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.
Fixed
dcb0c8d
to
2759d1d
Compare
What
This PR adds a default primary key to UserLifetimeInsights and UserInsights streams and updates timestamp fields to include timezone information, enhancing data integrity and consistency.
How
["business_account_id", "metric", "date"]
, and for UserInsights to["business_account_id", "date"]
. This change ensures that records are uniquely identified."airbyte_type": "timestamp_with_timezone"
. Additionally, timestamps are now transformed to the correct RFC3339 format. This modification aligns the timestamp fields with Airbyte's data standards.🚨 User Impact 🚨
This PR introduces breaking changes due to adding the primary key for UserLifetimeInsights and UserInsights streams and changing field type by adding
airbyte_type
for timestamp fields. Users will have to refresh their schemas and refresh data after the upgrade.