0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/app/services/site_setting/action
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
..
remove_and_replace_uncategorized_toggled.rb DEV: prevent backfill of uncategorized category definition (#42433) 2026-08-07 17:04:00 +04:00
simple_email_subject_toggled.rb DEV: remove simple email subject upcoming change metadata (#41807) 2026-07-20 14:43:00 +04:00