-
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
add optional spec field to source and destination definitions #7254
Conversation
@@ -85,7 +85,8 @@ public void setup() throws IOException, JsonValidationException, ConfigNotFoundE | |||
.withDockerRepository("test") | |||
.withDocumentationUrl("http://doc") | |||
.withIcon("hello") | |||
.withDockerImageTag("dev"); | |||
.withDockerImageTag("dev") | |||
.withSpec(new ConnectorSpecification()); |
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.
Wasn't sure which unit test was best to update for this change; I chose this one since it was already instantiating other optional fields in the source and destination definitions.
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.
seems reasonable to me!
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.
great! looks good.
@@ -85,7 +85,8 @@ public void setup() throws IOException, JsonValidationException, ConfigNotFoundE | |||
.withDockerRepository("test") | |||
.withDocumentationUrl("http://doc") | |||
.withIcon("hello") | |||
.withDockerImageTag("dev"); | |||
.withDockerImageTag("dev") | |||
.withSpec(new ConnectorSpecification()); |
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.
seems reasonable to me!
What
Addresses issue #7134.
Adds an optional spec field to the StandardSourceDefinition and StandardDestinationDefinition classes in order to allow specs to be stored directly in the database, which in turn will allow us to remove the need to call
spec
on a connector every time we need the spec, after further changes are made in later PRs.How
Adds the optional
spec
field to the source and destination definition JSON schemas, and instantiates this new field in a unit test.Recommended reading order
airbyte-config/models/src/main/resources/types/StandardDestinationDefinition.yaml
airbyte-config/models/src/main/resources/types/StandardSourceDefinition.yaml
airbyte-server/src/test/java/io/airbyte/server/ConfigDumpImporterTest.java
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/SUMMARY.md
docs/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 changes