Skip to content

Permissions Grafana alert should not include public repos

Created by: unknwon

Once private, now public, but the metric gathering method is including it.

Ops log:

sg=# select repo_id, updated_at, synced_at  from repo_permissions  order by updated_at limit 10;
 repo_id |          updated_at           |           synced_at
---------+-------------------------------+-------------------------------
      14 | 2020-09-21 13:03:34.550124+00 | 2020-09-21 13:03:34.550124+00

sg=# select name,private from repo where id = 14;
                      name                       | private
-------------------------------------------------+---------
 github.com/sourcegraph/sourcegraph-custom-views | f