There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-f08e47f9-00cb-4890-b18d-8b3181812bb5 XWIKI-22978 Open

Comments are not ordered by date

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-d2adc24e-82e6-4c50-953b-3005df452fcb Simon Urli on 27/Mar/25 10:06
 

So we're currently relying on old Document#getComment API for getting the comments. A proper fix is probably to deprecate this API and the related ones, and to introduce a proper decoupled API in a new module xwiki-platform-comment. We would need interface for defining the comment, a component role and its default implem and a script service. Ultimately this API should also contain the code for computing the threads.

Note that a quick custom fix for deployed instances is also possible by editing directly commentsinline.vm and performing the sort operation just after retrieving the comments.