Closed sweep-nightly[bot] closed 5 months ago
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 |
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 aCache
object namedauth_cache
. The caching is applied to two main functions:get_cached_installation_id
andget_github_client_from_org
.To remove the auth caching, the following changes have been made:
auth_cache
object.@auth_cache.memoize()
decorators from the relevant functions.get_cached_installation_id
->get_installation_id_for_org
,get_github_client_from_org
->get_github_client_from_org
).Summary
auth_cache
object@auth_cache.memoize()
decorators fromget_cached_installation_id
andget_github_client_from_org
functionsget_cached_installation_id
toget_installation_id_for_org
andget_github_client_from_org
toget_github_client_from_org
Suggested changes from Sweep Chat by @kevinlu1248. Continue chatting at http://localhost:3000/c/e2e3b4b9-3ec2-4081-8997-f565a5508064.