Skip to content
Snippets Groups Projects

Code Insights: Fix re-fetching on insight creation through filter panel

Created by: vovakulikov

Closes https://github.com/sourcegraph/sourcegraph/issues/29011

Prior to this PR, we had complex logic about updating local cache over dashboards after insight creating through filter panel (save as new). And cause this logic was updating the dashboard entity (we have to include a newly created insight to the dashboard that we are looking at) this triggered running gql query against our BE each time when we update local cache for dashboards entities.

This PR simplifies this updating logic and fixes the re-fetching problem by setting nextFetchPolicy for the dashboard qql query.

Merge request reports

Approval is optional

Merged by avatar (Nov 7, 2025 2:54am UTC)

Merge details

  • Changes merged into main with 7cd57a89.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading