airbyte-source-gitlab 2.1.2__py3-none-any.whl → 3.0.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-source-gitlab
3
- Version: 2.1.2
3
+ Version: 3.0.0
4
4
  Summary: Source implementation for Gitlab.
5
5
  Home-page: https://airbyte.com
6
6
  License: MIT
@@ -1,34 +1,34 @@
1
1
  source_gitlab/__init__.py,sha256=Bip0P3F1yGxbb0nNwdTE8i98KtkuTT_MzZbMeSxziBM,1134
2
- source_gitlab/config_migrations.py,sha256=ehidh0Cj9qwM5b7mxShnU_w6nyIOviKquNBcqXoxsNY,3818
2
+ source_gitlab/config_migrations.py,sha256=K6Bg8zh4Zz1U9QlilRyAC1oy8RQJOOsVhh62jVIPTrY,3816
3
3
  source_gitlab/run.py,sha256=opjAlKxINNpsekbyOYAAxh25DxI7gTKg5ohJmDwe0q0,403
4
4
  source_gitlab/schemas/branches.json,sha256=iQMHidNwdx2g4UgfkeOZPhpG67K--S2jPM-XLBPhJb8,800
5
5
  source_gitlab/schemas/commits.json,sha256=2VgI6Ih5lrzzeuIacVNqigM8RwR93u2cEwD21LmEpvU,1676
6
6
  source_gitlab/schemas/deployments.json,sha256=GDnm625zWbz4YDTBI4x8_jeuIRcUn5LZLK8tP6ZHewo,5084
7
- source_gitlab/schemas/epic_issues.json,sha256=EevkQgr8Wmr1e0-JmGtHRIzjk_qigIvyoDQTV7iqYMA,5301
7
+ source_gitlab/schemas/epic_issues.json,sha256=TsRZr_YDqzLJCY2lcy-wvpQTlai2UHILaq2IG4f5w8k,5472
8
8
  source_gitlab/schemas/epics.json,sha256=XceeYZDyqeqiZsRYhwn472YHh4ZE2fsog_bIOuk_YQI,2790
9
9
  source_gitlab/schemas/group_issue_boards.json,sha256=CWr80x0rN0HGg_wI6Bi2ogKCqtRqZONK_0ol2W5R1jk,1687
10
10
  source_gitlab/schemas/group_labels.json,sha256=bthJK3U3vUvOfTPQaXINgzQmVba7K1fDeMvl6aCI8GQ,785
11
11
  source_gitlab/schemas/group_members.json,sha256=5NbL5GzDrEWyM3RGsQ1Yk30FHaT8N9w99-mUYkVyVXY,1261
12
12
  source_gitlab/schemas/group_milestones.json,sha256=qdmCjvcqO5gdMy5Eos8zPvct0wKQkx8qgbk37ZE-Mgg,898
13
- source_gitlab/schemas/groups.json,sha256=AKxn7Er0l539P3CM7NAAuZs1t-W2bqg5WHz3h6UW2-E,3622
14
- source_gitlab/schemas/issues.json,sha256=ygvmoIGtsSBkx5luFrrpuzj5NjHB5NS4G28eDwiwXNg,5556
13
+ source_gitlab/schemas/groups.json,sha256=My48VM9tUuuEr-nu6tKweTn5NohVBeze3kk2zJtVdok,4148
14
+ source_gitlab/schemas/issues.json,sha256=47jGc7XXUJuIC99PGfV_ez57VZZSEWiZIf_kgniG2MM,6304
15
15
  source_gitlab/schemas/jobs.json,sha256=yX5SnTg8z0iGInFjJ9WDMjD-3l70epwzKn4WrqClV4E,2275
16
- source_gitlab/schemas/merge_request_commits.json,sha256=VcgYRICw4xoTZgPv-nn63J-hSlbVmdZI1HsaYdhwjEk,5024
17
- source_gitlab/schemas/merge_requests.json,sha256=h7MTis7FkeUzzc1w-McPLgLENS4b1-TBgTzQsqG9ZKI,4319
16
+ source_gitlab/schemas/merge_request_commits.json,sha256=WyBDimMVUOaRcL5dOT3DBiu3nV4cGAqJqnc2S2kAKE4,1744
17
+ source_gitlab/schemas/merge_requests.json,sha256=qycpaRi_0l50vLUJflpbIheskeMZ1DQCtT-KHHOsjh0,4388
18
18
  source_gitlab/schemas/pipelines.json,sha256=jcI4ucib_OipiXhsjzEUvECX301uHF8sPE7X2PanosY,777
