Skip to content

Commit

Permalink
Turn off default httpavailabilitystrategy for source-harvest (GA) (#2…
Browse files Browse the repository at this point in the history
…2008)

* Turn off default for source-harvest (GA)

* Update streams.py

* Update harvest.md

* Update harvest.md

* Create harvest.md

* auto-bump connector version

---------

Co-authored-by: Octavia Squidington III <[email protected]>
  • Loading branch information
erohmensing and octavia-squidington-iii authored Jan 30, 2023
1 parent b5cda55 commit 0daf9be
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@
- name: Harvest
sourceDefinitionId: fe2b4084-3386-4d3b-9ad6-308f61a6f1e6
dockerRepository: airbyte/source-harvest
dockerImageTag: 0.1.14
dockerImageTag: 0.1.15
documentationUrl: https://docs.airbyte.com/integrations/sources/harvest
icon: harvest.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6336,7 +6336,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-harvest:0.1.14"
- dockerImage: "airbyte/source-harvest:0.1.15"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/harvest"
connectionSpecification:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-harvest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ RUN pip install .
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.14
LABEL io.airbyte.version=0.1.15
LABEL io.airbyte.name=airbyte/source-harvest
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import pendulum
import requests
from airbyte_cdk.models import SyncMode
from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrategy
from airbyte_cdk.sources.streams.http import HttpStream


Expand All @@ -25,6 +26,10 @@ def data_field(self) -> str:
"""
return self.name

@property
def availability_strategy(self) -> Optional["AvailabilityStrategy"]:
return None

def backoff_time(self, response: requests.Response):
if "Retry-After" in response.headers:
return int(response.headers["Retry-After"])
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/harvest.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ The connector is restricted by the [Harvest rate limits](https://help.getharvest

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------|
| 0.1.15 | 2023-01-27 | [22008](https://github.com/airbytehq/airbyte/pull/22008) | Set `AvailabilityStrategy` for streams explicitly to `None` |
| 0.1.14 | 2023-01-09 | [21151](https://github.com/airbytehq/airbyte/pull/21151) | Skip 403 FORBIDDEN for all stream |
| 0.1.13 | 2022-12-22 | [20810](https://github.com/airbytehq/airbyte/pull/20810) | Skip 403 FORBIDDEN for `EstimateItemCategories` stream |
| 0.1.12 | 2022-12-16 | [20572](https://github.com/airbytehq/airbyte/pull/20572) | Introduce replication end date |
Expand Down

0 comments on commit 0daf9be

Please sign in to comment.