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

🎉 Support incremental sync in Sendgrid #3512

Merged
merged 9 commits into from
May 25, 2021

Conversation

htrueman
Copy link
Contributor

@htrueman htrueman commented May 20, 2021

What

Added incremental streams support to global_suppressions, blocks, bounces, invalid_emails and spam_reports streams.

How

  • Added incremental configured catalogs json configs
  • Updated source to support start_time config
  • Added SendgridStreamIncrementalMixin to be inherited by streams that support incremental sync

Pre-merge Checklist

  • Run integration tests
  • Publish Docker images

Recommended reading order

  1. Configured catalogs json files
  2. source.py
  3. streams.py

┆Issue is synchronized with this Asana task by Unito

Updated config catalogs.
@htrueman htrueman linked an issue May 20, 2021 that may be closed by this pull request
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.

LGTM, just a small comment, otherwise approved, did you enable acceptance tests for incremental?

@keu keu removed the request for review from arhip11 May 20, 2021 20:10
@htrueman
Copy link
Contributor Author

htrueman commented May 21, 2021

/test connector=source-sendgrid

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

@htrueman
Copy link
Contributor Author

LGTM, just a small comment, otherwise approved, did you enable acceptance tests for incremental?

It's added for now

@htrueman htrueman force-pushed the htrueman/source-sendgrid-support-incremental-sync branch from 3c29eb6 to 574074a Compare May 21, 2021 14:31
@htrueman
Copy link
Contributor Author

htrueman commented May 21, 2021

/test connector=source-sendgrid

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

@htrueman
Copy link
Contributor Author

htrueman commented May 21, 2021

/test connector=source-sendgrid

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

@htrueman
Copy link
Contributor Author

htrueman commented May 21, 2021

/test connector=source-sendgrid

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

@@ -75,6 +76,29 @@ def next_page_token(self, response: requests.Response) -> Optional[Mapping[str,
return {"offset": self.offset}


class SendgridStreamIncrementalMixin(HttpStream):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nifty usage of mixin

@htrueman
Copy link
Contributor Author

htrueman commented May 25, 2021

/test connector=source-sendgrid

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

@htrueman
Copy link
Contributor Author

htrueman commented May 25, 2021

/publish connector=connectors/source-sendgrid

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

@htrueman htrueman merged commit 70f5dba into master May 25, 2021
@htrueman htrueman deleted the htrueman/source-sendgrid-support-incremental-sync branch May 25, 2021 12:49
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.

Support incremental sync in Sendgrid
3 participants