Skip to content

Commit

Permalink
Revert "Feat: first cut to allow naming for connections (#10889)" (#1…
Browse files Browse the repository at this point in the history
…1152)

This reverts commit 6225eec.
  • Loading branch information
harshithmullapudi authored Mar 15, 2022
1 parent 6225eec commit 0afc31b
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 145 deletions.
6 changes: 0 additions & 6 deletions airbyte-api/src/main/openapi/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2710,9 +2710,6 @@ components:
description: Used when namespaceDefinition is 'customformat'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'.
default: null
example: "${SOURCE_NAMESPACE}"
name:
type: string
description: Name that will be set to this connection
prefix:
type: string
description: Prefix that will be prepended to the name of each stream when it is written to the destination.
Expand All @@ -2735,9 +2732,6 @@ components:
- syncCatalog
- status
properties:
name:
type: string
description: Name that will be set to the connection
connectionId:
$ref: "#/components/schemas/ConnectionId"
namespaceDefinition:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void testBootloaderAppBlankDb() throws Exception {
mockedConfigs.getConfigDatabaseUrl())
.getAndInitialize();
val configsMigrator = new ConfigsDatabaseMigrator(configDatabase, this.getClass().getName());
assertEquals("0.35.49.001", configsMigrator.getLatestMigration().getVersion().getVersion());
assertEquals("0.35.46.001", configsMigrator.getLatestMigration().getVersion().getVersion());

val jobsPersistence = new DefaultJobPersistence(jobDatabase);
assertEquals(version, jobsPersistence.getVersion().get());
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public static io.airbyte.config.StandardSync connectionUpdateToInternal(final Co
.withNamespaceDefinition(Enums.convertTo(update.getNamespaceDefinition(), NamespaceDefinitionType.class))
.withNamespaceFormat(update.getNamespaceFormat())
.withPrefix(update.getPrefix())
.withName(update.getName())
.withOperationIds(update.getOperationIds())
.withCatalog(CatalogConverter.toProtocol(update.getSyncCatalog()))
.withStatus(toPersistenceStatus(update.getStatus()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ protected static ConnectionUpdate toConnectionUpdate(final WebBackendConnectionU
connectionUpdate.namespaceDefinition(webBackendConnectionUpdate.getNamespaceDefinition());
connectionUpdate.namespaceFormat(webBackendConnectionUpdate.getNamespaceFormat());
connectionUpdate.prefix(webBackendConnectionUpdate.getPrefix());
connectionUpdate.name(webBackendConnectionUpdate.getName());
connectionUpdate.operationIds(operationIds);
connectionUpdate.syncCatalog(webBackendConnectionUpdate.getSyncCatalog());
connectionUpdate.schedule(webBackendConnectionUpdate.getSchedule());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ void testUpdateConnection(boolean useNewScheduler) throws JsonValidationExceptio
.status(ConnectionStatus.INACTIVE)
.schedule(null)
.syncCatalog(catalog)
.name(standardSync.getName())
.resourceRequirements(new ResourceRequirements()
.cpuLimit(ConnectionHelpers.TESTING_RESOURCE_REQUIREMENTS.getCpuLimit())
.cpuRequest(ConnectionHelpers.TESTING_RESOURCE_REQUIREMENTS.getCpuRequest())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ public void testToConnectionUpdate() throws IOException {
.operationIds(List.of(newOperationId))
.status(ConnectionStatus.INACTIVE)
.schedule(schedule)
.name(standardSync.getName())
.syncCatalog(catalog)
.withRefreshedCatalog(false);

Expand All @@ -394,7 +393,6 @@ public void testToConnectionUpdate() throws IOException {
.operationIds(operationIds)
.status(ConnectionStatus.INACTIVE)
.schedule(schedule)
.name(standardSync.getName())
.syncCatalog(catalog);

final ConnectionUpdate actual = WebBackendConnectionsHandler.toConnectionUpdate(input, operationIds);
Expand Down Expand Up @@ -425,7 +423,7 @@ public void testForConnectionCreateCompleteness() {
public void testForConnectionUpdateCompleteness() {
final Set<String> handledMethods =
Set.of("schedule", "connectionId", "syncCatalog", "namespaceDefinition", "namespaceFormat", "prefix", "status", "operationIds",
"resourceRequirements", "name");
"resourceRequirements");

final Set<String> methods = Arrays.stream(ConnectionUpdate.class.getMethods())
.filter(method -> method.getReturnType() == ConnectionUpdate.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public static StandardSync updateConnectionObject(final WorkspaceHelper workspac
.withNamespaceDefinition(Enums.convertTo(update.getNamespaceDefinition(), NamespaceDefinitionType.class))
.withNamespaceFormat(update.getNamespaceFormat())
.withPrefix(update.getPrefix())
.withName(update.getName())
.withOperationIds(update.getOperationIds())
.withCatalog(update.getCatalog())
.withStatus(update.getStatus());
Expand Down
4 changes: 1 addition & 3 deletions docs/reference/api/generated-api-html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8694,7 +8694,6 @@ <h3><a name="ConnectionUpdate"><code>ConnectionUpdate</code> - </a> <a class="up
<div class="param">connectionId </div><div class="param-desc"><span class="param-type"><a href="#UUID">UUID</a></span> format: uuid</div>
<div class="param">namespaceDefinition (optional)</div><div class="param-desc"><span class="param-type"><a href="#NamespaceDefinitionType">NamespaceDefinitionType</a></span> </div>
<div class="param">namespaceFormat (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> Used when namespaceDefinition is 'customformat'. If blank then behaves like namespaceDefinition = 'destination'. If &quot;${SOURCE_NAMESPACE}&quot; then behaves like namespaceDefinition = 'source'. </div>
<div class="param">name (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> Name that will be set to this connection </div>
<div class="param">prefix (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> Prefix that will be prepended to the name of each stream when it is written to the destination. </div>
<div class="param">operationIds (optional)</div><div class="param-desc"><span class="param-type"><a href="#UUID">array[UUID]</a></span> format: uuid</div>
<div class="param">syncCatalog </div><div class="param-desc"><span class="param-type"><a href="#AirbyteCatalog">AirbyteCatalog</a></span> </div>
Expand Down Expand Up @@ -9524,8 +9523,7 @@ <h3><a name="WebBackendConnectionSearch"><code>WebBackendConnectionSearch</code>
<h3><a name="WebBackendConnectionUpdate"><code>WebBackendConnectionUpdate</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'></div>
<div class="field-items">
<div class="param">name (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> Name that will be set to the connection </div>
<div class="param">connectionId </div><div class="param-desc"><span class="param-type"><a href="#UUID">UUID</a></span> format: uuid</div>
<div class="param">connectionId </div><div class="param-desc"><span class="param-type"><a href="#UUID">UUID</a></span> format: uuid</div>
<div class="param">namespaceDefinition (optional)</div><div class="param-desc"><span class="param-type"><a href="#NamespaceDefinitionType">NamespaceDefinitionType</a></span> </div>
<div class="param">namespaceFormat (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> Used when namespaceDefinition is 'customformat'. If blank then behaves like namespaceDefinition = 'destination'. If &quot;${SOURCE_NAMESPACE}&quot; then behaves like namespaceDefinition = 'source'. </div>
<div class="param">prefix (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> Prefix that will be prepended to the name of each stream when it is written to the destination. </div>
Expand Down

0 comments on commit 0afc31b

Please sign in to comment.