19
- source_gitlab/schemas/pipelines_extended.json,sha256=6YT0iinnrSxsN_O-ucmsjie08tMze1dyFzCNFWus6uY,1972
19
+ source_gitlab/schemas/pipelines_extended.json,sha256=IG_RMwdBhJ7rslhVGXQjC_u9CC02Ttvhf4P7H2IesQQ,2041
20
20
  source_gitlab/schemas/project_labels.json,sha256=uNvsTB3PiEsyb-iAr4qfCH4swYzoEpnsNjEahgRLqZQ,913
21
21
  source_gitlab/schemas/project_members.json,sha256=TACxu3MWiteGh2oy1-MGlGmjPhsN3vHqrdmACT2Bzwo,1263
22
22
  source_gitlab/schemas/project_milestones.json,sha256=18lSl2h-IMYkpc13DF86jQ7fODI5yZd4ad6eaiGlicQ,900
23
- source_gitlab/schemas/projects.json,sha256=hyfYxWZpl8t03eV6gmXlwiJWy9-wo1BYMUU-zHLPtyo,11641
23
+ source_gitlab/schemas/projects.json,sha256=V9Plxh9SB-zPxH8wOTSgOhHm4BPb4XS87RqUYN5bf9c,12131
24
24
  source_gitlab/schemas/releases.json,sha256=NfDIhLN2DBZhXjhn_5Xbw8PUO2e5KRgeiU8HgjsSoXU,1781
25
25
  source_gitlab/schemas/tags.json,sha256=uyRFTJF2d9z2tbIp69NhkJmrRMmaEuHEdSagP99iqjw,771
26
26
  source_gitlab/schemas/users.json,sha256=h89E6ZHQWbwU_MhErTZTtfiIZjF6aLAbHZQJ8TCTLY8,496
27
27
  source_gitlab/source.py,sha256=_ovomkDxlb62M4PqNczTRk29grlNEsx9Scoy-79eebM,12072
28
28
  source_gitlab/spec.json,sha256=0eit0zD-6kdcaNhJ1sAf0ABgIUwnlPV87Sbu3A4JvG0,6132
29
- source_gitlab/streams.py,sha256=hvAvtdzZxyctduxhvs3EqnsKjhQ4lejRoZ3CYhfORsQ,16013
29
+ source_gitlab/streams.py,sha256=2vjqwHYECUbTj9GQq2WpSK2m9Dy3o_KE0xs6bbRESNw,16122
30
30
  source_gitlab/utils.py,sha256=idtKZiT-ILRRtpO0rxPJ1wim-mWN6ewzN_KgLCmogBs,456
31
- airbyte_source_gitlab-2.1.2.dist-info/METADATA,sha256=BzbanxnPm0f7TqSE8IdB_bdR_9pCSdNBSYMSi4qQ1Fc,5231
32
- airbyte_source_gitlab-2.1.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
33
- airbyte_source_gitlab-2.1.2.dist-info/entry_points.txt,sha256=sbp4881P3oluHtnFDy4ZCVHDfL5fIkVQhJ7vka_qzTc,55
34
- airbyte_source_gitlab-2.1.2.dist-info/RECORD,,
31
+ airbyte_source_gitlab-3.0.0.dist-info/METADATA,sha256=tz_KHVfbFGldIeE2mtuYmlrffJuvY6HrrjeZ9szydgI,5231
32
+ airbyte_source_gitlab-3.0.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
33
+ airbyte_source_gitlab-3.0.0.dist-info/entry_points.txt,sha256=sbp4881P3oluHtnFDy4ZCVHDfL5fIkVQhJ7vka_qzTc,55
34
+ airbyte_source_gitlab-3.0.0.dist-info/RECORD,,
@@ -95,12 +95,10 @@ class MigrateStringToArray(ABC):
95
95
 
96
96
 
97
97
  class MigrateGroups(MigrateStringToArray):
98
-
99
98
  migrate_from_key: str = "groups"
100
99
  migrate_to_key: str = "groups_list"
101
100
 
102
101
 
103
102
  class MigrateProjects(MigrateStringToArray):
104
-
105
103
  migrate_from_key: str = "projects"
106
104
  migrate_to_key: str = "projects_list"
