Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitLab Source: add GroupIssueBoards stream #13252

Merged
merged 6 commits into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@
"destination_sync_mode": "append",
"cursor_field": ["created_at"]
},
{
"stream": {
"name": "group_issue_boards",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "issues",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": ["null", "integer"]
},
"name": {
"type": ["null", "string"]
},
"hide_backlog_list": {
"type": ["null", "boolean"]
},
"hide_closed_list": {
"type": ["null", "boolean"]
},
"project": {
"type": ["null", "integer"]
},
"lists": {
"type": ["null", "array"],
"items": [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"items": [
"items":

remove unecessary [ ] from items and please share output from integraionTest. Our account doesn't have group_issue_boards data.

{
"type": ["null", "object"],
"properties": {
"id": {
"type": ["null", "integer"]
},
"label": {
"type": ["null", "object"],
"properties": {
"id": {
"type": ["null", "integer"]
},
"name": {
"type": ["null", "string"]
},
"description": {
"type": ["null", "string"]
},
"description_html": {
"type": ["null", "string"]
},
"text_color": {
"type": ["null", "string"]
},
"color": {
"type": ["null", "string"]
}
}
},
"position": {
"type": ["null", "integer"]
}
}
}
]
},
"group_id": {
"type": ["null", "integer"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
EpicIssues,
Epics,
GitlabStream,
GroupIssueBoards,
GroupLabels,
GroupMembers,
GroupMilestones,
Expand Down Expand Up @@ -105,6 +106,7 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]:
Commits(parent_stream=projects, repository_part=True, start_date=config["start_date"], **auth_params),
epics,
EpicIssues(parent_stream=epics, **auth_params),
GroupIssueBoards(parent_stream=groups, **auth_params),
Issues(parent_stream=projects, start_date=config["start_date"], **auth_params),
Jobs(parent_stream=pipelines, **auth_params),
ProjectMilestones(parent_stream=projects, **auth_params),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ def transform(self, record, stream_slice: Mapping[str, Any] = None, **kwargs):
return record


class GroupIssueBoards(GitlabChildStream):
path_template = "groups/{id}/boards"
flatten_parent_id = True


class Users(GitlabChildStream):
pass

Expand Down