Yes, setting it to 0 will have this effect

On Fri Jan 16 2015 at 11:31:53 AM Morten Olav Hansen <morte...@gmail.com>
wrote:

> Hi Mark
>
> I think it has been like this since the first time we introduced the pager
> element.. I agree its a bit weird
>
> Total should be 0 of course, do we still want to see pageCount = 1 ? even
> if there is no results? or would that be pagecount = 0 ?
>
> On Thu Jan 15 2015 at 10:44:43 PM Mark Polak <mar...@ifi.uio.no> wrote:
>
>> Hey Morten,
>>
>> I ran into a sort of peculiar thing and i believe it is a small bug.
>>
>> When requesting an endpoint with a filter that returns no results. The
>> pager object still marks the total items as being 1.
>> https://apps.dhis2.org/dev/api/dataElements?filter=name:
>> like:sdfdsfsfgdfdd
>>
>> {
>> -pager: {
>> page: 1,
>> pageCount: 1,
>> total: 1
>> },
>> -dataElements: (0)[
>> ]
>> }
>>
>> Kind regards,
>>
>> Mark Polak
>> m...@thedutchies.com
>> mar...@ifi.uio.no
>> +47 970 36 752
>>
>>
-- 
Mailing list: https://launchpad.net/~dhis2-devs-core
Post to     : dhis2-devs-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to