Skip to content

Code Insights: Disable backend insight edit operation over some insight fields

Administrator requested to merge vk/disable-backend-insight-search-query-edit into main

Created by: vovakulikov

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

Context

Code Insight Backend uses a sync process to get insight configuration from the setting cascade subject and starts collecting historical data process. However, at the moment this mechanism doesn't work really well with insight configuration updates. We have to disable some data-sensitive fields at the edit page in case if we are updating backend insight. (query search value and number of data series)

Screenshot 2021-08-18 at 21 25 35

Other insight configuration fields we are able to resolve via setting cascade and not by backend insight response. So you're still able to edit some fields (like series name or series color)

Merge request reports

Loading