Hey satya Good to hear from you and hope you are doing well 😉
It seems when I do the query for kudos it is it is limited to that specific thread, but I'm trying to get the aggregate of the kudos for the topic. I managed to figure out that if I add 'topic.id' you can see all the kudos which mirror the same value found in the thread after adding up each one from each message to the initial topic.
https://community/api/2.0/search?q=SELECT sum(kudos.sum(weight)) FROM messages where topic.id = '1774748' LIMIT 1000
The same is true for the author, and wil list out each author in the topic.
https://community/api/2.0/search?q=SELECT author.login FROM messages where topic.id = '1774748' LIMIT 1000
If I remove duplicates i can see the unique number of authors in the thread.
Do you how to make the break out the code in the the following component? <component id="common.widget.discussion-stats"/>
In short we need to pass in the message.id and display the 'discussion-stats' but as JSON that another application can pick up.