zogstrip
(Régis HANOL)
8 Octubre, 2026 19:11
5
eso es un poco complicado porque hay muchos «casos» en los que la gente ha reutilizado la categoría «sin categoría» para otra cosa y no queremos eliminar contenido de manera irreversible.
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.
lo solucionará y solo eliminará si esa «categoría» nunca ha sido modificada.
4 Me gusta