Hi. I've set up nodecomments (content type: comment) as default comments for forum posts with display mode: threaded expanded and sorted by oldest firs (freshest comment is on the bottom). Everything works and is displayed as expected but as soon as I edit any of the comments, the edited comment gets moved to the top of the list. If the edited comment is threaded (a comment to a comment) it loses it's threading and is moved to the top of the list.
I also tested this on my sandbox site with nodecomments set up (content type: comment) for the story content type and displayed the same way. The same stuff happens there.
I've also tried fiddling with the nodecomment views styles, relationships and sort criteria but none of that seems to help the least bit, even though I cleared the caches every time I made changes.
Any thoughts?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | nodecomment_711282_2.patch | 2.25 KB | crea |
| #4 | nodecomment_711282.patch | 1.18 KB | crea |
Comments
Comment #1
einkahumor commentedAfter some comments have been edited on a thread (and the threading thus mixed up), new comments aren't added to the right places in the tread, even if they aren't replies to comments.
Comment #2
crea commentedCan anyone else confirm this ?
Comment #3
crea commentedYep, there's a problem with editing.
Comment #4
crea commentedThreading is broken on editing because it's inserted into DB as numeric rather than string.
Comment #5
Narretz commentedI made some quick tests. After applying the patch, comments still get mixed up; but replys to mixed up comments get inserted correctly, but will ofc break when they are edited.
Comment #6
einkahumor commentedGlad to see some improvement on this. Confirming what is said in #5 and updating status.
Comment #7
crea commentedThere was also a problem of thread recalculation.
Comment #8
crea commentedWe could also follow comment module in this part: comment module does not update thread column at all. But I think updating it gives some flexibility e.g. for future usecases such as thread/comment moderation, moving etc.
Comment #9
einkahumor commentedSeems to be working quite well. Thanks!
Comment #10
Narretz commentedconfirmed. Editing works.
changed status to reviewed & tested (I don't think there will be many more reviews, and the tests are pretty straightforward)
Comment #11
crea commented