Skip to content

source-gitlab: ensure inline schemas, updated cdk, poetry (where possible) #36637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 7, 2024
20 changes: 12 additions & 8 deletions airbyte-integrations/connectors/source-gitlab/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 5e6175e5-68e1-4c17-bff9-56103bbb0d80
dockerImageTag: 4.0.1
dockerImageTag: 4.0.2
dockerRepository: airbyte/source-gitlab
documentationUrl: https://docs.airbyte.com/integrations/sources/gitlab
githubIssueLabel: source-gitlab
Expand All @@ -33,8 +33,9 @@ data:
4.0.0:
message:
In this release, several changes have been made to the Gitlab connector.
The primary key was changed for streams `group_members`, `group_labels`, `project_members`, `project_labels`, `branches`, and `tags`.
Users will need to refresh schemas and reset the affected streams after upgrading.
The primary key was changed for streams `group_members`, `group_labels`,
`project_members`, `project_labels`, `branches`, and `tags`. Users will
need to refresh schemas and reset the affected streams after upgrading.
upgradeDeadline: "2024-04-15"
scopedImpact:
- scopeType: stream
Expand All @@ -51,17 +52,20 @@ data:
- "tags"
3.0.0:
message:
In this release, merge_request_commits stream schema has been fixed so that it returns commits for each merge_request.
Users will need to refresh the source schema and reset merge_request_commits stream after upgrading.
In this release, merge_request_commits stream schema has been fixed
so that it returns commits for each merge_request. Users will need to refresh
the source schema and reset merge_request_commits stream after upgrading.
upgradeDeadline: "2024-02-13"
scopedImpact:
- scopeType: stream
impactedScopes: ["merge_request_commits"]
2.0.0:
message:
In this release, several streams were updated to date-time field format, as declared in the Gitlab API.
These changes impact pipeline.created_at and pipeline.updated_at fields for stream Deployments and expires_at field for stream Group Members and stream Project Members.
Users will need to refresh the source schema and reset affected streams after upgrading.
In this release, several streams were updated to date-time field
format, as declared in the Gitlab API. These changes impact pipeline.created_at
and pipeline.updated_at fields for stream Deployments and expires_at field
for stream Group Members and stream Project Members. Users will need to
refresh the source schema and reset affected streams after upgrading.
upgradeDeadline: "2023-11-09"
suggestedStreams:
streams:
Expand Down
12 changes: 6 additions & 6 deletions airbyte-integrations/connectors/source-gitlab/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions airbyte-integrations/connectors/source-gitlab/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "4.0.1"
version = "4.0.2"
name = "source-gitlab"
description = "Source implementation for GitLab."
authors = [ "Airbyte <[email protected]>",]
Expand All @@ -17,7 +17,7 @@ include = "source_gitlab"

[tool.poetry.dependencies]
python = "^3.9,<3.12"
airbyte-cdk = "^0"
airbyte-cdk = "0.80.0"
vcrpy = "==4.1.1"

[tool.poetry.scripts]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,47 @@
"type": "object",
"properties": {
"project_id": {
"description": "ID of the project to which this branch belongs.",
"type": ["null", "integer"]
},
"name": {
"description": "Name of the branch.",
"type": ["null", "string"]
},
"merged": {
"description": "Indicates if the changes in this branch have been merged into another branch.",
"type": ["null", "boolean"]
},
"protected": {
"description": "Indicates if the branch is protected to prevent direct pushes.",
"type": ["null", "boolean"]
},
"developers_can_push": {
"description": "Indicates if developers can push changes to this branch.",
"type": ["null", "boolean"]
},
"developers_can_merge": {
"description": "Indicates if developers can merge changes to this branch.",
"type": ["null", "boolean"]
},
"can_push": {
"description": "Indicates if the user has permission to push changes to this branch.",
"type": ["null", "boolean"]
},
"default": {
"description": "Indicates if this is the default branch of the project.",
"type": ["null", "boolean"]
},
"web_url": {
"description": "URL to view the branch in a web browser.",
"type": ["null", "string"]
},
"commit_id": {
"description": "ID of the commit associated with this branch.",
"type": ["null", "string"]
},
"commit": {
"description": "Details about the commit associated with this branch.",
"type": ["null", "object"],
"additionalProperties": true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,56 @@
"type": "object",
"properties": {
"project_id": {
"description": "ID of the project to which the commit belongs.",
"type": ["null", "integer"]
},
"id": {
"description": "Unique identifier of the commit.",
"type": ["null", "string"]
},
"short_id": {
"description": "Shortened version of the commit's unique identifier.",
"type": ["null", "string"]
},
"created_at": {
"description": "Date and time when the commit record was created.",
"type": ["null", "string"],
"format": "date-time"
},
"parent_ids": {
"description": "Array of unique identifiers of parent commits if the commit has multiple parents.",
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"title": {
"description": "Title or summary of the commit message.",
"type": ["null", "string"]
},
"message": {
"description": "Description or text message associated with the commit.",
"type": ["null", "string"]
},
"author_name": {
"description": "Name of the author who created the commit.",
"type": ["null", "string"]
},
"author_email": {
"description": "Email of the author who created the commit.",
"type": ["null", "string"]
},
"authored_date": {
"description": "Date and time when the commit was authored.",
"type": ["null", "string"],
"format": "date-time"
},
"extended_trailers": {
"description": "Additional information or metadata added to the commit. Eg: 'Cc' field for carbon copy email addresses.",
"type": ["null", "object"],
"properties": {
"Cc": {
"description": "Carbon copy email addresses associated with the commit.",
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
Expand All @@ -49,31 +61,40 @@
}
},
"committer_name": {
"description": "Name of the committer who committed the changes.",
"type": ["null", "string"]
},
"committer_email": {
"description": "Email of the committer who committed the changes.",
"type": ["null", "string"]
},
"committed_date": {
"description": "Date and time when the commit was committed.",
"type": ["null", "string"],
"format": "date-time"
},
"trailers": {
"description": "Metadata information provided below the commit message.",
"type": ["null", "object"]
},
"web_url": {
"description": "URL link to view the commit details in a web browser.",
"type": ["null", "string"]
},
"stats": {
"description": "Statistics related to the commit changes like additions, deletions, and total changes.",
"type": ["null", "object"],
"properties": {
"additions": {
"description": "Number of lines added in the commit.",
"type": ["null", "integer"]
},
"deletions": {
"description": "Number of lines deleted in the commit.",
"type": ["null", "integer"]
},
"total": {
"description": "Total number of lines changed in the commit.",
"type": ["null", "integer"]
}
}
Expand Down
Loading
Loading