zogstrip
(Régis HANOL)
8 באוקטובר, 2026, 7:11pm
5
that’s kinda tricky because there are some many “cases” where people have repurposed the “uncategorized” to something else and we don’t want to delete stuff in an irrecoverable way.
fix/delete-unused-seeded-uncategorized-category ← dev/reset-settings-pointing-at-missing-categories
merged 08:51AM - 09 Oct 26 UTC
Previously, a `category`-typed site setting, or one of the seeded `*_category_id… ` settings, could keep pointing at a category removed outside the model callbacks (raw SQL, backup restores with id drift, imports), and nothing repaired it.
This change adds `SiteSetting.ensure_consistency!` to the 12-hourly `EnsureDbConsistency` job, resetting such settings to their defaults with a staff action log entry saying why; resetting `uncategorized_category_id` also disables `allow_uncategorized_topics`, which cannot be on without an Uncategorized category.
Stacked on https://github.com/discourse/discourse/pull/44384.
will fix it, and only delete if that “category” has never been touched.
4 לייקים