spark-pr-dashboard icon indicating copy to clipboard operation
spark-pr-dashboard copied to clipboard

Comment pagination broken due to ETags

Open JoshRosen opened this issue 11 years ago • 1 comments

For very long discussion threads, it looks like we miss new comments. I thought I had addressed this through the pagination helper function, but it looks like we're running into problems due to ETags. If nothing changes on the first page of comments, then I think its ETag is the same and we end up skipping subsequent fixes.

For now, I've updated the live site with a hotfix to ignore those ETags (since we're well under my GitHub API key's rate-limit at the moment). We should implement a real fix, though. One approach would be to request the comments in reverse-order or to check the ETag of the last comment page when deciding whether to fetch all of them.

JoshRosen avatar Oct 31 '14 19:10 JoshRosen

It turns out that it's not possible to request the comments in a (reverse) sorted order, so there's not a trivial fix for this.

JoshRosen avatar Aug 15 '15 23:08 JoshRosen