raquo / hnapp

Hacker News faceted search engine, RSS & JSON feeds
http://hnapp.com
MIT License
60 stars 10 forks source link

Comment counting logic fails sometimes #7

Open raquo opened 10 years ago

raquo commented 10 years ago

Example: http://hnapp.com/?q=police+use+department+wish+list That articles has much more than 3 comments. Some of them might have been "lost" – unavailable in the HN API. But some non-lost comments were not added to the article, e.g.: https://news.ycombinator.com/item?id=8582222

Figure out why it's happening, verify that inserting comments and stories does indeed work in any order, as designed.

raquo commented 10 years ago

Looks like this is happening when a child comment gets added before its parent comment.