Conf doc sync improvements (#3643)

* Reduce number of requests to Confluence

* undo

* added a way to dynamically adjust the pagination limit

* undo
This commit is contained in:
hagen-danswer
2025-01-09 12:56:56 -08:00
committed by GitHub
parent 97a963b4bf
commit d40fd82803
2 changed files with 36 additions and 11 deletions

View File

@@ -67,6 +67,13 @@ def _get_server_space_permissions(
else:
logger.warning(f"Email for user {user_name} not found in Confluence")
if not user_emails and not group_names:
logger.warning(
"No user emails or group names found in Confluence space permissions"
f"\nSpace key: {space_key}"
f"\nSpace permissions: {space_permissions}"
)
return ExternalAccess(
external_user_emails=user_emails,
external_user_group_ids=group_names,