Something went wrong while fetching comments. Please try again.
Created by: kopancek
This PR is meant to cleanup the mess I have created on dotcom by manually removing repos from the DB with an SQL command. Instead of soft delete I did a hard delete, which seems to cause the repositories never to be removed from disk.
I think this new behavior is actually beneficial and can remove stale data from the disks, in case other inconsistencies between current disk state and what's defined in the DB exist.
This is how the new metric looks like in the grafana dashboard:
This feature is behind an env flag SRC_REMOVE_NON_EXISTING_REPOS
which by default is false
.
So far tested locally and it seems to be working fine in these scenarios:
repo
table - repo deleted from disk as wellChange has unit tests attached as well.