-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix creation of custom connector definitions #19637
Comments
cc @airbytehq/frontend |
After some local testing: creating custom connectors on master currently does not work. The connectors are created in the database, but are not returned by the server and consequently not shown in the UI. This is because the webapp is now using the old |
Synced offline about this. Our outcome and action items
|
Thanks @xiaohansong - could we also add the removal of the old creation endpoints to #19669 (or a new issue)?
Just want to make sure we get rid of those two endpoints so we don't have another accidental usage of them in the FE again 🙂 |
@josephkmh Just did that! |
Closes #19637 PR that introduced this bug was a precision revert of another issue: #19627 This PR removes the createSourceDefinition() and createDestinationDefinition() methods in favor of the new createCustomSourceDefinition() and createCustomDestinationDefinition() methods. createSourceDefinition() and createDestinationDefinition() are to be deprecated. This PR does not address updating custom connectors. There is a backend issue for fixing this behavior here: #19669
Closes #19637 PR that introduced this bug was a precision revert of another issue: #19627 This PR removes the createSourceDefinition() and createDestinationDefinition() methods in favor of the new createCustomSourceDefinition() and createCustomDestinationDefinition() methods. createSourceDefinition() and createDestinationDefinition() are to be deprecated. This PR does not address updating custom connectors. There is a backend issue for fixing this behavior here: #19669
When creating a custom source/destination connector, the frontend should use
createCustomSourceDefinition()
andcreateCustomDestinationDefinition()
respectively. The currently used methods (createSourceDefinition()
andcreateDestinationDefinition()
) result in orphaned rows in theactor_catalog
.Context on what led to this issue:
PR 19221 updated the following API methods in the webapp globally:
createSourceDefinition()
=>createCustomSourceDefinition()
createDestinationDefinition()
=>createCustomDestinationDefinition()
updateDestinationDefinition()
=>updateCustomDestinationDefinition()
updateSourceDefinition()
=>updateCustomSourceDefinition()
While 1. and 2. were correct, 3. and 4. were causing OSS users to no longer be able to update connectors that are not custom.
This resulted in an oncall issue. A targeted revert PR was introduced (PR 19627) that reverted all 4 methods above. This means:
Relates to #9652
The text was updated successfully, but these errors were encountered: