What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

Based on this query, there is inconsistent behavior with the comment ids.

For instance, the first ID is listed as follows:

"comment_id": 15780,

"post_id": 7622,

The second is listed as follows:

"comment_id": 27409,

"post_id": 11660,

The third is the same as the first (post link, no comment link), in fact it seems that any comment lower than around number 23,000 doesn't have a link.

Were the way comments are handled changed such that old comments are unable to be rendered as a link? Having a link to the comments would be helpful if it could be added.

share|improve this question
2  
Yes the comment links are available only since around January 2012. –  Shadow Wizard Oct 10 '13 at 8:43
    
Thanks @Sha, do you know why previous comments aren't linked? –  jmac Oct 10 '13 at 10:04
    
Nope, even old comments are now linked, the change was retroactive - so no idea, sorry. :( –  Shadow Wizard Oct 10 '13 at 10:39

1 Answer 1

…it seems that any comment lower than around number 23,000 doesn't have a link.

Not quite. The console makes a separate request to get the link for each comment (although this is technically unnecessary as it could just linked to the /posts/comments/{id} route), grouping the returned comment IDs from your API call into a single request.

Unfortunately, while it requests 100 separate comments, it fails to set the page size for the response to be 100, so you end up with just the 30 most recent comments in the returned results, and those are the comments that are linked.

While the fix would be to include the pagesize parameter, using the aforementioned route might be just as easy and a little more efficient when rendering the results.

share|improve this answer
    
Thanks for the detailed answer. I'm not a developer, so while I understand what you're saying in theory, I am stuck at a much more basic level. Is there any plan to make the API more accessible for computer-illiterati like me who believe that Excel is the pinnacle of human computing? –  jmac Nov 13 '13 at 5:42
    
Well, hopefully it'll prompt a Stack Exchange developer into fixing the problem, since it's fairly trivial. To your other question though, I'm not sure that I have a good answer beyond that perhaps I could put some samples on Stack Apps somewhere. –  Tim Stone Nov 13 '13 at 5:45
    
if you could, that would be a huge help. Just something simple like "This is how you run a API call to get all the pages of results and stick them in a javascript/JSON/something usable object". That should be basic (I would think), but I can't find that very simple info anywhere, and despite my fiddling just couldn't get it to work. –  jmac Nov 13 '13 at 5:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .