-
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
octavia-cli: Manage custom definitions with octavia #15058
Conversation
Created a source_definition that is able to be applied with octavia apply
Apply and import are working for source definitions (which is what I needed for now). I am going to implement destination, generation logic, import logic for source with references, etc next |
@marcelopio do you need any assistance here? |
Yeah, I have some doubts how generate and import should work after this. A source can now point to a source definition id or a file that will contain the definition. My doubt is, should we import all source definitions, even non custom? Because that could be useful so we can upgrade a version of a conector with octavia (or downgrade). If we go that way, when generating, maybe we should also generate the source definition, even for non custom connectors |
Sorry the missing reply here @marcelopio |
Hello 👋, first thank you for this amazing contribution. We really appreciate the effort you've made to improve the project. If you have any questions feel free to send me a message in Slack! |
@@ -453,6 +456,7 @@ paths: | |||
application/json: | |||
schema: | |||
$ref: "#/components/schemas/CustomSourceDefinitionUpdate" | |||
required: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution. In #19670 we are moving away from this function, and will use updateSourceDefinition to replace this.
A tl;dr version of the linked ticket is:
- We are moving away updateCustomSourceDefinition and going to use updateSourceDefinition (same for destination)
- We are moving away deleteCustomSourceDefinition and going to use deleteSourceDefinition (same for destination)
- We are moving away from SourceDefinitionCreate and going to use CustomSourceDefinitionCreate (same for destination). (Note in this bullet point we are actually going to use
custom
in API because created definitions are always going to be custom connectors, while in the first 2 we are moving away fromcustom
so both custom connector or public connector share the same path)
Hello 👋:skin-tone-2: and thank you for your contribution! Airbyte has instituted a code freeze between 19 and 30 December, to make sure there are no disruptions during the holidays. If you have any questions or need further clarification, please don't hesitate to ping via Slack. |
Per previous comment the APIs were outdated and not used anymore. Please open a new PR if you are still interested to make the change, thanks again for your contribution! |
What
Implements #14787
How
Basically just copy the implementations for the source/destination and make them available pro source/destination definitions
Recommended reading order
x.java
y.python
🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changesTests
Unit
Put your unit tests output here.
Integration
Put your integration tests output here.
Acceptance
Put your acceptance tests output here.