Skip to content

Make sure to restore the LAM dashboard if needed

Administrator requested to merge insights/lam-dashboard-delete into main

Created by: CristinaBirkel

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

Description

We weren't handling the case where a customer enters Limited Access Mode (LAM), then upgrades, deletes their LAM dashboard, then goes back into trial mode for whatever reason. (Possibly an edge case, but an easy fix!)

So this makes sure that the LAM dashboard gets restored if it had previously been deleted.

Test plan

  1. Mark the LAM dashboard as deleted and make sure all of the insights are not currently frozen.
  2. Start sourcegraph without a code-insights license.
  3. Verify that the LAM dashboard has been restored.

Merge request reports

Loading