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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃帀 Airbyte CDK: Add CustomFileBasedException for custom errors in file-based CDK #31704

Merged
merged 3 commits into from
Oct 24, 2023

Conversation

tolik0
Copy link
Contributor

@tolik0 tolik0 commented Oct 23, 2023

What

Add custom Exception that can be raised in file-based CDK. Example of use: #31383

How

Add a new type of error - CustomFileBasedException. Also, add catching this error in AbstractFileBasedAvailabilityStrategy and raise it as CheckAvailabilityError.

Recommended reading order

  1. airbyte-cdk/python/airbyte_cdk/sources/file_based/exceptions.py
  2. airbyte-cdk/python/airbyte_cdk/sources/file_based/exceptions.py
  3. airbyte-cdk/python/unit_tests/sources/file_based/availability_strategy/test_default_file_based_availability_strategy.py

@vercel
Copy link

vercel bot commented Oct 23, 2023

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 Oct 24, 2023 10:58am

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Oct 23, 2023
@tolik0 tolik0 marked this pull request as ready for review October 23, 2023 12:39
@tolik0 tolik0 requested a review from a team as a code owner October 23, 2023 12:39
@tolik0 tolik0 requested a review from clnoll October 23, 2023 15:28
@tolik0 tolik0 self-assigned this Oct 23, 2023
@tolik0 tolik0 force-pushed the tolik0/file-based-cdk/custom-exception branch from 3568482 to b57b717 Compare October 23, 2023 15:33
Copy link
Contributor

@clnoll clnoll left a comment

Choose a reason for hiding this comment

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

LGTM @tolik0!

@tolik0 tolik0 force-pushed the tolik0/file-based-cdk/custom-exception branch from 62b1c22 to cc076f3 Compare October 24, 2023 10:45
@tolik0 tolik0 merged commit ce2342d into master Oct 24, 2023
20 of 21 checks passed
@tolik0 tolik0 deleted the tolik0/file-based-cdk/custom-exception branch October 24, 2023 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants