Is there a problem with vote counting in hivemind?
19 comments
I noticed this week that vote counts are not being properly reported in the Popular STEM community. For example, take a look at the post, James Webb's Infrared “Eyes” in this screen grab from upvu.org.
3 votes.
However, look what we see when we click on the list of voters (in upvu.org):
There are two screens worth of votes. (I'm pretty sure that the vote values are wrong, too, but that's a topic for another day)
Unfortunately, I haven't had much time to look into it, but after a few minutes of playing, it appears that the problem might be with getting the data to bridge.get_post and bridge.get_ranked_posts in the Steemit API server, i.e. hivemind?
Here's what I see when I look at the condenser_api.get_content API - 15 votes:
$ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_content", "params":["jorgebgt", "james-webb-s-infrared-eyes"], "id":1}' https://api.steemit.com | jq -S .result.net_votes
15
However, here's what I see when I look at the undocumented bridge.get_post API - 3 votes:
$ curl -s --data '{"jsonrpc":"2.0", "method":"bridge.get_post", "params":["jorgebgt", "james-webb-s-infrared-eyes"], "id":1}' https://api.steemit.com | jq -S .result.stats.total_votes
3
And here's what I see when I look at the bridge.get_ranked_posts from the steemit API - 3 votes:
$ curl -s --data '{"jsonrpc":"2.0", "method":"bridge.get_ranked_posts", "params":{"sort":"created","tag":"hive-109160","observer":"remlaps"}, "id":1}' https://api.steemit.com | jq -S '.result[] | ( .title, .stats.total_votes )' | sed -n '$!N;s/\n/, /g;p;d' | grep Webb
"James Webb's Infrared “Eyes”", 3
All of the above are from the API at https://api.steemit.com.
On the other hand, bridge.get_post and bridge.get_ranked_posts from the steemitdev API or the API from @moecki both give back the correct values of 15 votes:
$ curl -s --data '{"jsonrpc":"2.0", "method":"bridge.get_post", "params":["jorgebgt", "james-webb-s-infrared-eyes"], "id":1}' https://api.steemitdev.com | jq -S .result.stats.total_votes
15$ curl -s --data '{"jsonrpc":"2.0", "method":"bridge.get_ranked_posts", "params":{"sort":"created","tag":"hive-109160","observer":"remlaps"}, "id":1}' https://api.moecki.online | jq -S '.result[] | ( .title, .stats.total_votes )' | sed -n '$!N;s/\n/, /g;p;d' | grep Webb
"James Webb's Infrared “Eyes”", 15
I thought that maybe it was some sort of synchronization lag, but so far, the votes have stayed hidden for multiple days.
- This may or may not be related to this issue in github?
- This may or may not also be related to this post by @stef1?
I have no idea how widespread this problem is, or how long it has been going on, but I'm sure that I have accidentally double and triple voted (and more) a number of posts in recent weeks, and now I'm surmising that this is the reason for it.
I also imagine that it would be very demotivating for an author if they're not seeing the votes that are cast for their post (and also if the vote values are being underreported). It also impacts the ability of other authors and curators to get a sense of community interest in particular topics.
I ran condenser on my own computer today, and saw the same missing votes there.
( Incidentally, the missing votes appear to be hidden from an author's "Notifications" tab, too, but I haven't had the time to check for relevant APIs yet. )
I assume that the problem is not with condenser, since I can see the miscounting at the API level.
I'm hoping that this can be brought to the right person's attention by @steemcurator01 or by @steemchiller, @justyy, or someone else on the @dip.team?
Thank you for your time and attention.
As a general rule, I up-vote comments that demonstrate "proof of reading".
Steve Palmer is an IT professional with three decades of professional experience in data communications and information systems. He holds a bachelor's degree in mathematics, a master's degree in computer science, and a master's degree in information systems and technology management. He has been awarded 3 US patents.
Pixabay license, source
Reminder
Visit the /promoted page and #burnsteem25 to support the inflation-fighters who are helping to enable decentralized regulation of Steem token supply growth.
Comments