@@ -216,6 +216,12 @@
216
216
  },
217
217
  "group_id": {
218
218
  "type": ["null", "integer"]
219
+ },
220
+ "human_readable_end_date": {
221
+ "type": ["null", "string"]
222
+ },
223
+ "human_readable_timestamp": {
224
+ "type": ["null", "string"]
219
225
  }
220
226
  }
221
227
  },
@@ -38,6 +38,17 @@
38
38
  }
39
39
  }
40
40
  }
41
+ },
42
+ "allowed_to_push": {
43
+ "type": ["null", "array"],
44
+ "items": {
45
+ "type": ["null", "object"],
46
+ "properties": {
47
+ "access_level": {
48
+ "type": ["null", "integer"]
49
+ }
50
+ }
51
+ }
41
52
  }
42
53
  }
43
54
  },
@@ -74,6 +85,9 @@
74
85
  "subgroup_creation_level": {
75
86
  "type": ["null", "string"]
76
87
  },
88
+ "enabled_git_access_protocol": {
89
+ "type": ["null", "string"]
90
+ },
77
91
  "emails_disabled": {
78
92
  "type": ["null", "boolean"]
79
93
  },
@@ -153,6 +167,12 @@
153
167
  },
154
168
  "service_access_tokens_expiration_enforced": {
155
169
  "type": ["null", "boolean"]
170
+ },
171
+ "lock_math_rendering_limits_enabled": {
172
+ "type": ["null", "boolean"]
173
+ },
174
+ "math_rendering_limits_enabled": {
175
+ "type": ["null", "boolean"]
156
176
  }
157
177
  }
158
178
  }
@@ -118,6 +118,9 @@
118
118
  },
119
119
  "id": {
120
120
  "type": ["null", "integer"]
121
+ },
122
+ "locked": {
123
+ "type": ["null", "boolean"]
121
124
  }
122
125
  }
123
126
  },
@@ -141,6 +144,12 @@
141
144
  },
142
145
  "username": {
143
146
  "type": ["null", "string"]
147
+ },
148
+ "id": {
149
+ "type": ["null", "integer"]
150
+ },
151
+ "locked": {
152
+ "type": ["null", "boolean"]
144
153
  }
145
154
  }
146
155
  },
@@ -164,6 +173,18 @@
164
173
  },
165
174
  "username": {
166
175
  "type": ["null", "string"]
176
+ },
177
+ "human_readable_end_date": {
178
+ "type": ["null", "string"]
179
+ },
180
+ "human_readable_timestamp": {
181
+ "type": ["null", "string"]
182
+ },
183
+ "id": {
184
+ "type": ["null", "integer"]
185
+ },
186
+ "locked": {
187
+ "type": ["null", "boolean"]
167
188
  }
168
189
  }
169
190
  },
@@ -251,6 +272,15 @@
251
272
  },
252
273
  "group_id": {
253
274
  "type": ["null", "integer"]
275
+ },
276
+ "locked": {
277
+ "type": ["null", "boolean"]
278
+ },
279
+ "human_readable_end_date": {
280
+ "type": ["null", "string"]
281
+ },
282
+ "human_readable_timestamp": {
283
+ "type": ["null", "string"]
254
284
  }
255
285
  }
256
286
  },
@@ -2,233 +2,84 @@
2
2
  "$schema": "https://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
- "id": {
6
- "type": ["null", "integer"]
7
- },
8
- "iid": {
9
- "type": ["null", "integer"]
10
- },
11
5
  "project_id": {
12
6
  "type": ["null", "integer"]
13
7
  },
14
- "title": {
15
- "type": ["null", "string"]
16
- },
17
- "description": {
8
+ "id": {
18
9
  "type": ["null", "string"]
19
10
  },
20
- "state": {
11
+ "short_id": {
21
12
  "type": ["null", "string"]
22
13
  },
23
14
  "created_at": {
24
15
  "type": ["null", "string"],
25
16
  "format": "date-time"
26
17
  },
27
- "updated_at": {
28
- "type": ["null", "string"],
29
- "format": "date-time"
30
- },
31
- "merged_by": {
32
- "type": ["null", "object"]
33
- },
34
- "merged_at": {
35
- "type": ["null", "string"],
36
- "format": "date-time"
37
- },
38
- "prepared_at": {
39
- "type": ["null", "string"],
40
- "format": "date-time"
41
- },
42
- "closed_by": {
43
- "type": ["null", "object"]
44
- },
45
- "closed_at": {
46
- "type": ["null", "string"],
47
- "format": "date-time"
48
- },
49
- "target_branch": {
50
- "type": ["null", "string"]
51
- },
52
- "source_branch": {
53
- "type": ["null", "string"]
54
- },
55
- "user_notes_count": {
56
- "type": ["null", "integer"]
57
- },
58
- "upvotes": {
59
- "type": ["null", "integer"]
60
- },
61
- "downvotes": {
62
- "type": ["null", "integer"]
63
- },
64
- "author": {
65
- "type": ["null", "object"]
66
- },
67
- "assignees": {
68
- "type": ["null", "array"],
69
- "items": {
70
- "type": "object"
71
- }
72
- },
73
- "assignee": {
74
- "type": ["null", "object"]
75
- },
76
- "reviewers": {
18
+ "parent_ids": {
77
19
  "type": ["null", "array"],
78
20
  "items": {
79
- "type": "object"
21
+ "type": ["null", "string"]
80
22
  }
81
23
  },
82
- "source_project_id": {
83
- "type": ["null", "integer"]
84
- },
85
- "target_project_id": {
86
- "type": ["null", "integer"]
87
- },
88
- "labels": {
89
- "type": ["null", "array"],
90
- "items": {
91
- "type": "string"
92
- }
93
- },
94
- "work_in_progress": {
95
- "type": ["null", "boolean"]
96
- },
97
- "milestone": {
98
- "type": ["null", "object"]
99
- },
100
- "merge_when_pipeline_succeeds": {
101
- "type": ["null", "boolean"]
102
- },
103
- "merge_status": {
104
- "type": ["null", "string"]
105
- },
106
- "sha": {
107
- "type": ["null", "string"]
108
- },
109
- "merge_commit_sha": {
24
+ "title": {
110
25
  "type": ["null", "string"]
111
26
  },
112
- "squash_commit_sha": {
27
+ "message": {
113
28
  "type": ["null", "string"]
114
29
  },
115
- "discussion_locked": {
116
- "type": ["null", "boolean"]
117
- },
118
- "should_remove_source_branch": {
119
- "type": ["null", "boolean"]
120
- },
121
- "force_remove_source_branch": {
122
- "type": ["null", "boolean"]
123
- },
124
- "reference": {
30
+ "author_name": {
125
31
  "type": ["null", "string"]
126
32
  },
127
- "references": {
128
- "type": ["null", "object"]
129
- },
130
- "web_url": {
33
+ "author_email": {
131
34
  "type": ["null", "string"]
132
35
  },
133
- "time_stats": {
134
- "type": ["null", "object"]
135
- },
136
- "squash": {
137
- "type": ["null", "boolean"]
138
- },
139
- "task_completion_status": {
140
- "type": ["null", "object"]
141
- },
142
- "has_conflicts": {
143
- "type": ["null", "boolean"]
144
- },
145
- "blocking_discussions_resolved": {
146
- "type": ["null", "boolean"]
147
- },
148
- "approvals_before_merge": {
149
- "type": ["null", "boolean", "string", "object"]
150
- },
151
- "subscribed": {
152
- "type": ["null", "boolean"]
153
- },
154
- "changes_count": {
155
- "type": ["null", "integer", "string"]
156
- },
157
- "latest_build_started_at": {
158
- "type": ["null", "string"],
159
- "format": "date-time"
160
- },
161
- "latest_build_finished_at": {
36
+ "authored_date": {
162
37
  "type": ["null", "string"],
163
38
  "format": "date-time"
164
39
  },
165
- "first_deployed_to_production_at": {
166
- "type": ["null", "string"],
167
- "format": "date-time"
168
- },
169
- "pipeline": {
170
- "type": ["null", "object"]
171
- },
172
- "head_pipeline": {
173
- "type": ["null", "object", "string", "boolean", "integer"]
174
- },
175
- "diff_refs": {
40
+ "extended_trailers": {
176
41
  "type": ["null", "object"],
177
42
  "properties": {
178
- "base_sha": {
179
- "type": ["null", "string"]
180
- },
181
- "head_sha": {
182
- "type": ["null", "string"]
183
- },
184
- "start_sha": {
185
- "type": ["null", "string"]
43
+ "Cc": {
44
+ "type": ["null", "array"],
45
+ "items": {
46
+ "type": ["null", "string"]
47
+ }
186
48
  }
187
49
  }
188
50
  },
189
- "merge_error": {
190
- "type": ["null", "boolean", "string"]
191
- },
192
- "first_contribution": {
193
- "type": ["null", "boolean"]
51
+ "committer_name": {
52
+ "type": ["null", "string"]
194
53
  },
195
- "user": {
196
- "type": ["null", "object"]
54
+ "committer_email": {
55
+ "type": ["null", "string"]
197
56
  },
198
- "merge_request_iid": {
199
- "type": ["null", "integer"]
57
+ "committed_date": {
58
+ "type": ["null", "string"],
59
+ "format": "date-time"
200
60
  },
201
- "draft": {
202
- "type": ["null", "boolean"]
61
+ "trailers": {
62
+ "type": ["null", "object"]
203
63
  },
204
- "detailed_merge_status": {
64
+ "web_url": {
205
65
  "type": ["null", "string"]
206
66
  },
207
- "squash_on_merge": {
208
- "type": ["null", "boolean"]
209
- },
210
- "merge_user": {
67
+ "stats": {
211
68
  "type": ["null", "object"],
212
69
  "properties": {
213
- "id": {
70
+ "additions": {
214
71
  "type": ["null", "integer"]
215
72
  },
216
- "name": {
217
- "type": ["null", "string"]
218
- },
219
- "username": {
220
- "type": ["null", "string"]
221
- },
222
- "state": {
223
- "type": ["null", "string"]
224
- },
225
- "avatar_url": {
226
- "type": ["null", "string"]
73
+ "deletions": {
74
+ "type": ["null", "integer"]
227
75
  },
228
- "web_url": {
229
- "type": ["null", "string"]
76
+ "total": {
77
+ "type": ["null", "integer"]
230
78
  }
231
79
  }
80
+ },
81
+ "merge_request_iid": {
82
+ "type": ["null", "integer"]
232
83
  }
233
84
  }
234
85
  }
@@ -194,6 +194,9 @@
194
194
  },
195
195
  "web_url": {
196
196
  "type": ["null", "string"]
197
+ },
198
+ "locked": {
199
+ "type": ["null", "boolean"]
197
200
  }
198
201
  }
199
202
  }
@@ -63,6 +63,9 @@
63
63
  },
64
64
  "web_url": {
65
65
  "type": ["null", "string"]
66
+ },
67
+ "locked": {
68
+ "type": ["null", "boolean"]
66
69
  }
67
70
  }
68
71
  },
@@ -123,6 +123,9 @@
123
123
  },
124
124
  "members": {
125
125
  "type": ["null", "string"]
126
+ },
127
+ "cluster_agents": {
128
+ "type": ["null", "string"]
126
129
  }
127
130
  }
128
131
  },
@@ -329,6 +332,15 @@
329
332
  },
330
333
  "packages_size": {
331
334
  "type": ["null", "integer"]
335
+ },
336
+ "container_registry_size": {
337
+ "type": ["null", "integer"]
338
+ },
339
+ "pipeline_artifacts_size": {
340
+ "type": ["null", "integer"]
341
+ },
342
+ "uploads_size": {
343
+ "type": ["null", "integer"]
332
344
  }
333
345
  }
334
346
  },
@@ -492,6 +504,12 @@
492
504
  },
493
505
  "ci_restrict_pipeline_cancellation_role": {
494
506
  "type": ["null", "string"]
507
+ },
508
+ "repository_object_format": {
509
+ "type": ["null", "string"]
510
+ },
511
+ "warn_about_potentially_unwanted_characters": {
512
+ "type": ["null", "boolean"]
495
513
  }
496
514
  }
497
515
  }
source_gitlab/streams.py CHANGED
@@ -339,8 +339,10 @@ class MergeRequests(IncrementalGitlabChildStream):
339
339
 
340
340
 
341
341
  class MergeRequestCommits(GitlabChildStream):
342
+ """Docs: https://docs.gitlab.com/ee/api/merge_requests.html#get-single-merge-request-commits"""
343
+
342
344
  path_list = ["project_id", "iid"]
343
- path_template = "projects/{project_id}/merge_requests/{iid}"
345
+ path_template = "projects/{project_id}/merge_requests/{iid}/commits"
344
346
 
345
347
  def transform(self, record, stream_slice: Mapping[str, Any] = None, **kwargs):
346
348
  super().transform(record, stream_slice, **kwargs)