Skip to content

Commit

Permalink
Merge branch 'master' into arymkhan/fix-hubspot-key-error-exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Augan93 committed Feb 7, 2022
2 parents 6ab788b + b447bb5 commit 10482b2
Show file tree
Hide file tree
Showing 127 changed files with 3,306 additions and 537 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.35.16-alpha
current_version = 0.35.18-alpha
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-[a-z]+)?
Expand Down
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


### SHARED ###
VERSION=0.35.16-alpha
VERSION=0.35.18-alpha

# When using the airbyte-db via default docker image
CONFIG_ROOT=/data
Expand Down Expand Up @@ -48,7 +48,7 @@ JOBS_DATABASE_MINIMUM_FLYWAY_MIGRATION_VERSION=0.29.15.001
CONFIG_DATABASE_USER=
CONFIG_DATABASE_PASSWORD=
CONFIG_DATABASE_URL=
CONFIGS_DATABASE_MINIMUM_FLYWAY_MIGRATION_VERSION=0.35.1.001
CONFIGS_DATABASE_MINIMUM_FLYWAY_MIGRATION_VERSION=0.35.15.001

### AIRBYTE SERVICES ###
TEMPORAL_HOST=airbyte-temporal:7233
Expand Down
70 changes: 70 additions & 0 deletions airbyte-api/src/main/openapi/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2110,6 +2110,12 @@ components:
format: uri
icon:
type: string
releaseStage:
$ref: "#/components/schemas/ReleaseStage"
releaseDate:
description: The date when this connector was first released, in yyyy-mm-dd format.
type: string
format: date
SourceDefinitionReadList:
type: object
required:
Expand Down Expand Up @@ -2373,6 +2379,12 @@ components:
format: uri
icon:
type: string
releaseStage:
$ref: "#/components/schemas/ReleaseStage"
releaseDate:
description: The date when this connector was first released, in yyyy-mm-dd format.
type: string
format: date
DestinationDefinitionReadList:
type: object
required:
Expand Down Expand Up @@ -2512,6 +2524,14 @@ components:
type: string
destinationName:
type: string
# SOURCE / DESTINATION RELEASE STAGE ENUM
ReleaseStage:
type: string
enum:
- alpha
- beta
- generally_available
- custom
# CONNECTION
ConnectionId:
type: string
Expand Down Expand Up @@ -3204,6 +3224,8 @@ components:
type: array
items:
$ref: "#/components/schemas/AttemptStreamStats"
failureSummary:
$ref: "#/components/schemas/AttemptFailureSummary"
AttemptStats:
type: object
properties:
Expand All @@ -3229,6 +3251,54 @@ components:
type: string
stats:
$ref: "#/components/schemas/AttemptStats"
AttemptFailureSummary:
type: object
required:
- failures
properties:
failures:
type: array
items:
$ref: "#/components/schemas/AttemptFailureReason"
partialSuccess:
description: True if the number of committed records for this attempt was greater than 0. False if 0 records were committed. If not set, the number of committed records is unknown.
type: boolean
AttemptFailureReason:
type: object
required:
- timestamp
properties:
failureOrigin:
$ref: "#/components/schemas/AttemptFailureOrigin"
failureType:
$ref: "#/components/schemas/AttemptFailureType"
externalMessage:
type: string
stacktrace:
type: string
retryable:
description: True if it is known that retrying may succeed, e.g. for a transient failure. False if it is known that a retry will not succeed, e.g. for a configuration issue. If not set, retryable status is not well known.
type: boolean
timestamp:
type: integer
format: int64
AttemptFailureOrigin:
description: Indicates where the error originated. If not set, the origin of error is not well known.
type: string
enum:
- source
- destination
- replication
- persistence
- normalization
- dbt
AttemptFailureType:
description: Categorizes well known errors into types for programmatic handling. If not set, the type of error is not well known.
type: string
enum:
- config_error
- system_error
- manual_cancellation
AttemptStatus:
type: string
enum:
Expand Down
4 changes: 2 additions & 2 deletions airbyte-bootloader/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ ENV APPLICATION airbyte-bootloader

WORKDIR /app

ADD bin/${APPLICATION}-0.35.16-alpha.tar /app
ADD bin/${APPLICATION}-0.35.18-alpha.tar /app

ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-0.35.16-alpha/bin/${APPLICATION}"]
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-0.35.18-alpha/bin/${APPLICATION}"]
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.3.001", configsMigrator.getLatestMigration().getVersion().getVersion());
assertEquals("0.35.15.001", configsMigrator.getLatestMigration().getVersion().getVersion());

val jobsPersistence = new DefaultJobPersistence(jobDatabase);
assertEquals(version, jobsPersistence.getVersion().get());
Expand Down
27 changes: 8 additions & 19 deletions airbyte-commons/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,17 @@
<!--Logs the timestamp and log_source/application name in the beginning of the line if it exists with a > separator, and then always the rest of the line.-->
<Property name="simple-pattern">%d{yyyy-MM-dd HH:mm:ss}{GMT+0}%replace{ %X{log_source}}{^ -}{} > %replace{%m}{apikey=[\w\-]*}{apikey=*****}%n</Property>

<!--
Note the $${sys:S3_LOG_BUCKET:-${env:S3_LOG_BUCKET}} pattern below.
This means that it uses the system property if it exists.
Otherwise it falls back to the environment variable.
This is useful if you want to override the environment variables at runtime (or if you don't have
access to the necessary information at the point where you are setting environment variables).
Please update configuring-airbyte.md if the names of any of the below variables change.
-->

<!-- Always log INFO by default. -->
<Property name="log-level">$${sys:LOG_LEVEL:-${env:LOG_LEVEL:-INFO}}</Property>
<Property name="log-level">${sys:LOG_LEVEL:-${env:LOG_LEVEL:-INFO}}</Property>

<Property name="s3-bucket">$${sys:S3_LOG_BUCKET:-${env:S3_LOG_BUCKET}}</Property>
<Property name="s3-region">$${sys:S3_LOG_BUCKET_REGION:-${env:S3_LOG_BUCKET_REGION}}</Property>
<Property name="s3-aws-key">$${sys:AWS_ACCESS_KEY_ID:-${env:AWS_ACCESS_KEY_ID}}</Property>
<Property name="s3-aws-secret">$${sys:AWS_SECRET_ACCESS_KEY:-${env:AWS_SECRET_ACCESS_KEY}}</Property>
<Property name="s3-minio-endpoint">$${sys:S3_MINIO_ENDPOINT:-${env:S3_MINIO_ENDPOINT}}</Property>
<Property name="s3-path-style-access">$${sys:S3_PATH_STYLE_ACCESS:-${env:S3_PATH_STYLE_ACCESS}}</Property>
<Property name="s3-bucket">${sys:S3_LOG_BUCKET:-${env:S3_LOG_BUCKET}}</Property>
<Property name="s3-region">${sys:S3_LOG_BUCKET_REGION:-${env:S3_LOG_BUCKET_REGION}}</Property>
<Property name="s3-aws-key">${sys:AWS_ACCESS_KEY_ID:-${env:AWS_ACCESS_KEY_ID}}</Property>
<Property name="s3-aws-secret">${sys:AWS_SECRET_ACCESS_KEY:-${env:AWS_SECRET_ACCESS_KEY}}</Property>
<Property name="s3-minio-endpoint">${sys:S3_MINIO_ENDPOINT:-${env:S3_MINIO_ENDPOINT}}</Property>
<Property name="s3-path-style-access">${sys:S3_PATH_STYLE_ACCESS:-${env:S3_PATH_STYLE_ACCESS}}</Property>

<Property name="gcs-log-bucket">$${sys:GCS_LOG_BUCKET:-${env:GCS_LOG_BUCKET}}</Property>
<Property name="gcs-log-bucket">${sys:GCS_LOG_BUCKET:-${env:GCS_LOG_BUCKET}}</Property>
</Properties>

