Skip to content

Conversation

@sideshowbarker
Copy link
Contributor

@sideshowbarker sideshowbarker commented Jan 21, 2026

Summary

This change fixes a bug that caused us to not be showing up-to-date status/ state in Reviewers. The fix causes the cached GraphQL client to be cleared when a refresh is requested — ensuring the next enrichment invalidates the cache, and then a request for fresh data is made over the network to GitHub. Fixes #745

Otherwise, without this change, when pressing r or R to refresh, the enriched PR data (including reviewers) was being served from a 5-minute-TTL GraphQL cache. That meant that if someone approved the PR, and then we refreshed in dash, the reviewer status wouldn't update.

How did you test this change?

Includes integration test

@sideshowbarker sideshowbarker force-pushed the sideshowbarker/fix-reviewer-refresh-cache branch 2 times, most recently from 19fd4df to 8438b10 Compare January 22, 2026 05:22
This change fixes a bug that caused us to not be showing up-to-date status/
state in Reviewers. The fix causes the cached GraphQL client to be cleared
when a refresh is requested — ensuring the next enrichment invalidates the
cache, and then a request for fresh data is made over the network to GitHub.

Otherwise, without this change, when pressing "r" or "R" to refresh, the
enriched PR data (including reviewers) was being served from a
5-minute-TTL GraphQL cache. That meant that if someone approved the PR,
and then we refreshed in dash, the reviewer status wouldn't update.

Also clears the label cache on refresh, for consistency.
@sideshowbarker sideshowbarker force-pushed the sideshowbarker/fix-reviewer-refresh-cache branch from 8438b10 to dcc23b6 Compare January 22, 2026 06:44
@dlvhdr
Copy link
Owner

dlvhdr commented Jan 28, 2026

I honestly don't know what's our use case for caching a PR for 5 minutes. I can only think of issues it might cause. WTYT about removing it? am I missing something?

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.

[BUG] PR reviewers are not updated when pressing r or R

2 participants