Remove subscribing the first admin to the catalogue #86
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Db::adopt_catalogue (src/db.rs:1146), its call at startup (src/main.rs:404) and its test, about 40 lines. It was the one-off move from before accounts, when the catalogue was everyone's; a fresh install has an empty catalogue, so it does nothing there, and production has run it. Found in a repo-wide audit for code that can go.
Not a one-off, so not removing it. It is how a fresh install's first account gets the feeds config.toml listed, and the browser suite relies on it for its admin's sidebar (the test's comment says an earlier removal broke exactly that). The audit assumed it only ever ran on production; that was wrong.