Skip to content

fix: stale app access cache#796

Merged
nimish-ks merged 3 commits intomainfrom
fix--app-access-cache
Mar 9, 2026
Merged

fix: stale app access cache#796
nimish-ks merged 3 commits intomainfrom
fix--app-access-cache

Conversation

@rohan-chaturvedi
Copy link
Copy Markdown
Member

@rohan-chaturvedi rohan-chaturvedi commented Mar 7, 2026

Summary

  • Fix stale environment access shown in UI after removing and re-adding a member or service account to an app
  • Add GetAppEnvironments to refetchQueries in add/remove mutations for both members and service accounts

Details

The ManageUserAccessDialog and ManageAccountAccessDialog components query GetAppEnvironments with a memberId to display each member's environment scope. When a member was removed and re-added, these cached query results were never invalidated, causing Apollo to serve stale data showing the old environment access until a hard page refresh.

Test plan

  • Add a user to an app with access to multiple environments
  • Remove the user from the app
  • Re-add the user with access to only a single environment
  • Verify the UI immediately shows the correct (single) environment scope without needing a page refresh
  • Repeat the above steps for a service account

Signed-off-by: rohan <rohan.chaturvedi@protonmail.com>
Signed-off-by: rohan <rohan.chaturvedi@protonmail.com>
@rohan-chaturvedi rohan-chaturvedi added frontend Change in frontend code bug Something isn't working labels Mar 7, 2026
@nimish-ks nimish-ks merged commit 59ce054 into main Mar 9, 2026
7 checks passed
@nimish-ks nimish-ks deleted the fix--app-access-cache branch March 9, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Change in frontend code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants