diff --git a/airbyte-integrations/connectors/source-gitlab/metadata.yaml b/airbyte-integrations/connectors/source-gitlab/metadata.yaml index 64050686551..ac430af22cf 100644 --- a/airbyte-integrations/connectors/source-gitlab/metadata.yaml +++ b/airbyte-integrations/connectors/source-gitlab/metadata.yaml @@ -10,7 +10,7 @@ data: connectorSubtype: api connectorType: source definitionId: 5e6175e5-68e1-4c17-bff9-56103bbb0d80 - dockerImageTag: 4.2.2 + dockerImageTag: 4.3.0 dockerRepository: airbyte/source-gitlab documentationUrl: https://docs.airbyte.com/integrations/sources/gitlab githubIssueLabel: source-gitlab diff --git a/airbyte-integrations/connectors/source-gitlab/poetry.lock b/airbyte-integrations/connectors/source-gitlab/poetry.lock index 0c0c53449f7..1cd7c61fc9e 100644 --- a/airbyte-integrations/connectors/source-gitlab/poetry.lock +++ b/airbyte-integrations/connectors/source-gitlab/poetry.lock @@ -2,13 +2,13 @@ [[package]] name = "airbyte-cdk" -version = "2.4.0" +version = "4.1.0" description = "A framework for writing Airbyte Connectors." optional = false -python-versions = "<4.0,>=3.9" +python-versions = "<4.0,>=3.10" files = [ - {file = "airbyte_cdk-2.4.0-py3-none-any.whl", hash = "sha256:39470b2fe97f28959fcecb839d3080a8aba4a64a29dddf54a39f11f93f9f9ef7"}, - {file = "airbyte_cdk-2.4.0.tar.gz", hash = "sha256:f973d2e17a6dd0416c4395139e2761a10b38aafa61e097eaacffebbe6164ef45"}, + {file = "airbyte_cdk-4.1.0-py3-none-any.whl", hash = "sha256:033f1f8751644d5a680cf93d329edbe57df10f6aab5c593d66084a964e38508d"}, + {file = "airbyte_cdk-4.1.0.tar.gz", hash = "sha256:15b4544fb9952f097a65aea77f7256b759fb8d9dfd95c6cf6733f8e216af5982"}, ] [package.dependencies] @@ -577,13 +577,13 @@ extended-testing = ["jinja2 (>=3,<4)"] [[package]] name = "langsmith" -version = "0.1.93" +version = "0.1.94" description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform." optional = false python-versions = "<4.0,>=3.8.1" files = [ - {file = "langsmith-0.1.93-py3-none-any.whl", hash = "sha256:811210b9d5f108f36431bd7b997eb9476a9ecf5a2abd7ddbb606c1cdcf0f43ce"}, - {file = "langsmith-0.1.93.tar.gz", hash = "sha256:285b6ad3a54f50fa8eb97b5f600acc57d0e37e139dd8cf2111a117d0435ba9b4"}, + {file = "langsmith-0.1.94-py3-none-any.whl", hash = "sha256:0d01212086d58699f75814117b026784218042f7859877ce08a248a98d84aa8d"}, + {file = "langsmith-0.1.94.tar.gz", hash = "sha256:e44afcdc9eee6f238f6a87a02bba83111bd5fad376d881ae299834e06d39d712"}, ] [package.dependencies] @@ -1317,13 +1317,13 @@ fixture = ["fixtures"] [[package]] name = "setuptools" -version = "71.1.0" +version = "72.1.0" description = "Easily download, build, install, upgrade, and uninstall Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "setuptools-71.1.0-py3-none-any.whl", hash = "sha256:33874fdc59b3188304b2e7c80d9029097ea31627180896fb549c578ceb8a0855"}, - {file = "setuptools-71.1.0.tar.gz", hash = "sha256:032d42ee9fb536e33087fb66cac5f840eb9391ed05637b3f2a76a7c8fb477936"}, + {file = "setuptools-72.1.0-py3-none-any.whl", hash = "sha256:5a03e1860cf56bb6ef48ce186b0e557fdba433237481a9a625176c2831be15d1"}, + {file = "setuptools-72.1.0.tar.gz", hash = "sha256:8d243eff56d095e5817f796ede6ae32941278f542e0f941867cc05ae52b162ec"}, ] [package.extras] @@ -1625,5 +1625,5 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" -python-versions = "^3.9,<3.12" -content-hash = "7c6869033ec6c37ff0126dbd2db80b57312317790233e1813a0aaf4e7d548d62" +python-versions = "^3.10,<3.12" +content-hash = "a1c4b2699e18493bc5729f25f5f11840b2d9722749b1b2a70b8df68097eb3b65" diff --git a/airbyte-integrations/connectors/source-gitlab/pyproject.toml b/airbyte-integrations/connectors/source-gitlab/pyproject.toml index d7358491174..1f66b2915ab 100644 --- a/airbyte-integrations/connectors/source-gitlab/pyproject.toml +++ b/airbyte-integrations/connectors/source-gitlab/pyproject.toml @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",] build-backend = "poetry.core.masonry.api" [tool.poetry] -version = "4.2.2" +version = "4.3.0" name = "source-gitlab" description = "Source implementation for GitLab." authors = [ "Airbyte ",] @@ -16,8 +16,8 @@ repository = "https://github.com/airbytehq/airbyte" include = "source_gitlab" [tool.poetry.dependencies] -python = "^3.9,<3.12" -airbyte-cdk = "^2" +python = "^3.10,<3.12" +airbyte-cdk = "^4" vcrpy = "==4.1.1" [tool.poetry.scripts] diff --git a/airbyte-integrations/connectors/source-gitlab/unit_tests/test_config.json b/airbyte-integrations/connectors/source-gitlab/unit_tests/test_config.json index 71f30753dc6..0e3bfadfca6 100644 --- a/airbyte-integrations/connectors/source-gitlab/unit_tests/test_config.json +++ b/airbyte-integrations/connectors/source-gitlab/unit_tests/test_config.json @@ -1 +1 @@ -{ "groups": "a b c", "groups_list": ["a", "c", "b"] } +{ "groups": "a b c", "groups_list": ["c", "a", "b"] } diff --git a/airbyte-integrations/connectors/source-gitlab/unit_tests/test_source.py b/airbyte-integrations/connectors/source-gitlab/unit_tests/test_source.py index 5967c4afd11..b650c9e52b6 100644 --- a/airbyte-integrations/connectors/source-gitlab/unit_tests/test_source.py +++ b/airbyte-integrations/connectors/source-gitlab/unit_tests/test_source.py @@ -37,10 +37,7 @@ def test_connection_invalid_projects_and_projects(config_with_project_groups, re source = SourceGitlab() status, msg = source.check_connection(logging.getLogger(), config_with_project_groups) assert status is False - assert msg == ( - "Unable to connect to stream projects - " - "Groups and/or projects that you provide are invalid or you don't have permission to view it." - ) + assert "Groups and/or projects that you provide are invalid or you don't have permission to view it." in msg def test_connection_fail_due_to_api_error(config, mocker, requests_mock): @@ -50,10 +47,7 @@ def test_connection_fail_due_to_api_error(config, mocker, requests_mock): source = SourceGitlab() status, msg = source.check_connection(logging.getLogger(), config) assert status is False - assert msg == ( - "Unable to connect to stream projects - Unable to refresh the `access_token`, " - "please re-authenticate in Sources > Settings." - ) + assert "Unable to refresh the `access_token`" in msg def test_connection_fail_due_to_api_error_oauth(oauth_config, mocker, requests_mock): @@ -70,10 +64,7 @@ def test_connection_fail_due_to_api_error_oauth(oauth_config, mocker, requests_m source = SourceGitlab() status, msg = source.check_connection(logging.getLogger(), oauth_config) assert status is False - assert msg == ( - "Unable to connect to stream projects - Unable to refresh the `access_token`, " - "please re-authenticate in Sources > Settings." - ) + assert "Unable to refresh the `access_token`" in msg @pytest.mark.parametrize( diff --git a/airbyte-integrations/connectors/source-gitlab/unit_tests/test_streams.py b/airbyte-integrations/connectors/source-gitlab/unit_tests/test_streams.py index c4d61694efa..9eef564ef23 100644 --- a/airbyte-integrations/connectors/source-gitlab/unit_tests/test_streams.py +++ b/airbyte-integrations/connectors/source-gitlab/unit_tests/test_streams.py @@ -162,12 +162,6 @@ def test_stream_slices_child_stream(requests_mock): slices = list(commits.stream_slices(sync_mode=SyncMode.full_refresh, stream_state=stream_state)) assert slices - -def test_availability_strategy(): - commits = get_stream_by_name("commits", CONFIG) - assert not commits.availability_strategy - - def test_request_params(): commits = get_stream_by_name("commits", CONFIG) assert commits.retriever.requester.get_request_params() == {"with_stats": "true"} diff --git a/docs/integrations/sources/gitlab.md b/docs/integrations/sources/gitlab.md index 20c0d939eca..97e8bbcd852 100644 --- a/docs/integrations/sources/gitlab.md +++ b/docs/integrations/sources/gitlab.md @@ -112,6 +112,7 @@ Gitlab has the [rate limits](https://docs.gitlab.com/ee/user/gitlab_com/index.ht | Version | Date | Pull Request | Subject | | :------ | :--------- | :------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| 4.3.0 | 2024-07-31 | [42920](https://github.com/airbytehq/airbyte/pull/42920) | Migrate to CDK v4.1.0 | | 4.2.2 | 2024-07-27 | [42601](https://github.com/airbytehq/airbyte/pull/42601) | Update dependencies | | 4.2.1 | 2024-07-20 | [42295](https://github.com/airbytehq/airbyte/pull/42295) | Update dependencies | | 4.2.0 | 2024-07-17 | [42085](https://github.com/airbytehq/airbyte/pull/42085) | Migrate to CDK v2.4.0 |