Skip to content

Fix search cache wipe on installation source failures#92

Merged
stylessh merged 1 commit intomainfrom
stylessh/fix-cache-wipe
Apr 13, 2026
Merged

Fix search cache wipe on installation source failures#92
stylessh merged 1 commit intomainfrom
stylessh/fix-cache-wipe

Conversation

@stylessh
Copy link
Copy Markdown
Owner

Summary

  • Moved OAuth owner exclusion to after successful installation context creation — failed sources (e.g. token mint timeout after webhook cache wipe) no longer exclude their org from the OAuth fallback, which was causing entire orgs' PRs/issues to vanish from results
  • Removed blanket getGitHubAuthenticatedOrganizations exclusion that hid PRs/issues from orgs where the app isn't installed
  • Added merge option to getOrRevalidateGitHubResource so partial refetch results are merged with existing cached data (via mergeSearchBuckets dedup) instead of replacing it — stale items from unresponsive sources survive across refreshes

Test plan

  • Verify PRs/issues from all orgs appear after initial load
  • Simulate installation token expiry and confirm list data is preserved on refetch
  • Confirm no duplicate items appear across installation and OAuth source overlap

Move OAuth owner exclusion to after successful installation context
creation so failed sources don't poison the fallback query. Remove
blanket organization exclusion that hid PRs/issues from orgs without
the app installed. Add merge strategy to list cache so partial refetch
results preserve previously cached items instead of replacing them.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
🔵 In progress
View logs
diffkit 5f7fe5a Commit Preview URL

Branch Preview URL
Apr 13 2026, 06:08 PM

@stylessh stylessh merged commit 12a727c into main Apr 13, 2026
4 checks passed
stylessh added a commit that referenced this pull request Apr 18, 2026
Move OAuth owner exclusion to after successful installation context
creation so failed sources don't poison the fallback query. Remove
blanket organization exclusion that hid PRs/issues from orgs without
the app installed. Add merge strategy to list cache so partial refetch
results preserve previously cached items instead of replacing them.
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.

1 participant