#4491 Recovery script for missing forums - NEEDS SCRIPT

v1.0.0
closed
General
2015-08-20
2012-07-03
Cory Johns
No

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:

  • num_replies
  • first_post_id (_id of oldest Post)
  • last_post_date (timestamp of newest Post)

On the Forum model:

  • num_topics
  • num_posts

Related

Tickets: #4482
Tickets: #4502

Discussion

  • Cory Johns - 2012-07-05
    • size: 1 --> 2
     
  • Cory Johns - 2012-07-05
    • status: in-progress --> code-review
    • qa: Tim Van Steenburgh
     
  • Cory Johns - 2012-07-05

    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.

     
    • summary: Recovery script for missing forums --> Recovery script for missing forums - NEEDS SCRIPT
    • status: code-review --> validation
     
  • Dave Brondsema

    Dave Brondsema - 2012-07-12
    • labels: --> migration
     
  • Cory Johns - 2012-07-13
    • status: validation --> closed
     

Log in to post a comment.