forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement webhook operation in the sync workflow (airbytehq#18022)
Implements the webhook operation as part of the sync workflow. - Introduces the new activity implementation - Updates the various interfaces that pass input to get the relevant configs to the sync workflow - Hooks the new activity into the sync workflow - Passes the webhook configs along into the sync workflow job
- Loading branch information
1 parent
48b3265
commit 703d72d
Showing
22 changed files
with
418 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
airbyte-config/config-models/src/main/resources/types/OperatorWebhookInput.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
"$schema": http://json-schema.org/draft-07/schema# | ||
"$id": https://github.com/airbytehq/airbyte/blob/master/airbyte-config/models/src/main/resources/types/OperatorWebhookInput.yaml | ||
title: OperatorWebhookInput | ||
description: Execution input for a webhook operation | ||
type: object | ||
required: | ||
- executionUrl | ||
- webhookConfigId | ||
properties: | ||
executionUrl: | ||
description: URL to invoke the webhook via POST. | ||
type: string | ||
executionBody: | ||
description: Message body to be POSTed. | ||
type: string | ||
webhookConfigId: | ||
description: An id used to index into the workspaceWebhookConfigs, which has a list of webhook configs. | ||
type: string | ||
format: uuid | ||
workspaceWebhookConfigs: | ||
description: Webhook configs for this workspace. Must conform to WebhookOperationConfigs.yaml; any secrets must be hydrated before use. | ||
type: object | ||
existingJavaType: com.fasterxml.jackson.databind.JsonNode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,6 @@ properties: | |
required: | ||
- id | ||
- name | ||
- authToken | ||
properties: | ||
id: | ||
type: string | ||
|
24 changes: 24 additions & 0 deletions
24
airbyte-config/config-models/src/main/resources/types/WebhookOperationSummary.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
"$schema": http://json-schema.org/draft-07/schema# | ||
"$id": https://github.com/airbytehq/airbyte/blob/master/airbyte-config/models/src/main/resources/types/WebhookOperationSummary.yaml | ||
title: WebhookOperationSummary | ||
description: information output by syncs for which at least one webhook invocation step was performed | ||
type: object | ||
required: | ||
- startTime | ||
- endTime | ||
additionalProperties: false | ||
properties: | ||
successes: | ||
type: array | ||
description: List of webhook config ids that were successfully executed. | ||
items: | ||
type: string | ||
format: uuid | ||
failures: | ||
type: array | ||
# TODO(mfsiega-airbyte): include failure reason once possible. | ||
description: List of webhook config ids that failed. | ||
items: | ||
type: string | ||
format: uuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.