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

Validate source/destination definition ids before create connection - issue 144 #4115

Merged
merged 2 commits into from Jun 18, 2021

Conversation

airbyte-jenny
Copy link
Contributor

ConnectionsHandler checks that sourceDefinitionId and destinationDefinitionId are valid before creating a connector.

What

ConnectionsHandler checks that sourceDefinitionId and destinationDefinitionId are valid before creating a connector. If they are not, ConfigNotFoundException is thrown.

How

Looks up the definitions by id before allowing create to continue. If they are not found, exception is raised.

Recommended reading order

  1. airbyte-server/src/main/java/io/airbyte/server/handlers/ConnectionsHandler.java
  2. airbyte-server/src/test/java/io/airbyte/server/handlers/ConnectionsHandlerTest

Closes #144

…nitionId are valid before creating a connector.
@github-actions github-actions bot added the area/platform issues related to the platform label Jun 14, 2021
Copy link
Contributor

@cgardens cgardens left a comment

Choose a reason for hiding this comment

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

Nice! LGTM.

@airbyte-jenny airbyte-jenny merged commit 39d4221 into master Jun 18, 2021
@airbyte-jenny airbyte-jenny deleted the airbyte-jenny/issue-144 branch June 18, 2021 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate Inputs for connection/create
3 participants