-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #1058 - Fetching and rendering all comments #1119
Conversation
deepthivenkat
commented
Jul 6, 2016
- Fetch and Render page 1 (30 comments)
- Get last page number from response header of page 1
- Fetch and render remaining comments from page 2 to last page
r? @miketaylr |
@@ -371,7 +371,8 @@ issues.MainView = Backbone.View.extend({ | |||
$(document.body).addClass('language-html'); | |||
var issueNum = {number: issueNumber}; | |||
this.issue = new issues.Issue(issueNum); | |||
this.comments = new issues.CommentsCollection([]); | |||
this.commentPage = {page: 1}; | |||
this.comments = new issues.CommentsCollection([this.commentPage]); |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This looks good! I think we can simplify some things further (and rename some stuff so it's more clear, e.g. Here's a diff of how we can make this a bit easier to read/understand: https://gist.github.com/miketaylr/01b9f090dda8c6e928d40c7eb08081c5 |
@miketaylr I have added the review changes |
@deepthivenkat can you please change the commit message to match conventions (or rebase/fixup it into the previous commit)? (there's also a typo "reiew comments") |
4b3e78f
to
7872305
Compare
… review comments
Done @miketaylr |
Looks great, thanks! |