-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
replace deprecated confluence group api endpoint #3197
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -269,20 +269,3 @@ def datetime_from_string(datetime_string: str) -> datetime: | |||
datetime_object = datetime_object.astimezone(timezone.utc) | |||
|
|||
return datetime_object | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this to the onyx_confluence.py file
@@ -38,41 +62,21 @@ def confluence_group_sync( | |||
is_cloud = cc_pair.connector.connector_specific_config.get("is_cloud", False) | |||
wiki_base = cc_pair.connector.connector_specific_config["wiki_base"] | |||
|
|||
# test connection with direct client, no retries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this to the onyx_confluence.py file
@@ -118,21 +116,6 @@ def load_credentials(self, credentials: dict[str, Any]) -> dict[str, Any] | None | |||
is_cloud=self.is_cloud, | |||
wiki_base=self.wiki_base, | |||
) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this to the onyx_confluence.py file
@@ -29,7 +29,7 @@ | |||
from ee.danswer.db.connector_credential_pair import get_all_auto_sync_cc_pairs | |||
from ee.danswer.db.external_perm import ExternalUserGroup | |||
from ee.danswer.db.external_perm import replace_user__ext_group_for_cc_pair | |||
from ee.danswer.external_permissions.sync_params import EXTERNAL_GROUP_SYNC_PERIOD | |||
from ee.danswer.external_permissions.sync_params import EXTERNAL_GROUP_SYNC_PERIODS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
individually control group sync periods based on source
* replace deprecated confluence group api endpoint * reworked it * properly escaped the user query * less passing around is_cloud * done
Description
^
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.