Skip to content

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

Administrator requested to merge vk/fix-insight-refetching-problem into main

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

Loading