Google Code ticket imports can produce multiple "thread" objects with the same ref_id (pointer to a ticket). This means when viewing a ticket you get one of the comment threads, but you wont see the other comment thread associated with it.
Back in [#4506] we wrote a script to fix this (was committed internal to SF at the time). We should move this script to Allura, or even better make the get_discussion_thread
code handle this situation and automatically clean it up. No manually running scripts needed, and not critical to fix the Google Code import logic then.
db/7994
To test manually, easiest thing is to create 2 separate threads normally. E.g. take 2 tickets and post some comments on each, including attachments. Then find one thread and change its ref_id to point to the other ticket.
Then you've got 2 threads with the same ticket. On master if you visit the ticket page, you'll only see one thread of comments. On
db/7994
they'll get merged together for you.Nice solution, Dave.