Skip to content

Commit 9e7f1b6

Browse files
Turn off default httpavailability for source-gitlab (#22001)
* Turn off default for source-gitlab (default won't work for some streams on this source) * Update gitlab.md * Update streams.py * Update streams.py * Update gitlab.md * auto-bump connector version --------- Co-authored-by: Octavia Squidington III <[email protected]>
1 parent 0daf9be commit 9e7f1b6

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
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
@@ -625,7 +625,7 @@
625625
- name: Gitlab
626626
sourceDefinitionId: 5e6175e5-68e1-4c17-bff9-56103bbb0d80
627627
dockerRepository: airbyte/source-gitlab
628-
dockerImageTag: 1.0.1
628+
dockerImageTag: 1.0.2
629629
documentationUrl: https://docs.airbyte.com/integrations/sources/gitlab
630630
icon: gitlab.svg
631631
sourceType: api

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4850,7 +4850,7 @@
48504850
path_in_connector_config:
48514851
- "credentials"
48524852
- "client_secret"
4853-
- dockerImage: "airbyte/source-gitlab:1.0.1"
4853+
- dockerImage: "airbyte/source-gitlab:1.0.2"
48544854
spec:
48554855
documentationUrl: "https://docs.airbyte.com/integrations/sources/gitlab"
48564856
connectionSpecification:

airbyte-integrations/connectors/source-gitlab/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ COPY main.py ./
1313

1414
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
1515

16-
LABEL io.airbyte.version=1.0.1
16+
LABEL io.airbyte.version=1.0.2
1717
LABEL io.airbyte.name=airbyte/source-gitlab

airbyte-integrations/connectors/source-gitlab/source_gitlab/streams.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import pendulum
1010
import requests
1111
from airbyte_cdk.models import SyncMode
12+
from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrategy
1213
from airbyte_cdk.sources.streams.core import StreamData
1314
from airbyte_cdk.sources.streams.http import HttpStream
1415

@@ -52,6 +53,10 @@ def request_params(
5253
def url_base(self) -> str:
5354
return f"https://{self.api_url}/api/v4/"
5455

56+
@property
57+
def availability_strategy(self) -> Optional["AvailabilityStrategy"]:
58+
return None
59+
5560
def should_retry(self, response: requests.Response) -> bool:
5661
# Gitlab API returns a 403 response in case a feature is disabled in a project (pipelines/jobs for instance).
5762
if response.status_code == 403:

docs/integrations/sources/gitlab.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ Gitlab has the [rate limits](https://docs.gitlab.com/ee/user/gitlab_com/index.ht
105105

106106
| Version | Date | Pull Request | Subject |
107107
|:--------|:-----------|:---------------------------------------------------------|:-------------------------------------------------------------------------------------------|
108-
| 1.0.1 | 2022-01-23 | [21713](https://github.com/airbytehq/airbyte/pull/21713) | Fix missing data issue |
108+
| 1.0.2 | 2023-01-27 | [22001](https://github.com/airbytehq/airbyte/pull/22001) | Set `AvailabilityStrategy` for streams explicitly to `None` |
109+
| 1.0.1 | 2023-01-23 | [21713](https://github.com/airbytehq/airbyte/pull/21713) | Fix missing data issue |
109110
| 1.0.0 | 2022-12-05 | [7506](https://github.com/airbytehq/airbyte/pull/7506) | Add `OAuth2.0` authentication option |
110111
| 0.1.12 | 2022-12-15 | [20542](https://github.com/airbytehq/airbyte/pull/20542) | Revert HttpAvailability changes, run on cdk 0.15.0 |
111112
| 0.1.11 | 2022-12-14 | [20479](https://github.com/airbytehq/airbyte/pull/20479) | Use HttpAvailabilityStrategy + add unit tests |

0 commit comments

Comments
 (0)