<Appenders>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package io.airbyte.config.init;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.BooleanNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.collect.ImmutableMap;
import com.google.common.io.Resources;
Expand Down Expand Up @@ -54,12 +55,18 @@ private YamlSeedConfigPersistence(final Class<?> seedResourceClass) throws IOExc
final Map<String, JsonNode> sourceDefinitionConfigs = getConfigs(seedResourceClass, SeedType.STANDARD_SOURCE_DEFINITION);
final Map<String, JsonNode> sourceSpecConfigs = getConfigs(seedResourceClass, SeedType.SOURCE_SPEC);
final Map<String, JsonNode> fullSourceDefinitionConfigs = sourceDefinitionConfigs.entrySet().stream()
.collect(Collectors.toMap(Entry::getKey, e -> mergeSpecIntoDefinition(e.getValue(), sourceSpecConfigs)));
.collect(Collectors.toMap(Entry::getKey, e -> {
final JsonNode withTombstone = addMissingTombstoneField(e.getValue());
return mergeSpecIntoDefinition(withTombstone, sourceSpecConfigs);
}));

final Map<String, JsonNode> destinationDefinitionConfigs = getConfigs(seedResourceClass, SeedType.STANDARD_DESTINATION_DEFINITION);
final Map<String, JsonNode> destinationSpecConfigs = getConfigs(seedResourceClass, SeedType.DESTINATION_SPEC);
final Map<String, JsonNode> fullDestinationDefinitionConfigs = destinationDefinitionConfigs.entrySet().stream()
.collect(Collectors.toMap(Entry::getKey, e -> mergeSpecIntoDefinition(e.getValue(), destinationSpecConfigs)));
.collect(Collectors.toMap(Entry::getKey, e -> {
final JsonNode withTombstone = addMissingTombstoneField(e.getValue());
return mergeSpecIntoDefinition(withTombstone, destinationSpecConfigs);
}));

this.allSeedConfigs = ImmutableMap.<SeedType, Map<String, JsonNode>>builder()
.put(SeedType.STANDARD_SOURCE_DEFINITION, fullSourceDefinitionConfigs)
Expand All @@ -86,7 +93,16 @@ private JsonNode mergeSpecIntoDefinition(final JsonNode definitionJson, final Ma
return definitionJson;
}

private JsonNode addMissingTombstoneField(final JsonNode definitionJson) {
final JsonNode currTombstone = definitionJson.get("tombstone");
if (currTombstone == null || currTombstone.isNull()) {
((ObjectNode) definitionJson).set("tombstone", BooleanNode.FALSE);
}
return definitionJson;
}

@SuppressWarnings("UnstableApiUsage")

