Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

insights: updating capture group insights metadata does not trigger recalculation#44797

Merged
leonore merged 4 commits into
mainfrom
leo/save-default-filters
Nov 28, 2022
Merged

insights: updating capture group insights metadata does not trigger recalculation#44797
leonore merged 4 commits into
mainfrom
leo/save-default-filters

Conversation

@leonore

@leonore leonore commented Nov 24, 2022

Copy link
Copy Markdown
Contributor

part of #42116

while working on saving default filters I found that capture group insights were always getting recalculated regardless of the change because the frontend does not send series id data for capture group insights. it is however not trivial to add this series id information (we have 1 series per insight for capture group insights but return multiple dataseries with fabricated insights to the frontend). so the backend has to handle the case of capture group insights separately.

it is worth noting that sort & limit filters are still not getting saved, because of #42459

new behaviour: changing a capture group insight's filter or title will not trigger recalculation.

Test plan

Added an integration test and validated that the test failed against the latest insiders image, but succeeded on my local instance.

@cla-bot cla-bot Bot added the cla-signed label Nov 24, 2022
@leonore leonore marked this pull request as ready for review November 24, 2022 16:32
@sourcegraph-bot

sourcegraph-bot commented Nov 24, 2022

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff a49c8c8...a94ca1e.

Notify File(s)
@sourcegraph/code-insights-backend enterprise/internal/insights/resolvers/insight_view_resolvers.go
@unknwon dev/gqltest/code_insights_test.go

@leonore leonore requested a review from a team November 24, 2022 16:46
@leonore leonore merged commit c608aa0 into main Nov 28, 2022
@leonore leonore deleted the leo/save-default-filters branch November 28, 2022 14:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants