-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
🎉 Rewrite sendgrid source using HTTP CDK #3445
Conversation
…ndgrid-source-using-cdk
…ndgrid-source-using-cdk
Create airbyte_cdk styled source. Remove deprecated client and source.
airbyte-integrations/connectors/source-sendgrid/source_sendgrid/api.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-sendgrid/source_sendgrid/api.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-sendgrid/source_sendgrid/api.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-sendgrid/source_sendgrid/api.py
Outdated
Show resolved
Hide resolved
Fix test_source_wrong_credentials. Add source-acceptance-test config.
@@ -31,6 +31,6 @@ | |||
author="Airbyte", | |||
author_email="contact@airbyte.io", | |||
packages=find_packages(), | |||
install_requires=["airbyte-protocol", "base-python", "backoff", "requests", "pytest==6.1.2"], | |||
install_requires=["airbyte-cdk==0.1.3", "backoff", "requests", "pytest==6.1.2"], |
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.
probably better to do something like ~=0.1
to pick up backwards compatible changes
airbyte-integrations/connectors/source-sendgrid/source_sendgrid/api.py
Outdated
Show resolved
Hide resolved
Fix Templates stream request_params.
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.
very small changes
@@ -0,0 +1,201 @@ | |||
# |
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.
let's rename it to streams.py
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 w comments from eugene
/test connector=source-sendgrid
|
/test connector=source-sendgrid
|
@keu @sherifnada @yevhenii-ldv could not fill spam_reports stream, so tests won't pass. |
Add no_spam_reports_configured_catalog.json with excluded spam_reports from acceptance test. Update acceptance-test-config.yml to use no_spam_reports_configured_catalog.json in basic_read.
/test connector=source-sendgrid
|
/publish connector=connectors/source-sendgrid
|
What
Update sendgrid source to use current system-wide coding style. Update source and stream classes.
How
airbyte-protocol
andbase-python
dependencies.airbyte_cdk
library.airbyte-cdk
source and stream classesPre-merge Checklist
Recommended reading order
Dockerfile
,requirements.txt
,setup.py
,main.py
andREADME.md
source_sendgrid/source.py
andsource_sendgrid/api.py
for updated source and stream classes