Something went wrong while fetching comments. Please try again.
Created by: CristinaBirkel
Part of https://github.com/sourcegraph/sourcegraph/issues/32796
At a high level, this PR is handling an automatically created dashboard for Limited Access Mode that will be useful for brand new customers who do not have any existing global dashboards, (and cannot create one in Limited Access Mode.)
createPieChartSearchInsight
and createLineChartSearchInsight
follow the logic outlined in the issue.Other changes:
GetDashboards
now takes an array for ID
(similar to UserID
and OrgID
) to support querying for multiple dashboards at once.GetDashboards
also takes a WithoutAuthorization
parameter to fetch dashboards for internal code use and ignore user permissions.(For testing locally.)
Background process:
UPDATE insight_view SET is_frozen = FALSE;
createPieChartSearchInsight
and createLineChartSearchInsight
, for each: