Skip to content

Commit

Permalink
Source Woocommerce: fix pagination and removed lookback window (airby…
Browse files Browse the repository at this point in the history
…tehq#23599)

* fix: pagination and lookback

* chore: fix newline

* bump connector version

* remove files and eof

* auto-bump connector version

---------

Co-authored-by: marcosmarxm <marcosmarxm@gmail.com>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
  • Loading branch information
3 people authored and danielduckworth committed Mar 13, 2023
1 parent e31e982 commit 907ef71
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2130,7 +2130,7 @@
- name: WooCommerce
sourceDefinitionId: 2a2552ca-9f78-4c1c-9eb7-4d0dc66d72df
dockerRepository: airbyte/source-woocommerce
dockerImageTag: 0.2.1
dockerImageTag: 0.2.2
documentationUrl: https://docs.airbyte.com/integrations/sources/woocommerce
icon: woocommerce.svg
sourceType: api
Expand Down
14 changes: 1 addition & 13 deletions airbyte-config/init/src/main/resources/seed/source_specs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16192,7 +16192,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-woocommerce:0.2.1"
- dockerImage: "airbyte/source-woocommerce:0.2.2"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/woocommerce"
connectionSpecification:
Expand Down Expand Up @@ -16233,18 +16233,6 @@
pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
format: "date"
order: 3
conversion_window_days:
type: "integer"
title: "Conversion Window"
description: "A conversion window is the period of time after an ad interaction\
\ (such as an ad click or video view) during which a conversion, such\
\ as a purchase, is recorded in Google Ads"
order: 4
minimum: 0
maximum: 1095
default: 0
examples:
- 14
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_woocommerce ./source_woocommerce
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.2.1
LABEL io.airbyte.version=0.2.2
LABEL io.airbyte.name=airbyte/source-woocommerce
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ definitions:
dates_are_gmt: "true"
date_incremental_sync:
type: DatetimeBasedCursor
lookback_window: "P{{ config.get('conversion_window_days', 0) }}D"
start_datetime:
datetime: "{{ format_datetime(config['start_date'], '%Y-%m-%dT%H:%M:%S') }}"
datetime_format: "%Y-%m-%dT%H:%M:%S"
Expand Down Expand Up @@ -48,7 +47,7 @@ definitions:
page_token_option:
type: RequestOption
inject_into: "request_parameter"
field_name: "page"
field_name: "offset"
page_size_option:
inject_into: "request_parameter"
field_name: "per_page"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,3 @@ connectionSpecification:
pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
format: date
order: 3
conversion_window_days:
type: integer
title: Conversion Window
description: A conversion window is the period of time after an ad interaction (such as an ad click or video view) during which a conversion, such as a purchase, is recorded in Google Ads
order: 4
minimum: 0
maximum: 1095
default: 0
examples:
- 14
2 changes: 1 addition & 1 deletion connectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
| **Webflow** | <img alt="Webflow icon" src="https://raw.githubusercontent.com/airbytehq/airbyte/master/airbyte-config/init/src/main/resources/icons/webflow.svg" height="30" height="30"/> | Source | airbyte/source-webflow:0.1.2 | alpha | [link](https://docs.airbyte.com/integrations/sources/webflow) | [code](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-webflow) | <small>`ef580275-d9a9-48bb-af5e-db0f5855be04`</small> |
| **Whisky Hunter** | <img alt="Whisky Hunter icon" src="https://raw.githubusercontent.com/airbytehq/airbyte/master/airbyte-config/init/src/main/resources/icons/whiskyhunter.svg" height="30" height="30"/> | Source | airbyte/source-whisky-hunter:0.1.0 | alpha | [link](https://docs.airbyte.com/integrations/sources/whisky-hunter) | [code](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-whisky-hunter) | <small>`e65f84c0-7598-458a-bfac-f770c381ff5d`</small> |
| **Wikipedia Pageviews** | <img alt="Wikipedia Pageviews icon" src="https://raw.githubusercontent.com/airbytehq/airbyte/master/airbyte-config/init/src/main/resources/icons/wikipediapageviews.svg" height="30" height="30"/> | Source | airbyte/source-wikipedia-pageviews:0.1.0 | alpha | [link](https://docs.airbyte.com/integrations/sources/wikipedia-pageviews) | [code](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-wikipedia-pageviews) | <small>`87c58f70-6f7a-4f70-aba5-bab1a458f5ba`</small> |
| **WooCommerce** | <img alt="WooCommerce icon" src="https://raw.githubusercontent.com/airbytehq/airbyte/master/airbyte-config/init/src/main/resources/icons/woocommerce.svg" height="30" height="30"/> | Source | airbyte/source-woocommerce:0.2.1 | beta | [link](https://docs.airbyte.com/integrations/sources/woocommerce) | [code](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-woocommerce) | <small>`2a2552ca-9f78-4c1c-9eb7-4d0dc66d72df`</small> |
| **WooCommerce** | <img alt="WooCommerce icon" src="https://raw.githubusercontent.com/airbytehq/airbyte/master/airbyte-config/init/src/main/resources/icons/woocommerce.svg" height="30" height="30"/> | Source | airbyte/source-woocommerce:0.2.2 | beta | [link](https://docs.airbyte.com/integrations/sources/woocommerce) | [code](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-woocommerce) | <small>`2a2552ca-9f78-4c1c-9eb7-4d0dc66d72df`</small> |
| **WorkRamp** | <img alt="WorkRamp icon" src="https://raw.githubusercontent.com/airbytehq/airbyte/master/airbyte-config/init/src/main/resources/icons/workramp.svg" height="30" height="30"/> | Source | airbyte/source-workramp:0.1.0 | alpha | [link](https://docs.airbyte.com/integrations/sources/workramp) | [code](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-workramp) | <small>`05b0bce2-4ec4-4534-bb1a-5d0127bd91b7`</small> |
| **Workable** | <img alt="Workable icon" src="https://raw.githubusercontent.com/airbytehq/airbyte/master/airbyte-config/init/src/main/resources/icons/workable.svg" height="30" height="30"/> | Source | airbyte/source-workable:0.1.0 | alpha | [link](https://docs.airbyte.com/integrations/sources/workable) | [code](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-workable) | <small>`ef3c99c6-9e90-43c8-9517-926cfd978517`</small> |
| **Wrike** | <img alt="Wrike icon" src="https://raw.githubusercontent.com/airbytehq/airbyte/master/airbyte-config/init/src/main/resources/icons/wrike.svg" height="30" height="30"/> | Source | airbyte/source-wrike:0.1.0 | alpha | [link](https://docs.airbyte.com/integrations/sources/wrike) | [code](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-wrike) | <small>`9c13f986-a13b-4988-b808-4705badf71c2`</small> |
Expand Down
3 changes: 2 additions & 1 deletion docs/integrations/sources/woocommerce.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ Useful links:

| Version | Date | Pull Request | Subject |
| :------ | :--------- | :------------------------------------------------------- | :----------------------------------------- |
| 0.2.1 | 2023-02-10 | [00000](https://github.com/airbytehq/airbyte/pull/00000) | Specified date formatting in specification |
| 0.2.2 | 2023-03-03 | [23599](https://github.com/airbytehq/airbyte/pull/23599) | Fix pagination and removed lookback window |
| 0.2.1 | 2023-02-10 | [22821](https://github.com/airbytehq/airbyte/pull/22821) | Specified date formatting in specification |
| 0.2.0 | 2022-11-30 | [19903](https://github.com/airbytehq/airbyte/pull/19903) | Migrate to low-code; Certification to Beta |
| 0.1.1 | 2021-11-08 | [7499](https://github.com/airbytehq/airbyte/pull/7499) | Remove base-python dependencies |
| 0.1.0 | 2021-09-09 | [5955](https://github.com/airbytehq/airbyte/pull/5955) | Initial Release. Source WooCommerce |

0 comments on commit 907ef71

Please sign in to comment.