Skip to content
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

Source Iterable: update to use latest version of CDK #3378

Merged
merged 35 commits into from
May 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b3893c4
Requirements updated to CDK.
htrueman May 13, 2021
99c7ac2
Bugfix: BufferedStreamConsumer. (#3387)
davinchia May 13, 2021
8e4e252
main_dev.py renamed to main.py
htrueman May 13, 2021
d44fc16
Source Stripe: Add Acceptance Tests to Stripe Connector (#3367)
yevhenii-ldv May 13, 2021
70ad984
Legacy lib references removed
htrueman May 13, 2021
3be2a6b
FB Marketing source - lookback window logic not functioning correctly
vitaliizazmic May 13, 2021
0df5317
Stop formatting python with spotless (#3388)
cgardens May 14, 2021
9b3b692
add test that migration output schema same as source schema (#3356)
cgardens May 14, 2021
ea1d4f3
Add updated architecture diagram to high level docs. (#3399)
avaidyanatha May 14, 2021
fbbd250
Correct GA readme error. (#3407)
davinchia May 14, 2021
e4bf284
make shopify more resilient to timeouts (#3409)
jrhizor May 14, 2021
a819f38
Update migration schema to include recent changes to the StandardSync…
davinchia May 14, 2021
9460cb4
Update all of Pydantic to 1.6.2 per Dependabot. (#3408)
davinchia May 14, 2021
8d0249b
Docker ignore update. Fix setup.py
htrueman May 14, 2021
fdfb835
fixing ONLY problematic fields in freshdesk JSON schemas (#3376)
vovavovavovavova May 14, 2021
ada39b7
bump airbyte-webapp version (#2266)
jrhizor May 14, 2021
576d932
Add a CDK speedrun tutorial doc (#3403)
avaidyanatha May 14, 2021
6ffada8
Add Rust as a connector specific dependency to source-file (#3426)
avaidyanatha May 15, 2021
47878c6
API update to latest airbyte-cdk version
htrueman May 16, 2021
18c1d6e
Add section Deploy Local on Windows (#3425)
marcosmarxm May 16, 2021
a18b0e8
GitBook: [master] 161 pages and 75 assets modified
May 16, 2021
1f0c3c7
Display icons (#3140)
jamakase May 17, 2021
3f31a30
Merge remote-tracking branch 'origin/master' into htrueman/source-ite…
htrueman May 17, 2021
a67c769
MS SQL Server Destination implementation
masonwheeler May 17, 2021
083aebc
Workflow to handle operations (custom transformation) (#3379)
ChristopheDuong May 17, 2021
6beb4eb
add npm install before all npm run generates' (#3442)
sherifnada May 17, 2021
42ecf1f
restart containers if they fail automatically (#3423)
jrhizor May 17, 2021
5f4485a
Update link for contribution scheduling (#3443)
michel-tricot May 17, 2021
2e35fa4
Address issue with icon in onboarding (#3437)
jamakase May 17, 2021
137845a
rename toy connector tutorial to "Build a connector the hard way" (#…
sherifnada May 17, 2021
1e8fa3a
Upload test reports (from integration test slash commands) as GitHub …
ChristopheDuong May 17, 2021
d2ce1d5
Fixing SqlServerOperations.java (#3454)
masonwheeler May 17, 2021
0c11b27
Add redirect to cdk tutorial page (#3456)
marcosmarxm May 18, 2021
cb8eb7f
Merge remote-tracking branch 'origin/master' into htrueman/source-ite…
htrueman May 18, 2021
d626ac4
Merge branch 'htrueman/source-iterable-update-to-cdk'
htrueman May 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ serialize =

[bumpversion:file:.env]

[bumpversion:file:airbyte-webapp/package.json]

[bumpversion:file:airbyte-webapp/package-lock.json]

[bumpversion:file:docs/tutorials/upgrading-airbyte.md]

[bumpversion:file:kube/overlays/stable/.env]
Expand Down
4 changes: 3 additions & 1 deletion .gitbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ redirects:
tutorials/zoom-activity-dashboard: ./examples/zoom-activity-dashboard.md
tutorials/slack-history: ./examples/slack-history.md
tutorials/beginners-guide-to-catalog: ./tutorials/tutorials/beginners-guide-to-catalog.md
tutorials/toy-connector: ./tutorials/tutorials/toy-connector.md
tutorials/toy-connector: ./tutorials/tutorials/build-a-connector-the-hard-way.md
tutorials/build-a-connector-the-hard-way: ./tutorials/tutorials/build-a-connector-the-hard-way.md
tutorials/adding-incremental-sync: ./tutorials/tutorials/adding-incremental-sync.md
tutorials/building-a-python-source: ./tutorials/tutorials/building-a-python-source.md
tutorials/transformations-with-sql: ./tutorials/transformation-and-normalization/transformations-with-sql.md
tutorials/transformations-with-dbt: ./tutorials/transformation-and-normalization/transformations-with-dbt.md
contributing-to-airbyte/cdk-tutorial-alpha: ./contributing-to-airbyte/python/README.md
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ jobs:
python-version: '3.7'

- name: Build Core Docker Images and Run Tests
run: CORE_ONLY=true ./gradlew --no-daemon format composeBuild test -x :airbyte-webapp:test --scan
run: CORE_ONLY=true ./gradlew --no-daemon composeBuild test -x :airbyte-webapp:test --scan
env:
GIT_REVISION: ${{ github.sha }}
CORE_ONLY: true
Expand Down Expand Up @@ -315,7 +315,7 @@ jobs:
# run: sudo apt-get install socat
#
# - name: Build Core Docker Images and Run Tests
# run: CORE_ONLY=true ./gradlew --no-daemon format composeBuild test -x :airbyte-webapp:test --scan
# run: CORE_ONLY=true ./gradlew --no-daemon composeBuild test -x :airbyte-webapp:test --scan
# env:
# GIT_REVISION: ${{ github.sha }}
# CORE_ONLY: true
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
SOURCE_MARKETO_SINGER_INTEGRATION_TEST_CONFIG: ${{ secrets.SOURCE_MARKETO_SINGER_INTEGRATION_TEST_CONFIG }}
SOURCE_RECURLY_INTEGRATION_TEST_CREDS: ${{ secrets.SOURCE_RECURLY_INTEGRATION_TEST_CREDS }}
STRIPE_INTEGRATION_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_TEST_CREDS }}
STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS }}
TEMPO_INTEGRATION_TEST_CREDS: ${{ secrets.TEMPO_INTEGRATION_TEST_CREDS }}
TWILIO_TEST_CREDS: ${{ secrets.TWILIO_TEST_CREDS }}
ZENDESK_CHAT_INTEGRATION_TEST_CREDS: ${{ secrets.ZENDESK_CHAT_INTEGRATION_TEST_CREDS }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
SOURCE_MARKETO_SINGER_INTEGRATION_TEST_CONFIG: ${{ secrets.SOURCE_MARKETO_SINGER_INTEGRATION_TEST_CONFIG }}
SOURCE_RECURLY_INTEGRATION_TEST_CREDS: ${{ secrets.SOURCE_RECURLY_INTEGRATION_TEST_CREDS }}
STRIPE_INTEGRATION_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_TEST_CREDS }}
STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS }}
TEMPO_INTEGRATION_TEST_CREDS: ${{ secrets.TEMPO_INTEGRATION_TEST_CREDS }}
TWILIO_TEST_CREDS: ${{ secrets.TWILIO_TEST_CREDS }}
ZENDESK_CHAT_INTEGRATION_TEST_CREDS: ${{ secrets.ZENDESK_CHAT_INTEGRATION_TEST_CREDS }}
Expand All @@ -100,6 +101,13 @@ jobs:
ACTION_RUN_ID: ${{github.run_id}}
# Oracle expects this variable to be set. Although usually present, this is not set by default on Github virtual runners.
TZ: UTC
- name: Archive test reports artifacts
if: github.event.inputs.comment-id && !success()
uses: actions/upload-artifact@v2
with:
name: test-reports
path: |
**/${{ github.event.inputs.connector }}/build/reports/tests/**/**
- name: Report Status
if: github.ref == 'refs/heads/master' && always()
run: ./tools/status/report.sh ${{ github.event.inputs.connector }} ${{github.repository}} ${{github.run_id}} ${{steps.test.outcome}}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Here is a [step-by-step guide](https://github.com/airbytehq/airbyte/tree/e378d40

We love contributions to Airbyte, big or small.

See our [Contributing guide](docs/contributing-to-airbyte/) on how to get started. Not sure where to start? We’ve listed some [good first issues](https://github.com/airbytehq/airbyte/labels/good%20first%20issue) to start with. You can also [book a free, no-pressure pairing session](https://calendly.com/michel-airbyte/contribution-1-1) with one of our core contributors.
See our [Contributing guide](docs/contributing-to-airbyte/) on how to get started. Not sure where to start? We’ve listed some [good first issues](https://github.com/airbytehq/airbyte/labels/good%20first%20issue) to start with. You can also [book a free, no-pressure pairing session](https://calendly.com/d/nw9f-6xfj/connector-development) with one of our core contributors.

**Note that you are able to create connectors using the language you want, as Airbyte connections run as Docker containers.**

Expand Down
2 changes: 2 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,8 @@ components:
properties:
gitRepoUrl:
type: string
gitRepoBranch:
type: string
dockerImage:
type: string
dbtArguments:
Expand Down
1 change: 1 addition & 0 deletions airbyte-cdk/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This document is a general introduction to the CDK. Readers should have basic fa
Generate an empty connector using the code generator. First clone the Airbyte repository then from the repository root run
```
cd airbyte-integrations/connector-templates/generator
npm install
npm run generate
```

Expand Down
2 changes: 2 additions & 0 deletions airbyte-cdk/python/airbyte_cdk/connector.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import json
Expand Down
2 changes: 2 additions & 0 deletions airbyte-cdk/python/airbyte_cdk/destinations/destination.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


from airbyte_cdk.connector import Connector
Expand Down
2 changes: 2 additions & 0 deletions airbyte-cdk/python/airbyte_cdk/entrypoint.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import argparse
Expand Down
2 changes: 2 additions & 0 deletions airbyte-cdk/python/airbyte_cdk/logger.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import traceback
Expand Down
4 changes: 4 additions & 0 deletions airbyte-cdk/python/airbyte_cdk/models/airbyte_protocol.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,7 +20,10 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#

# generated by datamodel-codegen:
# filename: airbyte_protocol.yaml

from __future__ import annotations

Expand Down
6 changes: 4 additions & 2 deletions airbyte-cdk/python/airbyte_cdk/sources/abstract_source.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import copy
Expand Down Expand Up @@ -81,9 +83,9 @@ def check(self, logger: AirbyteLogger, config: Mapping[str, Any]) -> AirbyteConn
try:
check_succeeded, error = self.check_connection(logger, config)
if not check_succeeded:
return AirbyteConnectionStatus(status=Status.FAILED, message=str(error))
return AirbyteConnectionStatus(status=Status.FAILED, message=repr(error))
except Exception as e:
return AirbyteConnectionStatus(status=Status.FAILED, message=str(e))
return AirbyteConnectionStatus(status=Status.FAILED, message=repr(e))

return AirbyteConnectionStatus(status=Status.SUCCEEDED)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import copy
Expand Down
2 changes: 2 additions & 0 deletions airbyte-cdk/python/airbyte_cdk/sources/deprecated/client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import inspect
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import json
Expand Down
2 changes: 2 additions & 0 deletions airbyte-cdk/python/airbyte_cdk/sources/singer/source.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import json
Expand Down
2 changes: 2 additions & 0 deletions airbyte-cdk/python/airbyte_cdk/sources/source.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import json
Expand Down
2 changes: 2 additions & 0 deletions airbyte-cdk/python/airbyte_cdk/sources/streams/core.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import inspect
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


from abc import ABC, abstractmethod
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


from typing import Any, List, Mapping, MutableMapping, Tuple
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


from typing import Any, Mapping
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


from typing import Union
Expand Down
2 changes: 2 additions & 0 deletions airbyte-cdk/python/airbyte_cdk/sources/streams/http/http.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


from abc import ABC, abstractmethod
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import sys
Expand Down
2 changes: 2 additions & 0 deletions airbyte-cdk/python/airbyte_cdk/sources/utils/casing.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import re
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


from airbyte_cdk.models import AirbyteCatalog, SyncMode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
Expand All @@ -19,6 +20,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import json
Expand Down
Loading