Skip to content

Commit f34b63b

Browse files
harshithmullapudituanchris
authored andcommitted
Publish new source Confluence airbytehq#7241 (airbytehq#7666)
* initial commit * add remaining streams * fix warning and unit test * clean up * revert unrelated files * remove state files * lint * add documentation strings * added confluence credentials to ci * fix: removed audit from configured catalog as it cannot be pulled in free account * fix: format Co-authored-by: Tuan Nguyen <[email protected]>
1 parent 0222e03 commit f34b63b

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.github/workflows/publish-command.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ jobs:
191191
MONGODB_TEST_CREDS: ${{ secrets.MONGODB_TEST_CREDS }}
192192
SOURCE_ONESIGNAL_TEST_CREDS: ${{ secrets.SOURCE_ONESIGNAL_TEST_CREDS }}
193193
SOURCE_SALESLOFT_TEST_CREDS: ${{ secrets.SOURCE_SALESLOFT_TEST_CREDS }}
194+
SOURCE_CONFLUENCE_TEST_CREDS: ${{ secrets.SOURCE_CONFLUENCE_TEST_CREDS }}
194195
SOURCE_AMAZON_SQS_TEST_CREDS: ${{ secrets.SOURCE_AMAZON_SQS_TEST_CREDS }}
195196
SOURCE_FRESHSERVICE_TEST_CREDS: ${{ secrets.SOURCE_FRESHSERVICE_TEST_CREDS }}
196197
SOURCE_LEMLIST_TEST_CREDS: ${{ secrets.SOURCE_LEMLIST_TEST_CREDS }}

.github/workflows/test-command.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ jobs:
186186
MONGODB_TEST_CREDS: ${{ secrets.MONGODB_TEST_CREDS }}
187187
SOURCE_ONESIGNAL_TEST_CREDS: ${{ secrets.SOURCE_ONESIGNAL_TEST_CREDS }}
188188
SOURCE_SALESLOFT_TEST_CREDS: ${{ secrets.SOURCE_SALESLOFT_TEST_CREDS }}
189+
SOURCE_CONFLUENCE_TEST_CREDS: ${{ secrets.SOURCE_CONFLUENCE_TEST_CREDS }}
189190
SOURCE_AMAZON_SQS_TEST_CREDS: ${{ secrets.SOURCE_AMAZON_SQS_TEST_CREDS }}
190191
SOURCE_FRESHSERVICE_TEST_CREDS: ${{ secrets.SOURCE_FRESHSERVICE_TEST_CREDS }}
191192
SOURCE_LEMLIST_TEST_CREDS: ${{ secrets.SOURCE_LEMLIST_TEST_CREDS }}

airbyte-integrations/connectors/source-confluence/integration_tests/configured_catalog.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@
3939
},
4040
"sync_mode": "full_refresh",
4141
"destination_sync_mode": "overwrite"
42-
},
43-
{
44-
"stream": {
45-
"name": "audit",
46-
"json_schema": {},
47-
"supported_sync_modes": ["full_refresh"],
48-
"source_defined_primary_key": [["id"]]
49-
},
50-
"sync_mode": "full_refresh",
51-
"destination_sync_mode": "overwrite"
5242
}
5343
]
5444
}

airbyte-integrations/connectors/source-confluence/source_confluence/source.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,23 @@ class Pages(BaseContentStream):
8282
"""
8383
API documentation: https://developer.atlassian.com/cloud/confluence/rest/api-group-content/#api-wiki-rest-api-content-get
8484
"""
85+
8586
content_type = "page"
8687

8788

8889
class BlogPosts(BaseContentStream):
8990
"""
9091
API documentation: https://developer.atlassian.com/cloud/confluence/rest/api-group-content/#api-wiki-rest-api-content-get
9192
"""
93+
9294
content_type = "blogpost"
9395

9496

9597
class Space(ConfluenceStream):
9698
"""
9799
API documentation: https://developer.atlassian.com/cloud/confluence/rest/api-group-space/#api-wiki-rest-api-space-get
98100
"""
101+
99102
api_name = "space"
100103
expand = ["permissions", "icon", "description.plain", "description.view"]
101104

@@ -104,13 +107,15 @@ class Group(ConfluenceStream):
104107
"""
105108
API documentation: https://developer.atlassian.com/cloud/confluence/rest/api-group-group/#api-wiki-rest-api-group-get
106109
"""
110+
107111
api_name = "group"
108112

109113

110114
class Audit(ConfluenceStream):
111115
"""
112116
API documentation: https://developer.atlassian.com/cloud/confluence/rest/api-group-audit/#api-wiki-rest-api-audit-get
113117
"""
118+
114119
primary_key = "author"
115120
api_name = "audit"
116121
limit = 1000

tools/bin/ci_credentials.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ write_standard_creds source-braintree "$BRAINTREE_TEST_CREDS"
6464
write_standard_creds source-cart "$CART_TEST_CREDS"
6565
write_standard_creds source-chargebee "$CHARGEBEE_INTEGRATION_TEST_CREDS"
6666
write_standard_creds source-close-com "$SOURCE_CLOSE_COM_CREDS"
67+
write_standard_creds source-confluence "$SOURCE_CONFLUENCE_TEST_CREDS"
6768
write_standard_creds source-delighted "$SOURCE_DELIGHTED_TEST_CREDS"
6869
write_standard_creds source-drift "$DRIFT_INTEGRATION_TEST_CREDS"
6970
write_standard_creds source-dixa "$SOURCE_DIXA_TEST_CREDS"

0 commit comments

Comments
 (0)