Skip Menu |
 

This queue is for tickets about the Bryar CPAN distribution.

Report information
The Basics
Id: 5023
Status: resolved
Priority: 0/
Queue: Bryar

People
Owner: Nobody in particular
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.3
Fixed in: (no value)



Subject: recent entries aren't recent
Download (untitled) / with headers
text/plain 713b
It seems that the "recent" config option is for limiting the number of /recent/ entries shown on the main page when no other parameters are given. The Collector's collect_current method passes "recent" as the "limit" to the DataSource's search method. The base DataSource search method (which, I know, is not advertised to be awesome) finds all matching documents (which, for the main page, is everything) and returns the first "recent" number of them. Since the documents are unordered when this is done, it is not guaranteed that the returned documents are the most recent documents. I fixed this in my own toy collector/source by sorting all_documents before mapping the search, and then not afterwards.
Download (untitled) / with headers
text/plain 491b
[RJBS - Sun Jan 25 13:42:59 2004]: Show quoted text
> The base DataSource search method (which, I know, is not advertised to > be awesome) finds all matching documents (which, for the main page, > is everything) and returns the first "recent" number of them. > Since the documents are unordered when this is done, it is not > guaranteed that the returned documents are the most recent > documents.
I've fixed this in CVS, but you probably don't want to be using the base search method anyway.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.