Uh oh!
There was an error while loading. Please reload this page.
fix(secrets): invalidate env queries so dropdown updates without refresh - #4359
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Refactors Reviewed by Cursor Bugbot for commit 2810430. Configure here. |
Greptile SummaryAdds an intermediate Confidence Score: 5/5Safe to merge — targeted, minimal change with no logic risk. Single-file change that correctly applies the project's hierarchical query-key pattern and replaces overly broad invalidation with two targeted invalidations. No new logic paths, no security surface, no regressions identified. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[useSavePersonalEnvironment.onSettled] --> B[invalidate environmentKeys.personal]
A --> C[invalidate environmentKeys.workspaces]
B --> D[refetch usePersonalEnvironment queries]
C --> E["refetch useWorkspaceEnvironment(id) queries\n(all workspace IDs)"]
E --> F[Dropdown reads merged personal+workspace vars\nfrom workspace query → now up-to-date]
Reviews (2): Last reviewed commit: "improvement(secrets): use targeted works..." | Re-trigger Greptile |
Uh oh!
There was an error while loading. Please reload this page.
waleedlatif1
commented
Apr 30, 2026
waleedlatif1
commented
Apr 30, 2026
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 2810430. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
Summary
useSavePersonalEnvironmentonly invalidatedenvironmentKeys.personal(), but the env-var dropdown reads personal vars from the workspace query (workspaceEnvData.personal) whenever there's aworkspaceId— the workspace endpoint returns workspace + personal mergedenvironmentKeys.allfrom the personal-save mutation so every mounted workspace env query also refetchesType of Change
Testing
Tested manually
Checklist