[Registry-dev] getLogs ordering
Chathura C. Ekanayake
chathura at wso2.com
Sat Dec 15 23:26:45 PST 2007
Changed the parameter name to "recentFirst".
Chathura
Paul Fremantle wrote:
> Chathura
>
> Its more useful if you can come up with names that mean something.
> Descending to me doesn't let me know which is first! If you call the
> param recentFirst then there is no mistaking the meaning.
>
> Paul
>
> Chathura C. Ekanayake wrote:
>>
>> Hi Jonathan,
>>
>> Added "descending" parameter to the Registry.getLogs(...) method.
>> When it's set to true, activities are returned in descending order of
>> the time.
>> If it is false, activities are returned in ascending order.
>>
>> Thanks,
>> Chathura
>>
>> Jonathan Marsh wrote:
>>>
>>> Currently getLogs returns logs in chronological order, which makes
>>> perfect sense when enumerating the history.
>>>
>>> However, I’m also using it for “recent” activity queries, in which I
>>> want reverse chronological order. Since histories will get long, and
>>> probably need paging (currently I have a 5-item pseudo-paging
>>> system), it’s impractical to read the whole list to get the few most
>>> recent items.
>>>
>>> So would it be poosible to add an “order” parameter to determine
>>> whether the log entries are returned in newest-first or oldest-first
>>> order?
>>>
>>> *Jonathan Marsh* - http://www.wso2.com -
>>> http://auburnmarshes.spaces.live.com
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> Registry-dev mailing list
>>> Registry-dev at wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>>>
>>
>>
>> _______________________________________________
>> Registry-dev mailing list
>> Registry-dev at wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>>
>
More information about the Registry-dev
mailing list