Skip to content
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

Merged
merged 12 commits into from
May 20, 2021

Conversation

htrueman
Copy link
Contributor

What

Update sendgrid source to use current system-wide coding style. Update source and stream classes.

How

  • Removed deprecated airbyte-protocol and base-python dependencies.
  • Updated imports to use airbyte_cdk library.
  • Updated related files (docker, readme etc.)
  • Created airbyte-cdk source and stream classes
  • Removed old source and client classes

Pre-merge Checklist

  • Run integration tests
  • Publish Docker images

Recommended reading order

  1. Imports in python files
  2. Dockerfile, requirements.txt, setup.py, main.py and README.md
  3. source_sendgrid/source.py and source_sendgrid/api.py for updated source and stream classes

Fix test_source_wrong_credentials.
Add source-acceptance-test config.
@htrueman htrueman requested a review from keu May 18, 2021 14:03
@@ -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"],
Copy link
Contributor

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

Fix Templates stream request_params.
Copy link
Contributor

@keu keu left a 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 @@
#
Copy link
Contributor

@keu keu May 19, 2021

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

airbyte-integrations/connectors/source-sendgrid/Dockerfile Outdated Show resolved Hide resolved
Copy link
Contributor

@sherifnada sherifnada left a 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

@htrueman
Copy link
Contributor Author

htrueman commented May 20, 2021

/test connector=source-sendgrid

🕑 source-sendgrid https://github.com/airbytehq/airbyte/actions/runs/860146464
❌ source-sendgrid https://github.com/airbytehq/airbyte/actions/runs/860146464

@htrueman htrueman changed the title Rewrite sendgrid source using HTTP CDK 🎉 Rewrite sendgrid source using HTTP CDK May 20, 2021
@htrueman
Copy link
Contributor Author

htrueman commented May 20, 2021

/test connector=source-sendgrid

🕑 source-sendgrid https://github.com/airbytehq/airbyte/actions/runs/860194571
❌ source-sendgrid https://github.com/airbytehq/airbyte/actions/runs/860194571

@htrueman
Copy link
Contributor Author

@keu @sherifnada @yevhenii-ldv could not fill spam_reports stream, so tests won't pass.
Should I publish as it?

@sherifnada
Copy link
Contributor

@htrueman you can exclude it from configured catalog used for testing for now I believe cc @keu

Sgtm

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.
@htrueman
Copy link
Contributor Author

htrueman commented May 20, 2021

/test connector=source-sendgrid

🕑 source-sendgrid https://github.com/airbytehq/airbyte/actions/runs/860690605
✅ source-sendgrid https://github.com/airbytehq/airbyte/actions/runs/860690605

@htrueman
Copy link
Contributor Author

htrueman commented May 20, 2021

/publish connector=connectors/source-sendgrid

🕑 connectors/source-sendgrid https://github.com/airbytehq/airbyte/actions/runs/860751551
✅ connectors/source-sendgrid https://github.com/airbytehq/airbyte/actions/runs/860751551

@htrueman htrueman merged commit 5ea454a into master May 20, 2021
@htrueman htrueman deleted the htrueman/rewrite-sendgrid-source-using-cdk branch May 20, 2021 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite sendgrid source using HTTP CDK
4 participants