Skip to content

Commit f49bb33

Browse files
bleonardlazebnyi
andauthored
source-gitlab: ensure inline schemas, updated cdk, poetry (where possible) (#36637)
Co-authored-by: Serhii Lazebnyi <[email protected]>
1 parent 2ba3aa0 commit f49bb33

25 files changed

+767
-17
lines changed

airbyte-integrations/connectors/source-gitlab/metadata.yaml

+12-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: 5e6175e5-68e1-4c17-bff9-56103bbb0d80
13-
dockerImageTag: 4.0.1
13+
dockerImageTag: 4.0.2
1414
dockerRepository: airbyte/source-gitlab
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/gitlab
1616
githubIssueLabel: source-gitlab
@@ -33,8 +33,9 @@ data:
3333
4.0.0:
3434
message:
3535
In this release, several changes have been made to the Gitlab connector.
36-
The primary key was changed for streams `group_members`, `group_labels`, `project_members`, `project_labels`, `branches`, and `tags`.
37-
Users will need to refresh schemas and reset the affected streams after upgrading.
36+
The primary key was changed for streams `group_members`, `group_labels`,
37+
`project_members`, `project_labels`, `branches`, and `tags`. Users will
38+
need to refresh schemas and reset the affected streams after upgrading.
3839
upgradeDeadline: "2024-04-15"
3940
scopedImpact:
4041
- scopeType: stream
@@ -51,17 +52,20 @@ data:
5152
- "tags"
5253
3.0.0:
5354
message:
54-
In this release, merge_request_commits stream schema has been fixed so that it returns commits for each merge_request.
55-
Users will need to refresh the source schema and reset merge_request_commits stream after upgrading.
55+
In this release, merge_request_commits stream schema has been fixed
56+
so that it returns commits for each merge_request. Users will need to refresh
57+
the source schema and reset merge_request_commits stream after upgrading.
5658
upgradeDeadline: "2024-02-13"
5759
scopedImpact:
5860
- scopeType: stream
5961
impactedScopes: ["merge_request_commits"]
6062
2.0.0:
6163
message:
62-
In this release, several streams were updated to date-time field format, as declared in the Gitlab API.
63-
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.
64-
Users will need to refresh the source schema and reset affected streams after upgrading.
64+
In this release, several streams were updated to date-time field
65+
format, as declared in the Gitlab API. These changes impact pipeline.created_at
66+
and pipeline.updated_at fields for stream Deployments and expires_at field
67+
for stream Group Members and stream Project Members. Users will need to
68+
refresh the source schema and reset affected streams after upgrading.
6569
upgradeDeadline: "2023-11-09"
6670
suggestedStreams:
6771
streams:

airbyte-integrations/connectors/source-gitlab/poetry.lock

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

airbyte-integrations/connectors/source-gitlab/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

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

1818
[tool.poetry.dependencies]
1919
python = "^3.9,<3.12"
20-
airbyte-cdk = "^0"
20+
airbyte-cdk = "0.80.0"
2121
vcrpy = "==4.1.1"
2222

2323
[tool.poetry.scripts]

airbyte-integrations/connectors/source-gitlab/source_gitlab/schemas/branches.json

+11
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,47 @@
33
"type": "object",
44
"properties": {
55
"project_id": {
6+
"description": "ID of the project to which this branch belongs.",
67
"type": ["null", "integer"]
78
},
89
"name": {
10+
"description": "Name of the branch.",
911
"type": ["null", "string"]
1012
},
1113
"merged": {
14+
"description": "Indicates if the changes in this branch have been merged into another branch.",
1215
"type": ["null", "boolean"]
1316
},
1417
"protected": {
18+
"description": "Indicates if the branch is protected to prevent direct pushes.",
1519
"type": ["null", "boolean"]
1620
},
1721
"developers_can_push": {
22+
"description": "Indicates if developers can push changes to this branch.",
1823
"type": ["null", "boolean"]
1924
},
2025
"developers_can_merge": {
26+
"description": "Indicates if developers can merge changes to this branch.",
2127
"type": ["null", "boolean"]
2228
},
2329
"can_push": {
30+
"description": "Indicates if the user has permission to push changes to this branch.",
2431
"type": ["null", "boolean"]
2532
},
2633
"default": {
34+
"description": "Indicates if this is the default branch of the project.",
2735
"type": ["null", "boolean"]
2836
},
2937
"web_url": {
38+
"description": "URL to view the branch in a web browser.",
3039
"type": ["null", "string"]
3140
},
3241
"commit_id": {
42+
"description": "ID of the commit associated with this branch.",
3343
"type": ["null", "string"]
3444
},
3545
"commit": {
46+
"description": "Details about the commit associated with this branch.",
3647
"type": ["null", "object"],
3748
"additionalProperties": true
3849
}

airbyte-integrations/connectors/source-gitlab/source_gitlab/schemas/commits.json

+21
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,56 @@
33
"type": "object",
44
"properties": {
55
"project_id": {
6+
"description": "ID of the project to which the commit belongs.",
67
"type": ["null", "integer"]
78
},
89
"id": {
10+
"description": "Unique identifier of the commit.",
911
"type": ["null", "string"]
1012
},
1113
"short_id": {
14+
"description": "Shortened version of the commit's unique identifier.",
1215
"type": ["null", "string"]
1316
},
1417
"created_at": {
18+
"description": "Date and time when the commit record was created.",
1519
"type": ["null", "string"],
1620
"format": "date-time"
1721
},
1822
"parent_ids": {
23+
"description": "Array of unique identifiers of parent commits if the commit has multiple parents.",
1924
"type": ["null", "array"],
2025
"items": {
2126
"type": ["null", "string"]
2227
}
2328
},
2429
"title": {
30+
"description": "Title or summary of the commit message.",
2531
"type": ["null", "string"]
2632
},
2733
"message": {
34+
"description": "Description or text message associated with the commit.",
2835
"type": ["null", "string"]
2936
},
3037
"author_name": {
38+
"description": "Name of the author who created the commit.",
3139
"type": ["null", "string"]
3240
},
3341
"author_email": {
42+
"description": "Email of the author who created the commit.",
3443
"type": ["null", "string"]
3544
},
3645
"authored_date": {
46+
"description": "Date and time when the commit was authored.",
3747
"type": ["null", "string"],
3848
"format": "date-time"
3949
},
4050
"extended_trailers": {
51+
"description": "Additional information or metadata added to the commit. Eg: 'Cc' field for carbon copy email addresses.",
4152
"type": ["null", "object"],
4253
"properties": {
4354
"Cc": {
55+
"description": "Carbon copy email addresses associated with the commit.",
4456
"type": ["null", "array"],
4557
"items": {
4658
"type": ["null", "string"]
@@ -49,31 +61,40 @@
4961
}
5062
},
5163
"committer_name": {
64+
"description": "Name of the committer who committed the changes.",
5265
"type": ["null", "string"]
5366
},
5467
"committer_email": {
68+
"description": "Email of the committer who committed the changes.",
5569
"type": ["null", "string"]
5670
},
5771
"committed_date": {
72+
"description": "Date and time when the commit was committed.",
5873
"type": ["null", "string"],
5974
"format": "date-time"
6075
},
6176
"trailers": {
77+
"description": "Metadata information provided below the commit message.",
6278
"type": ["null", "object"]
6379
},
6480
"web_url": {
81+
"description": "URL link to view the commit details in a web browser.",
6582
"type": ["null", "string"]
6683
},
6784
"stats": {
85+
"description": "Statistics related to the commit changes like additions, deletions, and total changes.",
6886
"type": ["null", "object"],
6987
"properties": {
7088
"additions": {
89+
"description": "Number of lines added in the commit.",
7190
"type": ["null", "integer"]
7291
},
7392
"deletions": {
93+
"description": "Number of lines deleted in the commit.",
7494
"type": ["null", "integer"]
7595
},
7696
"total": {
97+
"description": "Total number of lines changed in the commit.",
7798
"type": ["null", "integer"]
7899
}
79100
}

0 commit comments

Comments
 (0)