Skip to content

Commit

Permalink
Add Airbyte Entrypoint to Intercom (#4524)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmarxm committed Jul 3, 2021
1 parent 637d939 commit 78acd7e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:
publish_image:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Search for valid connector name format
id: regex
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:
integration_test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Search for valid connector name format
id: regex
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sourceDefinitionId": "d8313939-3782-41b0-be29-b3ca20d8dd3a",
"name": "Intercom",
"dockerRepository": "airbyte/source-intercom-singer",
"dockerImageTag": "0.2.2",
"dockerImageTag": "0.2.3",
"documentationUrl": "https://hub.docker.com/r/airbyte/source-intercom-singer",
"icon": "intercom.svg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
- sourceDefinitionId: d8313939-3782-41b0-be29-b3ca20d8dd3a
name: Intercom
dockerRepository: airbyte/source-intercom-singer
dockerImageTag: 0.2.2
dockerImageTag: 0.2.3
documentationUrl: https://hub.docker.com/r/airbyte/source-intercom-singer
icon: intercom.svg
- sourceDefinitionId: 68e63de2-bb83-4c7e-93fa-a8a9051e3993
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ RUN apt-get update \
ENV CODE_PATH="source_intercom_singer"
ENV AIRBYTE_IMPL_MODULE="source_intercom_singer"
ENV AIRBYTE_IMPL_PATH="SourceIntercomSinger"
ENV AIRBYTE_ENTRYPOINT "/airbyte/base.sh"

LABEL io.airbyte.version=0.2.2
LABEL io.airbyte.version=0.2.3
LABEL io.airbyte.name=airbyte/source-intercom-singer

WORKDIR /airbyte/integration_code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,6 @@ def request_params(self, stream_state=None, next_page_token: Mapping[str, Any] =
}
return params

class DraftOrders(IncrementalShopifyStream):
data_field = "draft_orders"

def path(self, **kwargs) -> str:
return f"{self.data_field}.json"

def request_params(self, stream_state=None, next_page_token: Mapping[str, Any] = None, **kwargs) -> MutableMapping[str, Any]:
stream_state = stream_state or {}
if next_page_token:
params = {"limit": self.limit, **next_page_token}
else:
params = {"limit": self.limit, "updated_at_min": self.start_date, "since_id": stream_state.get(self.cursor_field)}
return params

class DraftOrders(IncrementalShopifyStream):
data_field = "draft_orders"
Expand Down
6 changes: 3 additions & 3 deletions resources/examples/airflow/docker-compose-superset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ x-superset-image: &superset-image apache/superset:latest-dev
x-superset-depends-on: &superset-depends-on
- db
- redis
x-superset-volumes: &superset-volumes
# /app/pythonpath_docker will be appended to the PYTHONPATH in the final container
x-superset-volumes:
&superset-volumes # /app/pythonpath_docker will be appended to the PYTHONPATH in the final container
- ./docker:/app/docker
- superset_home:/app/superset_home

Expand Down Expand Up @@ -87,4 +87,4 @@ volumes:
db_home:
external: false
redis:
external: false
external: false

0 comments on commit 78acd7e

Please sign in to comment.