private static Map<String, JsonNode> getConfigs(final Class<?> seedDefinitionsResourceClass, final SeedType seedType) throws IOException {
final URL url = Resources.getResource(seedDefinitionsResourceClass, seedType.getResourcePath());
final String yamlString = Resources.toString(url, StandardCharsets.UTF_8);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sourceDefinitionId": "36c891d9-4bd9-43ac-bad2-10e12756272c",
"name": "HubSpot",
"dockerRepository": "airbyte/source-hubspot",
"dockerImageTag": "0.1.37",
"dockerImageTag": "0.1.38",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/hubspot",
"icon": "hubspot.svg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sourceDefinitionId": "374ebc65-6636-4ea0-925c-7d35999a8ffc",
"name": "Smartsheets",
"dockerRepository": "airbyte/source-smartsheets",
"dockerImageTag": "0.1.7",
"dockerImageTag": "0.1.8",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/smartsheets",
"icon": "smartsheet.svg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sourceDefinitionId": "b117307c-14b6-41aa-9422-947e34922962",
"name": "Salesforce",
"dockerRepository": "airbyte/source-salesforce",
"dockerImageTag": "0.1.20",
"dockerImageTag": "0.1.22",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/salesforce",
"icon": "salesforce.svg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
- name: Facebook Marketing
sourceDefinitionId: e7778cfc-e97c-4458-9ecb-b4f2bba8946c
dockerRepository: airbyte/source-facebook-marketing
dockerImageTag: 0.2.31
dockerImageTag: 0.2.32
documentationUrl: https://docs.airbyte.io/integrations/sources/facebook-marketing
icon: facebook.svg
sourceType: api
Expand Down Expand Up @@ -252,7 +252,7 @@
- name: Google Ads
sourceDefinitionId: 253487c0-2246-43ba-a21f-5116b20a2c50
dockerRepository: airbyte/source-google-ads
dockerImageTag: 0.1.24
dockerImageTag: 0.1.25
documentationUrl: https://docs.airbyte.io/integrations/sources/google-ads
icon: google-adwords.svg
sourceType: api
Expand Down Expand Up @@ -314,7 +314,7 @@
- name: HubSpot
sourceDefinitionId: 36c891d9-4bd9-43ac-bad2-10e12756272c
dockerRepository: airbyte/source-hubspot
dockerImageTag: 0.1.37
dockerImageTag: 0.1.38
documentationUrl: https://docs.airbyte.io/integrations/sources/hubspot
icon: hubspot.svg
sourceType: api
Expand Down Expand Up @@ -648,7 +648,7 @@
- name: Salesforce
sourceDefinitionId: b117307c-14b6-41aa-9422-947e34922962
dockerRepository: airbyte/source-salesforce
dockerImageTag: 0.1.21
dockerImageTag: 0.1.22
documentationUrl: https://docs.airbyte.io/integrations/sources/salesforce
icon: salesforce.svg
sourceType: api
Expand Down Expand Up @@ -690,7 +690,7 @@
- name: Smartsheets
sourceDefinitionId: 374ebc65-6636-4ea0-925c-7d35999a8ffc
dockerRepository: airbyte/source-smartsheets
dockerImageTag: 0.1.7
dockerImageTag: 0.1.8
documentationUrl: https://docs.airbyte.io/integrations/sources/smartsheets
icon: smartsheet.svg
sourceType: api
Expand Down
37 changes: 31 additions & 6 deletions airbyte-config/init/src/main/resources/seed/source_specs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-facebook-marketing:0.2.31"
- dockerImage: "airbyte/source-facebook-marketing:0.2.32"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/facebook-marketing"
changelogUrl: "https://docs.airbyte.io/integrations/sources/facebook-marketing"
Expand Down Expand Up @@ -2294,7 +2294,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-google-ads:0.1.24"
- dockerImage: "airbyte/source-google-ads:0.1.25"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/google-ads"
connectionSpecification:
Expand Down Expand Up @@ -3068,7 +3068,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-hubspot:0.1.37"
- dockerImage: "airbyte/source-hubspot:0.1.38"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/hubspot"
connectionSpecification:
Expand Down Expand Up @@ -6801,7 +6801,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-salesforce:0.1.21"
- dockerImage: "airbyte/source-salesforce:0.1.22"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/salesforce"
connectionSpecification:
Expand Down Expand Up @@ -7303,7 +7303,7 @@
oauthFlowOutputParameters:
- - "access_token"
- - "refresh_token"
- dockerImage: "airbyte/source-smartsheets:0.1.7"
- dockerImage: "airbyte/source-smartsheets:0.1.8"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/smartsheets"
connectionSpecification:
Expand All @@ -7313,7 +7313,7 @@
required:
- "access_token"
- "spreadsheet_id"
additionalProperties: false
additionalProperties: true
properties:
access_token:
title: "Access Token"
Expand All @@ -7328,6 +7328,31 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
advanced_auth:
auth_flow_type: "oauth2.0"
predicate_key: []
predicate_value: ""
oauth_config_specification:
complete_oauth_output_specification:
type: "object"
additionalProperties: false
properties:
access_token:
type: "string"
path_in_connector_config:
- "access_token"
complete_oauth_server_input_specification:
type: "object"
additionalProperties: false
properties:
client_id:
type: "string"
client_secret:
type: "string"
complete_oauth_server_output_specification:
type: "object"
additionalProperties: false
properties: {}
- dockerImage: "airbyte/source-snapchat-marketing:0.1.4"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/snapchat-marketing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public interface Configs {
/**
* Get the duration in second between 2 activity attempts
*/
int getDelayBetweenActivityAttemps();
int getDelayBetweenActivityAttempts();

/**
* Get number of attempts of the non long running activities
Expand Down
Loading

0 comments on commit 10482b2

Please sign in to comment.