0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 19:02:51 +08:00
discourse/spec/services/site_setting
David Battersby fe1803e841
DEV: prevent backfill of uncategorized category definition (#42433)
In #41169 we demoted the uncategorized category, a knock on effect is
that `Jobs::EnsureDbConsistency` backfills the definition topic as
`SiteSetting.uncategorized_category_id` (now set to `-1`) no longer
matches the original uncategorized category id.

Previously it would be skipped due to the check in the
[Category.ensure_consistency!](https://github.com/discourse/discourse/blob/main/app/models/category.rb#L1253)
against the site setting value.

The solution here is to upsert a custom field to the original
uncategorized topic so that the backfill job that runs every 12 hours
does not attempt to create the definition topic.
2026-08-07 17:04:00 +04:00
..
action DEV: prevent backfill of uncategorized category definition (#42433) 2026-08-07 17:04:00 +04:00
splash_screen_image_changed_spec.rb DEV: clean up splash SVG on upload, not when rendering (#37681) 2026-02-16 13:14:35 +10:00
update_spec.rb FIX: Hidden setting error when enabling plugin linked to UC (#42007) 2026-07-24 09:58:37 +10:00
upsert_groups_spec.rb UX: Allow more specific enabled for options for upcoming changes (#39916) 2026-05-13 10:22:06 +10:00