Skip to content

Commit cabadfa

Browse files
authored
Confluence source connector: specify space keys, not space names (#726)
1 parent c8e42fe commit cabadfa

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
lines changed

snippets/general-shared-text/confluence-api-placeholders.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
- `<url>` (_required_) - The URL to the target Confluence Cloud instance.
33
- `<max-num-of-spaces>` - The maximum number of Confluence spaces to access within the Confluence Cloud instance. The default is `500` unless otherwise specified.
44
- `<max-num-of-docs-from-each-space>` - The maximum number of documents to access within each space. The default is `150` unless otherwise specified.
5-
- `spaces` is an array of strings, with each `<space-name>` specifying the name of a space to access, for example: `["luke","paul"]`. By default, if no space names are specified, and the `<max-num-of-spaces>` is exceeded for the instance, be aware that you might get unexpected results.
5+
- `spaces` is an array of strings, with each `<space-key>` specifying the key (not display name) of a space to access, for example: `["luke","paul"]`. By default, if no space keys are specified, and the `<max-num-of-spaces>` is exceeded for the instance, be aware that you might get unexpected results.
66
- `extract_images` - Set to `true` to download images and replace the HTML content with Base64-encoded images. The default is `false` if not otherwise specified.
77
- `extract_files` - Set to `true` to download any embedded files in pages. The default is `false` if not otherwise specified.
88

snippets/general-shared-text/confluence-cli-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The following environment variables:
1919

2020
Additional settings include:
2121

22-
- `--spaces` (CLI) or `spaces` (Python): Optionally, the list of the names of the specific spaces to access, expressed as a comma-separated list of strings (CLI) or an array of strings (Python), with each string representing a space's name. The default is no specific spaces, if not otherwise specified.
22+
- `--spaces` (CLI) or `spaces` (Python): Optionally, the list of the keys (not display names) of the specific spaces to access, expressed as a comma-separated list of strings (CLI) or an array of strings (Python), with each string representing a space's key (not display name). The default is no specific spaces, if not otherwise specified.
2323
- `--max-num-of-spaces` (CLI) or `max_num_of_spaces` (Python): Optionally, the maximum number of spaces to access, expressed as an integer. The default value is `500` if not otherwise specified.
2424
- `--max-num-of-docs-from-each-space` (CLI) or `max_num_of_docs_from_each_space` (Python): Optionally, the maximum number of documents to access from each space, expressed as an integer. The default value is `100` if not otherwise specified.
2525
- `--cloud` or `--no-cloud` (CLI) or `cloud` (Python): Optionally, whether to use Confluence Cloud (`--cloud` for CLI or `cloud=True` for Python). The default is `--no-cloud` (CLI) or `cloud=False` (Python) if not otherwise specified.

snippets/general-shared-text/confluence-platform.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Fill in the following fields:
1010
The default is 500 unless otherwise specified.
1111
- **Max number of docs per space**: The maximum number of documents to access within each space.
1212
The default is 150 unless otherwise specified.
13-
- **List of spaces**: A comma-separated string that lists the names of all of the spaces to access, for example: `luke,paul`.
14-
By default, if no space names are specified, and the **Max Number of Spaces** is reached for the instance, be aware that you might get
13+
- **List of spaces**: A comma-separated string that lists the keys (not display names) of all of the spaces to access, for example: `luke,paul`.
14+
By default, if no space keys are specified, and the **Max Number of Spaces** is reached for the instance, be aware that you might get
1515
unexpected results.
1616
- **Extract inline images**: Check this box to download images and replace the HTML content with Base64-encoded images. By default, this box is unchecked.
1717
- **Extract files**: Check this box to download any embedded files in pages. By default, this box is unchecked.

snippets/general-shared-text/confluence.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@
1818
- For Confluence Data Center only, the target user's personal access token (PAT).
1919
[Create a PAT](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html).
2020

21-
- Optionally, the names of the specific [spaces](https://support.atlassian.com/confluence-cloud/docs/navigate-spaces/) in the Confluence instance to access.
21+
- Optionally, the keys (not display names) of the specific [spaces](https://support.atlassian.com/confluence-cloud/docs/navigate-spaces/) in the Confluence instance to access. To get a space's key,
22+
which is different from a space's display name, open the space in your web browser and look at the URL. The space's key is the part of the URL after `spaces/` but before the next `/` after that.
2223

2324
The following video provides related setup information for Confluence Cloud:
2425

2526
<iframe
2627
width="560"
2728
height="315"
28-
src="https://www.youtube.com/embed/tXu6S6Pd7Dc"
29+
src="https://www.youtube.com/embed/3PsFJkcIotI"
2930
title="YouTube video player"
3031
frameborder="0"
3132
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"

snippets/source_connectors/confluence.sh.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ unstructured-ingest \
88
--url $CONFLUENCE_URL \
99
--username $CONFLUENCE_USERNAME \
1010
--cloud \
11-
--spaces luke,paul \
11+
--spaces <space-key>,<space-key> \
1212
--max-num-of-spaces 500 \
1313
--max-num-of-docs-from-each-space 150 \
1414
--extract-images \
@@ -26,7 +26,7 @@ unstructured-ingest \
2626
confluence \
2727
--token $CONFLUENCE_PERSONAL_ACCESS_TOKEN \
2828
--url $CONFLUENCE_URL \
29-
--spaces luke,paul \
29+
--spaces <space-key>,<space-key> \
3030
--max-num-of-spaces 500 \
3131
--max-num-of-docs-from-each-space 150 \
3232
--extract-images \

snippets/source_connectors/confluence.v2.py.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if __name__ == "__main__":
2222
Pipeline.from_configs(
2323
context=ProcessorConfig(),
2424
indexer_config=ConfluenceIndexerConfig(
25-
spaces=["luke", "paul"],
25+
spaces=["<space-key>", "<space-key>"],
2626
max_num_of_spaces=500,
2727
max_num_of_docs_from_each_space=150
2828
),

snippets/source_connectors/confluence_rest_create.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ curl --request 'POST' --location \
1212
"url": "<url>",
1313
"max_num_of_spaces": <max-num-of-spaces>,
1414
"max_num_of_docs_from_each_space": <max-num-of-docs-from-each-space>,
15-
"spaces": ["<space-name>", "<space-name>"],
15+
"spaces": ["<space-key>", "<space-key>"],
1616
"extract_images": "<true|false>",
1717
"extract_files": "<true|false>",
1818

snippets/source_connectors/confluence_sdk.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ with UnstructuredClient(api_key_auth=os.getenv("UNSTRUCTURED_API_KEY")) as clien
1515
"url": "<url>",
1616
"max_num_of_spaces": <max-num-of-spaces>,
1717
"max_num_of_docs_from_each_space": <max-num-of-docs-from-each-space>,
18-
"spaces": ["<space-name>", "<space-name>"],
18+
"spaces": ["<space-key>", "<space-key>"],
1919
"extract_images": <True|False>,
2020
"extract_files": <True|False>,
2121

0 commit comments

Comments
 (0)