Skip to content

Source Salesforce: use concurrent CDK for full refresh syncs - #32535

Merged
Catherine Noll (clnoll) merged 2 commits into
masterfrom
source-salesforce-concurrent-full-refresh
Dec 4, 2023
Merged

Catherine Noll (clnoll) merged 2 commits into
masterfrom
source-salesforce-concurrent-full-refresh

Conversation

@clnoll

@clnoll Catherine Noll (clnoll) commented Nov 15, 2023 •

Copy link
Copy Markdown
Contributor

Adds concurrency to the Source Salesforce connector, for streams that are configured for full refresh.

@clnoll
Catherine Noll (clnoll) marked this pull request as draft November 15, 2023 02:15
@vercel

vercel Bot commented Nov 15, 2023 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2023 6:39pm

@github-actions

github-actions Bot commented Nov 15, 2023 •

Copy link
Copy Markdown
Contributor

Before Merging a Connector Pull Request

Wow! What a great pull request you have here! 🎉

To merge this PR, ensure the following has been done/considered for each connector added or updated:

  • PR name follows PR naming conventions
  • Breaking changes are considered. If a Breaking Change is being introduced, ensure an Airbyte engineer has created a Breaking Change Plan.
  • Connector version has been incremented in the Dockerfile and metadata.yaml according to our Semantic Versioning for Connectors guidelines
  • You've updated the connector's metadata.yaml file any other relevant changes, including a breakingChanges entry for major version bumps. See metadata.yaml docs
  • Secrets in the connector's spec are annotated with airbyte_secret
  • All documentation files are up to date. (README.md, bootstrap.md, docs.md, etc...)
  • Changelog updated in docs/integrations/<source or destination>/<name>.md with an entry for the new version. See changelog example
  • Migration guide updated in docs/integrations/<source or destination>/<name>-migrations.md with an entry for the new version, if the version is a breaking change. See migration guide example
  • If set, you've ensured the icon is present in the platform-internal repo. (Docs)

If the checklist is complete, but the CI check is failing,

  1. Check for hidden checklists in your PR description

  2. Toggle the github label checklist-action-run on/off to re-run the checklist CI.

@alafanechere

Copy link
Copy Markdown
Contributor

Catherine Noll (@clnoll) I'm updating your branch so that you get the fresh CI workflow for format

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looks great :shipit: !

),
),
)
def test_unspecified_and_incremental_streams_are_not_concurrent(stream_config, stream_names, catalog_stream_names) -> None:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

what's an unspecified stream?

@clnoll Catherine Noll (clnoll) Nov 17, 2023 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This just means the catalog hasn't been set. It shouldn't happen during reads but I thought it was worth testing just in case.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Awesome! 🎉


def _get_sync_mode_from_catalog(self, stream: Stream) -> Optional[SyncMode]:
if self.catalog:
for catalog_stream in self.catalog.streams:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Outside of the scope of this PR: I see this looping logic more and more. Would there be a way to have a ConfiguredAirbyteCatalog.get_stream_by_name(name: str)? This would greatly improve the readability/maintenance of our code

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice!

@clnoll
Catherine Noll (clnoll) merged commit c11041a into master Dec 4, 2023
@clnoll
Catherine Noll (clnoll) deleted the source-salesforce-concurrent-full-refresh branch December 4, 2023 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants