Skip to content

WIP Update Discourse connector #11

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion source-discourse-fetcher/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: d12c5a88-5e78-452d-b957-eb4b2fd6e1dd
dockerImageTag: 0.1.0
dockerImageTag: 0.1.2
dockerRepository: harbor.status.im/status-im/airbyte/source-discourse-fetcher
githubIssueLabel: source-discourse-fetcher
icon: discourse-fetcher.svg
Expand Down
71 changes: 71 additions & 0 deletions source-discourse-fetcher/sample_files/configured_catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,77 @@
},
"sync_mode": "incremental",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "topic",
"json_schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object"
},
"supported_sync_modes": [
"full_refresh", "incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "group",
"json_schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object"
},
"supported_sync_modes": [
"full_refresh", "incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "group_member`",
"json_schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object"
},
"supported_sync_modes": [
"full_refresh", "incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "tag",
"json_schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object"
},
"supported_sync_modes": [
"full_refresh", "incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "overwrite"
}
,
{
"stream": {
"name": "category",
"json_schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object"
},
"supported_sync_modes": [
"full_refresh", "incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "overwrite"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Generated schema for Root",
"type": "object",
"properties": {
"id": {
"type": ["null", "number"]
},
"name": {
"type": ["null", "string"]
},
"color": {
"type": ["null", "string"]
},
"text_color": {
"type": ["null", "string"]
},
"slug": {
"type": ["null", "string"]
},
"topic_count": {
"type": ["null", "number"]
},
"post_count": {
"type": ["null", "number"]
},
"position": {
"type": ["null", "number"]
},
"description": {
"type": ["null", "string"]
},
"description_text": {
"type": ["null", "string"]
},
"description_excerpt": {
"type": ["null", "string"]
},
"topic_url": {
"type": ["null", "string"]
},
"read_restricted": {
"type": ["null", "boolean"]
},
"permission": {
"type": ["null", "number"]
},
"notification_level": {
"type": ["null", "number"]
},
"can_edit": {
"type": ["null", "boolean"]
},
"topic_template": {
"type": ["null", "string"]
},
"has_children": {
"type": ["null", "boolean"]
},
"sort_order": {
"type": ["null", "string"]
},
"sort_ascending": {
"type": ["null", "string"]
},
"show_subcategory_list": {
"type": ["null", "boolean"]
},
"num_featured_topics": {
"type": ["null", "number"]
},
"default_view": {
"type": ["null", "string"]
},
"subcategory_list_style": {
"type": ["null", "string"]
},
"default_top_period": {
"type": ["null", "string"]
},
"default_list_filter": {
"type": ["null", "string"]
},
"minimum_required_tags": {
"type": ["null", "number"]
},
"navigate_to_first_post_after_read": {
"type": ["null", "boolean"]
},
"topics_day": {
"type": ["null", "number"]
},
"topics_week": {
"type": ["null", "number"]
},
"topics_month": {
"type": ["null", "number"]
},
"topics_year": {
"type": ["null", "number"]
},
"topics_all_time": {
"type": ["null", "number"]
},
"is_uncategorized": {
"type": ["null", "boolean"]
},
"uploaded_logo": {
"type": ["null", "string"]
},
"uploaded_logo_dark": {
"type": ["null", "string"]
},
"uploaded_background": {
"type": ["null", "string"]
},
"uploaded_background_dark": {
"type": ["null", "string"]
}
}
}
102 changes: 102 additions & 0 deletions source-discourse-fetcher/source_discourse_fetcher/schemas/group.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": ["null", "number"]
},
"automatic": {
"type": ["null", "boolean"]
},
"name": {
"type": ["null", "string"]
},
"display_name": {
"type": ["null", "string"]
},
"user_count": {
"type": ["null", "number"]
},
"mentionable_level": {
"type": ["null", "number"]
},
"messageable_level": {
"type": ["null", "number"]
},
"visibility_level": {
"type": ["null", "number"]
},
"primary_group": {
"type": ["null", "boolean"]
},
"title": {
"type": ["null", "string"]
},
"grant_trust_level": {
"type": ["null", "string"]
},
"incoming_email": {
"type": ["null", "string"]
},
"has_messages": {
"type": ["null", "boolean"]
},
"flair_url": {
"type": ["null", "string"]
},
"flair_bg_color": {
"type": ["null", "string"]
},
"flair_color": {
"type": ["null", "string"]
},
"bio_raw": {
"type": ["null", "string"]
},
"bio_cooked": {
"type": ["null", "string"]
},
"bio_excerpt": {
"type": ["null", "string"]
},
"public_admission": {
"type": ["null", "boolean"]
},
"public_exit": {
"type": ["null", "boolean"]
},
"allow_membership_requests": {
"type": ["null", "boolean"]
},
"full_name": {
"type": ["null", "string"]
},
"default_notification_level": {
"type": ["null", "number"]
},
"membership_request_template": {
"type": ["null", "string"]
},
"is_group_user": {
"type": ["null", "boolean"]
},
"is_group_owner": {
"type": ["null", "boolean"]
},
"members_visibility_level": {
"type": ["null", "number"]
},
"can_see_members": {
"type": ["null", "boolean"]
},
"can_admin_group": {
"type": ["null", "boolean"]
},
"can_edit_group": {
"type": ["null", "boolean"]
},
"publish_read_state": {
"type": ["null", "boolean"]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Generated schema for Root",
"type": "object",
"properties": {
"id": {
"type": ["null", "number"]
},
"username": {
"type": ["null", "string"]
},
"name": {
"type": ["null", "string"]
},
"avatar_template": {
"type": ["null", "string"]
},
"title": {
"type": ["null", "string"]
},
"last_posted_at": {
"type": ["null", "string"]
},
"last_seen_at": {
"type": ["null", "string"]
},
"added_at": {
"type": ["null", "string"]
},
"timezone": {
"type": ["null", "string"]
}
}}
21 changes: 21 additions & 0 deletions source-discourse-fetcher/source_discourse_fetcher/schemas/tag.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": ["null", "string"]
},
"text": {
"type": ["null", "string"]
},
"count": {
"type": ["null", "number"]
},
"pm_count": {
"type": ["null", "number"]
},
"target_tag": {
"type": ["null", "string"]
}
}
}
Loading