Skip to content

Commit

Permalink
Publish source shopify: added shop_url to all stream records (airbyte…
Browse files Browse the repository at this point in the history
…hq#9635)

* add shop url in shopify orders stream

* Add shop url in all streams

* Fix: add shop url in customers schema

* chore: bump version

* chore: added spec

Co-authored-by: Manoj <[email protected]>
  • Loading branch information
harshithmullapudi and saimanoj authored Jan 20, 2022
1 parent 1108361 commit 0e5f1a8
Show file tree
Hide file tree
Showing 25 changed files with 68 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@
- name: Shopify
sourceDefinitionId: 9da77001-af33-4bcd-be46-6252bf9342b9
dockerRepository: airbyte/source-shopify
dockerImageTag: 0.1.28
dockerImageTag: 0.1.29
documentationUrl: https://docs.airbyte.io/integrations/sources/shopify
icon: shopify.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6755,7 +6755,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-shopify:0.1.28"
- dockerImage: "airbyte/source-shopify:0.1.29"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/shopify"
connectionSpecification:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-shopify/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ COPY source_shopify ./source_shopify
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.28
LABEL io.airbyte.version=0.1.29
LABEL io.airbyte.name=airbyte/source-shopify
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@
"source_url": {
"type": ["null", "string"]
},
"shop_url": {
"type": ["null", "string"]
},
"total_discounts": {
"type": ["null", "number"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"sort_value": {
"type": ["null", "string"]
},
"shop_url": {
"type": ["null", "string"]
},
"updated_at": {
"type": ["null", "string"],
"format": "date-time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
},
"template_suffix": {
"type": ["null", "string"]
},
"shop_url": {
"type": ["null", "string"]
}
},
"type": ["null", "object"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"multipass_identifier": {
"type": ["null", "string"]
},
"shop_url":{
"type": ["null", "string"]
},
"default_address": {
"type": ["null", "object"],
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"updated_at": {
"type": ["null", "string"],
"format": "date-time"
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@
}
}
}
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@
"type": ["null", "string"]
}
}
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@
}
}
}
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
},
"sku": {
"type": ["null", "string"]
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"updated_at": {
"type": ["null", "string"],
"format": "date-time"
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
},
"localized_province_name": {
"type": ["null", "string"]
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"updated_at": {
"type": ["null", "string"],
"format": "date-time"
},
"shop_url": {
"type": ["null", "string"]
}
},
"type": ["null", "object"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,9 @@
}
}
}
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
},
"merchant_message": {
"type": ["null", "string"]
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@
"source_url": {
"type": ["null", "string"]
},
"shop_url": {
"type": ["null", "string"]
},
"subtotal_price": {
"type": ["null", "number"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"updated_at": {
"type": ["null", "string"],
"format": "date-time"
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@
},
"allocation_limit": {
"type": ["null", "integer"]
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@
},
"id": {
"type": ["null", "integer"]
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@
},
"zip": {
"type": ["null", "string"]
},
"shop_url": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
},
"location_id": {
"type": ["null", "integer"]
},
"shop_url": {
"type": ["null", "string"]
}
},
"type": ["null", "object"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,14 @@ def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapp
# this solution designed to convert string into number, but in future can be modified for general purpose
if isinstance(records, dict):
# for cases when we have a single record as dict
# add shop_url to the record to make querying easy
records['shop_url'] = self.config["shop"]
yield self._transformer.transform(records)
else:
# for other cases
for record in records:
# add shop_url to the record to make querying easy
record['shop_url'] = self.config["shop"]
yield self._transformer.transform(record)

@property
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/shopify.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ This connector support both: `OAuth 2.0` and `API PASSWORD` (for private applica

| Version | Date | Pull Request | Subject |
| :--- | :--- | :--- | :--- |
| 0.1.29 | 2022-01-20 | [9049](https://github.com/airbytehq/airbyte/pull/9248) | Added `shop_url` to the record for all streams |
| 0.1.28 | 2022-01-19 | [9591](https://github.com/airbytehq/airbyte/pull/9591) | Implemented `OAuth2.0` authentication method for Airbyte Cloud |
| 0.1.27 | 2021-12-22 | [9049](https://github.com/airbytehq/airbyte/pull/9049) | Update connector fields title/description |
| 0.1.26 | 2021-12-14 | [8597](https://github.com/airbytehq/airbyte/pull/8597) | Fix `mismatched number of tables` for base-normalization, increased performance of `order_refunds` stream |
Expand Down

0 comments on commit 0e5f1a8

Please sign in to comment.