[Bug 1498898] [NEW] api/events.json - page totals are not displayed

Public bug reported:

When accessing api/events (.json) the page totals are not displayed in
the pager.

version 2.20 rev 19876

** Affects: dhis2
     Importance: Undecided
         Status: New

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1498898

Title:
  api/events.json - page totals are not displayed

Status in DHIS:
  New

Bug description:
  When accessing api/events (.json) the page totals are not displayed in
  the pager.

  version 2.20 rev 19876

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1498898/+subscriptions

Hi,

Use totalPages=true in the query string.

** Changed in: dhis2
       Status: New => Invalid

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1498898

Title:
  api/events.json - page totals are not displayed

Status in DHIS:
  Invalid

Bug description:
  When accessing api/events (.json) the page totals are not displayed in
  the pager.

  version 2.20 rev 19876

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1498898/+subscriptions

Like Abyot say you need to explicitly request this with a param now. The
reason behind this is that the paging operation is very costly, since
you need to count all events as part of the process. So as a
consequence, we don't include this in the response unless it is really
needed.

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1498898

Title:
  api/events.json - page totals are not displayed

Status in DHIS:
  Invalid

Bug description:
  When accessing api/events (.json) the page totals are not displayed in
  the pager.

  version 2.20 rev 19876

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1498898/+subscriptions