-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 Snapchat Marketing: support oauth #7811
Conversation
/test connector=connectors/source-snapchat-marketing
|
…t-oauth # Conflicts: # docs/integrations/sources/snapchat-marketing.md
return {self.cursor_field: self.max_state if self.current_slice == self.last_slice else self.initial_state} | ||
if not current_stream_state: | ||
current_stream_state = {self.cursor_field: self.start_date} | ||
return {self.cursor_field: max(latest_record.get(self.cursor_field, ""), current_stream_state.get(self.cursor_field, ""))} |
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.
does max
work with empty 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.
yes. In case,
current_stream_state: {'updated_at': '2021-06-11T09:44:42.583Z'}
and
latest_record.get(self.cursor_field, "") = ""
max
returns '2021-06-11T09:44:42.583Z'
/test connector=connectors/source-snapchat-marketing
|
/test connector=connectors/source-snapchat-marketing
|
/publish connector=connectors/source-snapchat-marketing
|
* add python oauth part * bump version * remove old creds * bump version * change spec * bump version * bump version * bump version
What
Add oauth2.0 flow in Python part
How
Change spec.json
Recommended reading order
x.java
y.python
Pre-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.md
bootstrap.md
. See description and examplesdocs/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