-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3094c9e
add python oauth part
annalvova05 324bc33
Merge remote-tracking branch 'origin/master' into alvova/7482-snapcha…
annalvova05 095e1a8
bump version
annalvova05 01e0fbc
remove old creds
annalvova05 32bc78b
Merge remote-tracking branch 'origin/master' into alvova/7482-snapcha…
annalvova05 2d95ec7
bump version
annalvova05 187cb36
Merge remote-tracking branch 'origin/master' into alvova/7482-snapcha…
annalvova05 d2e767f
Merge remote-tracking branch 'origin/master' into alvova/7482-snapcha…
annalvova05 31d89f5
change spec
annalvova05 042d9fb
Merge remote-tracking branch 'origin/master' into alvova/7482-snapcha…
annalvova05 2dc254f
bump version
annalvova05 062636e
bump version
annalvova05 9633d4c
bump version
annalvova05 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 20 additions & 7 deletions
27
airbyte-integrations/connectors/source-snapchat-marketing/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
FROM python:3.7-slim | ||
FROM python:3.7.11-alpine3.14 as base | ||
FROM base as builder | ||
|
||
# Bash is installed for more convenient debugging. | ||
RUN apt-get update && apt-get install -y bash && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apk --no-cache upgrade \ | ||
&& pip install --upgrade pip \ | ||
&& apk --no-cache add tzdata build-base | ||
|
||
WORKDIR /airbyte/integration_code | ||
COPY source_snapchat_marketing ./source_snapchat_marketing | ||
COPY main.py ./ | ||
COPY setup.py ./ | ||
RUN pip install . | ||
RUN pip install --prefix=/install . | ||
|
||
|
||
FROM base | ||
COPY --from=builder /install /usr/local | ||
# add default timezone settings | ||
COPY --from=builder /usr/share/zoneinfo/Etc/UTC /etc/localtime | ||
RUN echo "Etc/UTC" > /etc/timezone | ||
|
||
WORKDIR /airbyte/integration_code | ||
COPY main.py ./ | ||
COPY source_snapchat_marketing ./source_snapchat_marketing | ||
|
||
|
||
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" | ||
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] | ||
|
||
LABEL io.airbyte.version=0.1.2 | ||
LABEL io.airbyte.version=0.1.3 | ||
LABEL io.airbyte.name=airbyte/source-snapchat-marketing |
8 changes: 8 additions & 0 deletions
8
airbyte-integrations/connectors/source-snapchat-marketing/acceptance-test-docker.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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'}
andlatest_record.get(self.cursor_field, "") = ""
max
returns'2021-06-11T09:44:42.583Z'