You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed it to rate topics. But how to get the rating result?
At client side I'm able to read all replies and calculate the rating.
This is not scale able (think of a topic with 10000 ratings) and I'm wondering if there is a better method to do that.
I agree but this seemed the clearest path when we first added the feature in line with ATOM standards. I'd be happy for you to propose (and then we can look to code up) an alternative :)
Is there a possibility to select between rating comments and text comments? I don't want to show the "rating: 5.0" in the timeline.
rating vs. like
facebook, google, twitter have like, +1, favorite but no rating.
I would prefer to have a +1 functionality instead of a rating by numbers from 1.0 to 5.0.
subitem rating
At the moment it's not possible to reply to a reply message -> It's not possible to rate a reply.
Previously I've used a rating of 5.0 to represent a '+1' (i.e. binary rating). If we were to implement our own +1/like then we'd need to use a buddycloud namespace within the ATOM document, we'd also probably want to say who liked the post, e.g.
Likes can happen when you pull the initial feed at startup or during the client session. I think @lloydwatkin's approach tries to deal with them as a stream of events for connected clients.
socket.send('xmpp.buddycloud.items.replies',{"node": "/user/lloyd@evilprofessor.co.uk/posts","id": "1234-5678-9012-3456","type":"comment|rating"//something like this},function(error,data,rsm){console.log(error,data,rsm)})
I'll get to this in my ridiculously over-enthusiastic database restructuring project. Ratings have been winding me up somewhat since I found the LIKE for finding them.
Then buddycloud starts to become ATOM specific rather than general purpose. Meta data could work and use a processor in code to turn that meta into a valid set of elements for the post type
/user/<jid>/posts is atom formatted, but we also have content type plugins. What about using something like /user/<jid>/post-likes for likes in a new format format?
In all honesty I'd rather remove atom entirely; I'm not convinced it's adding much value at this stage. But that aside, I don't think it's worth adding a new node yet. Adding additional data to the database while keeping the protocol unchanged, though, doesn't force any impacts further up the stack.
Activity
lloydwatkin commentedon Aug 16, 2015
I agree but this seemed the clearest path when we first added the feature in line with ATOM standards. I'd be happy for you to propose (and then we can look to code up) an alternative :)
robotnic commentedon Aug 17, 2015
rating vs. text reply
https://xmpp-ftw.jit.su/manual/extensions/buddycloud/#item-replies
Is there a possibility to select between rating comments and text comments? I don't want to show the "rating: 5.0" in the timeline.
rating vs. like
facebook, google, twitter have like, +1, favorite but no rating.
I would prefer to have a +1 functionality instead of a rating by numbers from 1.0 to 5.0.
subitem rating
At the moment it's not possible to reply to a reply message -> It's not possible to rate a reply.
the result
or
lloydwatkin commentedon Aug 17, 2015
Previously I've used a rating of 5.0 to represent a '+1' (i.e. binary rating). If we were to implement our own +1/like then we'd need to use a buddycloud namespace within the ATOM document, we'd also probably want to say who liked the post, e.g.
robotnic commentedon Aug 17, 2015
5.0 for+1 is ok for me.
This is not scaleable
To see who liked is already possible incl. rsm.
imaginator commentedon Aug 17, 2015
Likes can happen when you pull the initial feed at startup or during the client session. I think @lloydwatkin's approach tries to deal with them as a stream of events for connected clients.
robotnic commentedon Aug 17, 2015
That's all I need:
And:
lloydwatkin commentedon Aug 17, 2015
@robotnic its not quite that simple. Whilst this may be useful for your use case we need to consider the bigger picture too.
Also:
robotnic commentedon Aug 17, 2015
lloydwatkin commentedon Aug 17, 2015
I see what you are saying, add a count to the parent but still post the review item?
dwd commentedon Aug 17, 2015
I'll get to this in my ridiculously over-enthusiastic database restructuring project. Ratings have been winding me up somewhat since I found the LIKE for finding them.
lloydwatkin commentedon Aug 17, 2015
@dwd technically we should be using an xpath selector to find then, the like was a quick implementation that hadn't/hasn't yet been fixed.
dwd commentedon Aug 17, 2015
Or just pull them out into a different column.
lloydwatkin commentedon Aug 17, 2015
Then buddycloud starts to become ATOM specific rather than general purpose. Meta data could work and use a processor in code to turn that meta into a valid set of elements for the post type
imaginator commentedon Aug 17, 2015
/user/<jid>/postsis atom formatted, but we also have content type plugins. What about using something like/user/<jid>/post-likesfor likes in a new format format?dwd commentedon Aug 17, 2015
In all honesty I'd rather remove atom entirely; I'm not convinced it's adding much value at this stage. But that aside, I don't think it's worth adding a new node yet. Adding additional data to the database while keeping the protocol unchanged, though, doesn't force any impacts further up the stack.