Skip to content

Commit ab65ef5

Browse files
TimothyZhang7harshithmullapudioctavia-squidington-iii
authored
🐛 Source Bigcommerce: fix infinite loop in Page stream (#14940)
* fix(source-bigcommerce): infinite loop by overloaded request_params() in class Page * bump connector version to 0.1.6 in Dockerfile * update docs/integrations/sources/bigcommerce.md * fix: tests are failing * docs: updated connector definitions * auto-bump connector version [ci skip] Co-authored-by: Harshith Mullapudi <[email protected]> Co-authored-by: Octavia Squidington III <[email protected]>
1 parent 18913e7 commit ab65ef5

File tree

6 files changed

+31
-37
lines changed

6 files changed

+31
-37
lines changed

airbyte-config/init/src/main/resources/seed/source_definitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
- name: BigCommerce
8989
sourceDefinitionId: 59c5501b-9f95-411e-9269-7143c939adbd
9090
dockerRepository: airbyte/source-bigcommerce
91-
dockerImageTag: 0.1.5
91+
dockerImageTag: 0.1.6
9292
documentationUrl: https://docs.airbyte.io/integrations/sources/bigcommerce
9393
icon: bigcommerce.svg
9494
sourceType: api

airbyte-config/init/src/main/resources/seed/source_specs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@
795795
supportsNormalization: false
796796
supportsDBT: false
797797
supported_destination_sync_modes: []
798-
- dockerImage: "airbyte/source-bigcommerce:0.1.5"
798+
- dockerImage: "airbyte/source-bigcommerce:0.1.6"
799799
spec:
800800
documentationUrl: "https://docs.airbyte.io/integrations/sources/bigcommerce"
801801
connectionSpecification:
@@ -806,7 +806,7 @@
806806
- "start_date"
807807
- "store_hash"
808808
- "access_token"
809-
additionalProperties: false
809+
additionalProperties: true
810810
properties:
811811
start_date:
812812
type: "string"

airbyte-integrations/connectors/source-bigcommerce/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ RUN pip install .
1212
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
1313
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
1414

15-
LABEL io.airbyte.version=0.1.5
15+
LABEL io.airbyte.version=0.1.6
1616
LABEL io.airbyte.name=airbyte/source-bigcommerce

airbyte-integrations/connectors/source-bigcommerce/source_bigcommerce/source.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,6 @@ def path(self, **kwargs) -> str:
184184
def get_updated_state(self, current_stream_state: MutableMapping[str, Any], latest_record: Mapping[str, Any]) -> Mapping[str, Any]:
185185
return {self.cursor_field: max(latest_record.get(self.cursor_field, 0), current_stream_state.get(self.cursor_field, 0))}
186186

187-
def request_params(
188-
self, stream_state: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None, **kwargs
189-
) -> MutableMapping[str, Any]:
190-
params = {"limit": self.limit}
191-
return params
192-
193187
def read_records(
194188
self, stream_state: Mapping[str, Any] = None, stream_slice: Optional[Mapping[str, Any]] = None, **kwargs
195189
) -> Iterable[Mapping[str, Any]]:

airbyte-integrations/connectors/source-bigcommerce/source_bigcommerce/spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"title": "BigCommerce Source CDK Specifications",
66
"type": "object",
77
"required": ["start_date", "store_hash", "access_token"],
8-
"additionalProperties": false,
8+
"additionalProperties": true,
99
"properties": {
1010
"start_date": {
1111
"type": "string",

docs/integrations/sources/bigcommerce.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@ This Source Connector is based on a [Airbyte CDK](https://docs.airbyte.io/connec
1212

1313
This Source is capable of syncing the following core Streams:
1414

15-
* [Customers](https://developer.bigcommerce.com/api-reference/store-management/customers-v3/customers/customersget)
16-
* [Orders](https://developer.bigcommerce.com/api-reference/store-management/orders/orders/getallorders)
17-
* [Transactions](https://developer.bigcommerce.com/api-reference/store-management/order-transactions/transactions/gettransactions)
18-
* [Pages](https://developer.bigcommerce.com/api-reference/store-management/store-content/pages/getallpages)
19-
* [Products](https://developer.bigcommerce.com/api-reference/store-management/catalog/products/getproducts)
15+
- [Customers](https://developer.bigcommerce.com/api-reference/store-management/customers-v3/customers/customersget)
16+
- [Orders](https://developer.bigcommerce.com/api-reference/store-management/orders/orders/getallorders)
17+
- [Transactions](https://developer.bigcommerce.com/api-reference/store-management/order-transactions/transactions/gettransactions)
18+
- [Pages](https://developer.bigcommerce.com/api-reference/store-management/store-content/pages/getallpages)
19+
- [Products](https://developer.bigcommerce.com/api-reference/store-management/catalog/products/getproducts)
2020

2121
### Data type mapping
2222

2323
| Integration Type | Airbyte Type | Notes |
24-
| :--- | :--- | :--- |
25-
| `string` | `string` | |
26-
| `number` | `number` | |
27-
| `array` | `array` | |
28-
| `object` | `object` | |
24+
| :--------------- | :----------- | :---- |
25+
| `string` | `string` | |
26+
| `number` | `number` | |
27+
| `array` | `array` | |
28+
| `object` | `object` | |
2929

3030
### Features
3131

32-
| Feature | Supported?\(Yes/No\) | Notes |
33-
| :--- | :--- | :--- |
34-
| Full Refresh Sync | Yes | |
35-
| Incremental - Append Sync | Yes | |
36-
| Namespaces | No | |
32+
| Feature | Supported?\(Yes/No\) | Notes |
33+
| :------------------------ | :------------------- | :---- |
34+
| Full Refresh Sync | Yes | |
35+
| Incremental - Append Sync | Yes | |
36+
| Namespaces | No | |
3737

3838
### Performance considerations
3939

@@ -44,18 +44,18 @@ BigCommerce has some [rate limit restrictions](https://developer.bigcommerce.com
4444
1. Navigate to your store’s control panel \(Advanced Settings &gt; API Accounts &gt; Create API Account\)
4545
2. Create an API account.
4646
3. Select the resources you want to allow access to. Airbyte only needs read-level access.
47-
* Note: The UI will show all possible data sources and will show errors when syncing if it doesn't have permissions to access a resource.
48-
4. The generated `Access Token` is what you'll use as the `access_token` for the integration.
47+
- Note: The UI will show all possible data sources and will show errors when syncing if it doesn't have permissions to access a resource.
48+
4. The generated `Access Token` is what you'll use as the `access_token` for the integration.
4949
5. You're ready to set up BigCommerce in Airbyte!
5050

5151
## Changelog
5252

53-
| Version | Date | Pull Request | Subject |
54-
| :--- | :--- | :--- | :--- |
55-
| 0.1.5 | 2022-01-31 | [9935](https://github.com/airbytehq/airbyte/pull/9935) | Correct date-time columns for `orders` (v2 stream) |
56-
| 0.1.4 | 2022-01-13 | [9516](https://github.com/airbytehq/airbyte/pull/9516) | Add Catalog Products Stream and fix date-time parsing |
57-
| 0.1.3 | 2021-12-23 | [8434](https://github.com/airbytehq/airbyte/pull/8434) | Update fields in source-connectors specifications |
58-
| 0.1.2 | 2021-12-07 | [8416](https://github.com/airbytehq/airbyte/pull/8416) | Correct Incremental Function |
59-
| 0.1.1 | 2021-11-08 | [7499](https://github.com/airbytehq/airbyte/pull/7499) | Remove base-python dependencies |
60-
| 0.1.0 | 2021-08-19 | [5521](https://github.com/airbytehq/airbyte/pull/5521) | Initial Release. Source BigCommerce |
61-
53+
| Version | Date | Pull Request | Subject |
54+
| :------ | :--------- | :------------------------------------------------------- | :---------------------------------------------------------- |
55+
| 0.1.6 | 2022-07-27 | [14940](https://github.com/airbytehq/airbyte/pull/14940) | Fix infinite loop when the page stream goes beyond one page |
56+
| 0.1.5 | 2022-01-31 | [9935](https://github.com/airbytehq/airbyte/pull/9935) | Correct date-time columns for `orders` (v2 stream) |
57+
| 0.1.4 | 2022-01-13 | [9516](https://github.com/airbytehq/airbyte/pull/9516) | Add Catalog Products Stream and fix date-time parsing |
58+
| 0.1.3 | 2021-12-23 | [8434](https://github.com/airbytehq/airbyte/pull/8434) | Update fields in source-connectors specifications |
59+
| 0.1.2 | 2021-12-07 | [8416](https://github.com/airbytehq/airbyte/pull/8416) | Correct Incremental Function |
60+
| 0.1.1 | 2021-11-08 | [7499](https://github.com/airbytehq/airbyte/pull/7499) | Remove base-python dependencies |
61+
| 0.1.0 | 2021-08-19 | [5521](https://github.com/airbytehq/airbyte/pull/5521) | Initial Release. Source BigCommerce |

0 commit comments

Comments
 (0)