Search doesn’t display enough commits per page

Bjoern A. Zeeb pointed out a problem today. On the following URL, there should be more commits per page. Only three are shown (at the time of writing).

The page is showing 100 results per page. This should be 100 commits, but the result set is showing only 100 files. The SQL query has the LIMIT on the wrong level. It is on the file level. It should be on the commit level.

Compare the output to this query, which does not demonstrate the problem:

The main difference between the two search results: the former (with incorrect paging) searches the /src/ tree; the latter searches the /ports/ tree.

For now, I’ll post this as documentation and fix it later. :)

Fixed. Here is what it used to look like.

Website Pin Facebook Twitter Myspace Friendfeed Technorati Digg Google StumbleUpon Premium Responsive

Leave a Comment

Scroll to Top