community[patch]: expanding version in confluence loader (#19324)

**Description:**
Expanding version in all the Confluence API calls so to get when the
page was last modified/created in all cases.

**Issue:** #12812 
**Twitter handle:** zzste
This commit is contained in:
Stefano Mosconi 2024-03-26 02:08:01 +02:00 committed by GitHub
parent 08b769d539
commit 01fc69c191
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -316,7 +316,7 @@ class ConfluenceLoader(BaseLoader):
limit=limit,
max_pages=max_pages,
status="any" if include_archived_content else "current",
expand=content_format.value,
expand=f"{content_format.value},version",
)
yield from self.process_pages(
pages,
@ -349,7 +349,7 @@ class ConfluenceLoader(BaseLoader):
limit=limit,
max_pages=max_pages,
include_archived_spaces=include_archived_content,
expand=content_format.value,
expand=f"{content_format.value},version",
)
yield from self.process_pages(
pages,