The issues uncovered in [#4482] has likely affected all migrations for a little while. We need a script to go through and fix the thread and reply counts on the discussion models.
The fields that need to be corrected are:
On the ForumThread model:
On the Forum model:
forge-classic:cj/4491
To test, check out commit cd252e7 from dev on forge-classic (before the migration bug fix) and (re)migrate a project that has forums with threads and replies. After the (re)migration, the project should show no threads, though the forums will be there.
Then, check out cj/4491 and run
allurapaste script production.ini /var/local/forge-classic/scripts/sync-forum-counts.py
(optionally with-- -v
). Verify that it fixed threads and forums, then check again in the UI to verify that the topics and replies now show up.