-
Notifications
You must be signed in to change notification settings - Fork 2.1k
make sure the permission client uses the proper retry handler #4737
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
PR Summary
This PR fixes an issue with Slack permission clients not sharing retry handlers correctly by modifying the client initialization process and Redis-based rate limit handling.
- Critical bug in
backend/ee/onyx/external_permissions/slack/doc_sync.py
: The properly configured WebClient with retry handler is immediately overwritten with a basic WebClient, negating the intended fix - Added static method
make_slack_web_client
inbackend/onyx/connectors/slack/connector.py
to ensure consistent retry handler configuration across all clients - Improved Redis client initialization with proper tenant ID validation for rate limit tracking
- Moved delay lock and key generation to static methods for better encapsulation and reusability
- Recommend removing the redundant WebClient initialization in
doc_sync.py
that overwrites the properly configured client
2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
…ot-app#4737) * make sure the permission client uses the proper retry handler * fix client --------- Co-authored-by: Richard Kuo <rkuo@rkuo.com>
…ot-app#4737) * make sure the permission client uses the proper retry handler * fix client --------- Co-authored-by: Richard Kuo <rkuo@rkuo.com>
…ot-app#4737) * make sure the permission client uses the proper retry handler * fix client --------- Co-authored-by: Richard Kuo <rkuo@rkuo.com>
…ot-app#4737) * make sure the permission client uses the proper retry handler * fix client --------- Co-authored-by: Richard Kuo <rkuo@rkuo.com>
Description
Fixes https://linear.app/danswer/issue/DAN-1993/floqast-slack-permissions-not-sharing-retry-handler
How Has This Been Tested?
[Describe the tests you ran to verify your changes]
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.