Skip to content
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

Improved logging and added comments #2763

Merged
merged 3 commits into from
Oct 10, 2024
Merged

Improved logging and added comments #2763

merged 3 commits into from
Oct 10, 2024

Conversation

hagen-danswer
Copy link
Contributor

Description

This should help us troubleshoot any issues with confluence permission syncing and make the code easier to debug

Copy link

vercel bot commented Oct 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2024 5:25pm

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This pull request enhances logging and adds comments to improve debugging of Confluence permission syncing, focusing on better error handling and code structure.

  • Added helper functions in backend/ee/danswer/external_permissions/confluence/doc_sync.py to extract user emails, group names, and permissions
  • Improved handling of page-specific restrictions in Confluence document synchronization
  • Enhanced error logging in backend/ee/danswer/external_permissions/permission_sync.py by using logger.exception() for full stack traces
  • Restructured the permission syncing process in doc_sync.py for better clarity and maintainability
  • Modified existing functions in doc_sync.py to provide more detailed logging information

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@Weves Weves added this pull request to the merge queue Oct 10, 2024
Merged via the queue into main with commit 101b010 Oct 10, 2024
7 checks passed
@hagen-danswer hagen-danswer deleted the confluence-perm-logging branch October 10, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants