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

Remove auth caching from chat backend #4076

Closed
wants to merge 1 commit into from

Conversation

sweep-nightly[bot]
Copy link
Contributor

@sweep-nightly sweep-nightly bot commented Jun 21, 2024

Purpose

This pull request removes the auth caching mechanism from the chat backend to improve consistency and simplify the codebase.

Description

The chat backend currently uses auth caching to improve performance. This is implemented using the diskcache library with a Cache object named auth_cache. The caching is applied to two main functions: get_cached_installation_id and get_github_client_from_org.

To remove the auth caching, the following changes have been made:

  1. Removed the auth_cache object.
  2. Removed the @auth_cache.memoize() decorators from the relevant functions.
  3. Renamed the functions to reflect that they are no longer cached (get_cached_installation_id -> get_installation_id_for_org, get_github_client_from_org -> get_github_client_from_org).

Summary

  • Removed auth_cache object
  • Removed @auth_cache.memoize() decorators from get_cached_installation_id and get_github_client_from_org functions
  • Renamed get_cached_installation_id to get_installation_id_for_org and get_github_client_from_org to get_github_client_from_org

Suggested changes from Sweep Chat by @kevinlu1248. Continue chatting at http://localhost:3000/c/e2e3b4b9-3ec2-4081-8997-f565a5508064.

Copy link

vercel bot commented Jun 21, 2024

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

Name Status Preview Comments Updated (UTC)
sweep-chat 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 21, 2024 0:53am
sweep-chat-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 21, 2024 0:53am
sweep-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 21, 2024 0:53am
sweep-pulley 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 21, 2024 0:53am

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