Hi Harsh, Yes there is a change with the API. Morten can provide more details on this
For now, you can use the following and get data values api/events.json?fields=:all,dataValues[value,dataElement],notes[value,storedBy,storedDate] By skipping paging you are literally asking for all events in the db - which is huge and no wonder the time out response. This should be blocked. I mean it shouldn't be possible to just ask for events without specifying some parameters - for example orgunit, program, tei, enrollment... What is your use-case? Can you limit the search for events? --- Thank you, Abyot. On Thu, Feb 25, 2016 at 7:18 AM, Harsh Atal <[email protected]> wrote: > Hi Lars, > > It is working fine on demo. But on dev this issue is there. I guess some > development is going on in that area.. > > The 'issue' is that on the dev server this URL [ > https://play.dhis2.org/dev/api/events? ] does not give the same results > that it gives on demo. > > On demo, if an event has had data entered then the dataValues fields will > contain all the dataValues. But this does not happen on the dev server, > Even if an event has data then also the dataValues is just coming as empty > tag. > > PFA snapshot comparing demo with dev. > > Also, adding 'skipPaging=true' to the above URL endpoint results in *504 > Gateway Time-out. *And the instance goes down for a while. This happens > on both demo and dev. > > Thanks > harsh > > > On 24 February 2016 at 19:50, Lars Helge Øverland <[email protected]> wrote: > >> Hi Harsh, >> >> we need more information from you in order to help. Can you reproduce on >> demo? Did you have a look at the docs for event queries? >> >> >> http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s15.html#d5e1994 >> >> regards, >> >> Lars >> >> On Wed, Feb 24, 2016 at 7:09 AM, Harsh Atal <[email protected]> wrote: >> >>> Hi >>> >>> Am fetching all events through this URL: >>> https://play.dhis2.org/dev/api/events? >>> >>> But in the output some fields such as dataValues, notes etc are not >>> coming even if the data is there...all that is coming for all events is >>> empty tag : >>> <dataValues/> >>> <notes/> >>> >>> Please help. >>> >>> Thanks >>> harsh >>> >>> _______________________________________________ >>> Mailing list: https://launchpad.net/~dhis2-devs >>> Post to : [email protected] >>> Unsubscribe : https://launchpad.net/~dhis2-devs >>> More help : https://help.launchpad.net/ListHelp >>> >>> >> >> >> -- >> Lars Helge Øverland >> Lead developer, DHIS 2 >> University of Oslo >> Skype: larshelgeoverland >> http://www.dhis2.org <https://www.dhis2.org/> >> >> > > _______________________________________________ > Mailing list: https://launchpad.net/~dhis2-devs > Post to : [email protected] > Unsubscribe : https://launchpad.net/~dhis2-devs > More help : https://help.launchpad.net/ListHelp > >
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

