Skip to content

Fix #208: do not cache installation status endpoint#218

Open
marktech0813 wants to merge 1 commit into
entrius:mainfrom
marktech0813:fix/208-gittensor
Open

Fix #208: do not cache installation status endpoint#218
marktech0813 wants to merge 1 commit into
entrius:mainfrom
marktech0813:fix/208-gittensor

Conversation

@marktech0813

Copy link
Copy Markdown

Summary

Fixes #208GET /api/v1/repos/:owner/:repo/installation was cached for 60s by CustomCacheInterceptor, so after an install webhook the UI could still see installed: false.

Change

  • Add @NoCache() on getInstallationStatus, same pattern as health / pulls file endpoints.

Test plan

  • With production cache/Redis, call installation status for an uninstalled repo (installed: false)
  • Install the app (webhook sets installation_id)
  • Immediately repeat GET — expect installed: true without waiting 60s

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label Jul 16, 2026
GET /repos/:owner/:repo/installation gates registration and must reflect
webhook updates immediately. Opt out of CustomCacheInterceptor via @nocache(),
matching health and pulls file endpoints.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant