Skip to content
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

Improve "Last Comment" Feature #246

Merged
merged 9 commits into from
Feb 20, 2014

Conversation

treygriffith
Copy link
Collaborator

This PR reduces the number of queries needed to build the home page by performing the score-based sort prior to fetching comment count and last comment time. It's a big difference, from 1803 queries to 63.

It also adds a query string to the comments link, which allows the browser to show the link as unvisited if there are new comments, addressing #200 (credit to http://www.joelonsoftware.com/articles/BuildingCommunitieswithSo.html).

Lastly, it adds the same functionality to the Issues page, and fixes a minor bug where the issue title was linking to the API instead of the regular Github site (#242).

@megamattron
Copy link
Member

Awesome, can you rebase and I'll put it in.

@treygriffith
Copy link
Collaborator Author

Rebased and all set to go. Also fixes the double render on the issues page.

megamattron added a commit that referenced this pull request Feb 20, 2014
@megamattron megamattron merged commit 198a498 into larvalabs:master Feb 20, 2014
@megamattron
Copy link
Member

Thanks, releasing now.

@josephwegner
Copy link
Collaborator

@treygriffith Thanks for cleaning up after me - I was feeling like quite the dunce letting that slip through.

@treygriffith
Copy link
Collaborator Author

@josephwegner no problem, I actually thought I had messed something up during my rebase from master.

@treygriffith treygriffith deleted the last-comment-query branch February 21, 2014 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants