[Dhis2-devs] DHIS 2 translation server Error

2016-05-02 Thread Anilkumar Kodi
Hi,

I am trying to register for *DHIS 2 translation server *(
http://translate.dhis2.net/accounts/register) but i am unable to create an
account, Getting Server error
Could you help me to create an account.



[image: Inline image 1]


Thanks,
Anil Kumar Kodi.
+917660010617
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS 2 translation server Error

2016-05-02 Thread Anilkumar Kodi
Hi Jason,

Getting below error when trying to register to translation server

Server Error

*An error has occurred. Thank you for your patience.*

*(435, '4.7.8 Error: authentication failed:')*


We would like to translate to all the languages that what dhis2 supports.
Could you help us to know how to translate.


Thanks,
Anil Kumar


On Mon, May 2, 2016 at 7:53 PM, Jason Pickering  wrote:

> Hi Anil,
> Sorry about that.  What is the error and which language are you interested
> in translating to?
>
> Regards,
> Jason
>
> On Mon, May 2, 2016, 16:20 Anilkumar Kodi 
> wrote:
>
>> Hi,
>>
>> I am trying to register for *DHIS 2 translation server *(
>> http://translate.dhis2.net/accounts/register) but i am unable to create
>> an account, Getting Server error
>> Could you help me to create an account.
>>
>>
>>
>> [image: Inline image 1]
>>
>>
>> Thanks,
>> Anil Kumar Kodi.
>> +917660010617
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS 2 translation server Error

2016-05-04 Thread Anilkumar Kodi
Hi Jason,

Sorry for the late reply,

Thanks for the fix. I am able to register now. But i did not get any
activation link and hence still unable to login.

We are developing one of the features which is metadata sync (which will
eventually land in DHIS main release branch).
It is currently in one of our branches forked from DHIS 2.23 (
https://code.launchpad.net/~twoca-devs/dhis2/twoca_sync_2.23
).
This piece has backend as well as front end additions. The front end part
of it has changes to the 'Settings' and 'Data Administration' apps. So, we
would like to know if it would  be possible to leverage the DHIS
translation server to do translations ?

Regards
Anil and Vanya pairing.


On Tue, May 3, 2016 at 1:36 PM, Jason Pickering  wrote:

> Hi Anil,
> I think I have fixed that error now. Could you please try to register
> again on the translation server?
>
> Also, if you can let me know which language you will be targeting, I can
> be sure everything is setup properly.
>
> Regards,
> Jason
>
>
> On Mon, May 2, 2016 at 6:04 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Hi Anil,
>> I will take a look at the error, but in general, you should translate the
>> languages which you can actually translate. We can support in principle any
>> language, thus it would be best to know which locale you are actually
>> targeting, so that I can ensure everything is set up properly.
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, May 2, 2016, 17:27 Anilkumar Kodi 
>> wrote:
>>
>>> Hi Jason,
>>>
>>> Getting below error when trying to register to translation server
>>>
>>> Server Error
>>>
>>> *An error has occurred. Thank you for your patience.*
>>>
>>> *(435, '4.7.8 Error: authentication failed:')*
>>>
>>>
>>> We would like to translate to all the languages that what dhis2 supports.
>>> Could you help us to know how to translate.
>>>
>>>
>>> Thanks,
>>> Anil Kumar
>>>
>>>
>>> On Mon, May 2, 2016 at 7:53 PM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> Hi Anil,
>>>> Sorry about that.  What is the error and which language are you
>>>> interested in translating to?
>>>>
>>>> Regards,
>>>> Jason
>>>>
>>>> On Mon, May 2, 2016, 16:20 Anilkumar Kodi 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am trying to register for *DHIS 2 translation server *(
>>>>> http://translate.dhis2.net/accounts/register) but i am unable to
>>>>> create an account, Getting Server error
>>>>> Could you help me to create an account.
>>>>>
>>>>>
>>>>>
>>>>> [image: Inline image 1]
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Anil Kumar Kodi.
>>>>> +917660010617
>>>>> ___
>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>> Post to : dhis2-devs@lists.launchpad.net
>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>
>>>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS 2 translation server Error

2016-05-04 Thread Anilkumar Kodi
Hi Jason,

Thanks for the information.

Regards,
Anil

On Wed, May 4, 2016 at 2:18 PM, Jason Pickering  wrote:

> Hi Anil,
> Please send me your user name directly (not on this list) and I will
> activate you. I am working on getting that server back up and running
> properly, but in the meantime, I can activate your account manually.
>
> In terms of supporting the fork, this is not something really which is
> currently in the workflow for this translation server. There is a
> reasonably complex workflow to produce the PO files which the server uses,
> sync all of these and then round-trip them back to Java properties files.
> We have been supporting translation of the user-interface of trunk, but not
> of forks.
>
> I think it would be a lot easier for you to manage the translations
> manually in your own branch, using tools such as PO Edit (
> https://poedit.net/download) or Virtaal (
> http://virtaal.translatehouse.org/). Alternatively, you may be able to
> use the DHIS2 resource editor (
> https://www.dhis2.org/download/resources/dhis-i18n-resourceeditor.zip)
> This tool is quite old and abandoned I think in terms of development, but
> it may still work.
>
> Alternatively, you could setup your own Pootle server, since it is also a
> FOSS product (http://pootle.translatehouse.org/download.html).
>
> So, if you would be interested in translating the trunk software, then I
> think that is something we can help with, but given the complexity of our
> current setup, I do not think we could support the translation of a branch
> of trunk.
>
> Regards,
> Jason
>
>
> On Wed, May 4, 2016 at 9:24 AM, Anilkumar Kodi 
> wrote:
>
>> Hi Jason,
>>
>> Sorry for the late reply,
>>
>> Thanks for the fix. I am able to register now. But i did not get any
>> activation link and hence still unable to login.
>>
>> We are developing one of the features which is metadata sync (which will
>> eventually land in DHIS main release branch).
>> It is currently in one of our branches forked from DHIS 2.23 (
>> https://code.launchpad.net/~twoca-devs/dhis2/twoca_sync_2.23
>> ).
>> This piece has backend as well as front end additions. The front end part
>> of it has changes to the 'Settings' and 'Data Administration' apps. So, we
>> would like to know if it would  be possible to leverage the DHIS
>> translation server to do translations ?
>>
>> Regards
>> Anil and Vanya pairing.
>>
>>
>> On Tue, May 3, 2016 at 1:36 PM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> Hi Anil,
>>> I think I have fixed that error now. Could you please try to register
>>> again on the translation server?
>>>
>>> Also, if you can let me know which language you will be targeting, I can
>>> be sure everything is setup properly.
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>> On Mon, May 2, 2016 at 6:04 PM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> Hi Anil,
>>>> I will take a look at the error, but in general, you should translate
>>>> the languages which you can actually translate. We can support in principle
>>>> any language, thus it would be best to know which locale you are actually
>>>> targeting, so that I can ensure everything is set up properly.
>>>>
>>>> Regards,
>>>> Jason
>>>>
>>>>
>>>> On Mon, May 2, 2016, 17:27 Anilkumar Kodi 
>>>> wrote:
>>>>
>>>>> Hi Jason,
>>>>>
>>>>> Getting below error when trying to register to translation server
>>>>>
>>>>> Server Error
>>>>>
>>>>> *An error has occurred. Thank you for your patience.*
>>>>>
>>>>> *(435, '4.7.8 Error: authentication failed:')*
>>>>>
>>>>>
>>>>> We would like to translate to all the languages that what dhis2
>>>>> supports.
>>>>> Could you help us to know how to translate.
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Anil Kumar
>>>>>
>>>>>
>>>>> On Mon, May 2, 2016 at 7:53 PM, Jason Pickering <
>>>>> jason.p.picker...@gmail.com> wrote:
>>>>>
>>>>>> Hi Anil,
>>>>>> Sorry about that.  What is the error and which language are you
>>>>>> interested in translating to?
>>>>

[Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-14 Thread Anilkumar Kodi
Hi Morten,

We are doing Anonymous Event data push. As part of that we are also sending
coordinates.

Coordinate object has 4 public properties which are listed below

@JsonProperty( required = true )
@JacksonXmlProperty( isAttribute = true )
public Double getLatitude()

@JsonProperty( required = true )
@JacksonXmlProperty( isAttribute = true )
public Double getLongitude()

public boolean isValid()

public String getCoordinateString()


We don't have @JsonIgnore/@JsonProperty on the Other 2 properties.

Because of this we are getting Error while Deserializing.

Moreover, the JSON Mapper for the class   has
configuration FAIL_ON_UNKNOWN_PROPERTIES  set to *true*

We have fixed this by adding @JsonIgnore on those properties.

We Would like to know if you see any downstream issues with this minor change.



Thanks,

Anil Kumar & Srikanth
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-15 Thread Anilkumar Kodi
Hi Morten,

This is still looking for other 2 properties to map while deserializing, we
are getting exception like

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
Unrecognized field "programInstance" (class
org.hisp.dhis.dxf2.events.event.Event), not marked as ignorable (22 known
properties: "notes", "trackedEntityInstance", "program", "lastUpdated",
"orgUnit", "href", "dataValues", "status", "orgUnitName",
"enrollmentStatus", "coordinate", "completedDate", "event", "dueDate",
"enrollment", "eventDate", "followup", "programStage", "storedBy",
"created", "attributeCategoryOptions", "completedBy"])
 at [Source:
{"program":null,"programInstance":null,"events":[{"event":"EcHeh9roBlf","status":"ACTIVE","program":"KKZTIFe5sf5","programStage":"lQgBMyAgzae","enrollment":null,"enrollmentStatus":null,"orgUnit":"fxXno3Zm20F","orgUnitName":null,"trackedEntityInstance":null,"eventDate":"2016-06-06T18:30:00.000+","dueDate":null,"storedBy":null,"coordinate":{"latitude":11.587669416896203,"longitude":41.66839599609375,"valid":true,"coordinateString":"[41.66839599609375,11.587669416896203]"},"dataValues":[{"created":"2016-06-14T07:21:30.781+","lastUpdated":"2016-06-14T07:21:30.782+","value":"7","dataElement":"gKGoK7Vb2yK","providedElsewhere":false,"storedBy":"Anil"}],"notes":[],"followup":null,"created":null,"lastUpdated":null,"attributeCategoryOptions":"xYerKDKCefk","completedBy":null,"completedDate":null,"href":null}],"metaData":null,"pager":null};
line: 1, column: 39] (through reference chain:
org.hisp.dhis.dxf2.events.event.Event["programInstance"])
at
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:51)


Although, we see this working when we add  @JsonIgnore on getters.

@JsonIgnore
public boolean isValid()

@JsonIgnore

public String getCoordinateString()



Thanks,

Anil



On Wed, Jun 15, 2016 at 10:48 AM, Morten Olav Hansen 
wrote:

> Already done :)
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Wed, Jun 15, 2016 at 11:50 AM, Vanya Seth 
> wrote:
>
>> Hi Morten
>>
>> That would be great. Please let us know when you commit the changes. We
>> ll take a merge from the trunk.
>>
>> Regards
>> Vanya
>>
>> On Wed, Jun 15, 2016 at 9:01 AM, Morten Olav Hansen 
>> wrote:
>>
>>> Hi
>>>
>>> We usually turn off most of that Jackson auto discovery magic, I see we
>>> haven't done that properly in Jackson*, I will add
>>> that now (so it follows JacksonUtils, RenderService etc)
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Tue, Jun 14, 2016 at 8:41 PM, Anilkumar Kodi <
>>> anilk...@thoughtworks.com> wrote:
>>>
>>>> Hi Morten,
>>>>
>>>> We are doing Anonymous Event data push. As part of that we are also
>>>> sending coordinates.
>>>>
>>>> Coordinate object has 4 public properties which are listed below
>>>>
>>>> @JsonProperty( required = true )
>>>> @JacksonXmlProperty( isAttribute = true )
>>>> public Double getLatitude()
>>>>
>>>> @JsonProperty( required = true )
>>>> @JacksonXmlProperty( isAttribute = true )
>>>> public Double getLongitude()
>>>>
>>>> public boolean isValid()
>>>>
>>>> public String getCoordinateString()
>>>>
>>>>
>>>> We don't have @JsonIgnore/@JsonProperty on the Other 2 properties.
>>>>
>>>> Because of this we are getting Error while Deserializing.
>>>>
>>>> Moreover, the JSON Mapper for the class   has 
>>>> configuration FAIL_ON_UNKNOWN_PROPERTIES  set to *true*
>>>>
>>>> We have fixed this by adding @JsonIgnore on those properties.
>>>>
>>>> We Would like to know if you see any downstream issues with this minor 
>>>> change.
>>>>
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> Anil Kumar & Srikanth
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> With Regards
>> ThoughtWorks Technologies
>> Hyderabad
>>
>> --Stay Hungry Stay Foolish!!
>>
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Anilkumar Kodi
Hi Morten

This is related to the coordinate value itself.
Please see this event payload thats getting posted to /api/events (POST).

{"program":null,"programInstance":null,"events":[{"event":"tiqYSyQER6a","status":"ACTIVE","program":"MR7cTxF25lM","programStage":"f8hc3X0zYQ7","enrollment":null,"enrollmentStatus":null,"orgUnit":"y2mjbcN29en","orgUnitName":null,"trackedEntityInstance":null,"eventDate":"2016-06-15T18:30:00.000+","dueDate":null,"storedBy":null,"coordinate":{"latitude":16.867633616803847,"longitude":50.28167724609375,"valid":true,"coordinateString":"[50.28167724609375,16.867633616803847]"},"dataValues":[{"created":"2016-06-16T06:11:29.707+","lastUpdated":"2016-06-16T06:11:29.707+","value":"123456789","dataElement":"YKz99vMMKpg","providedElsewhere":false,"storedBy":"admin"}],"notes":[],"followup":null,"created":null,"lastUpdated":null,"attributeCategoryOptions":"xYerKDKCefk","completedBy":null,"completedDate":null,"href":null}],"metaData":null,"pager":null}

*And the underlying exception is this:*

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
Unrecognized field "valid" (class
org.hisp.dhis.dxf2.events.event.Coordinate), not marked as ignorable (2
known properties: "latitude", "longitude"])
 at [Source:
{"program":null,"programInstance":null,"events":[{"event":"tiqYSyQER6a","status":"ACTIVE","program":"MR7cTxF25lM","programStage":"f8hc3X0zYQ7","enrollment":null,"enrollmentStatus":null,"orgUnit":"y2mjbcN29en","orgUnitName":null,"trackedEntityInstance":null,"eventDate":"2016-06-15T18:30:00.000+","dueDate":null,"storedBy":null,"coordinate":{"latitude":16.867633616803847,"longitude":50.28167724609375,"valid":true,"coordinateString":"[50.28167724609375,16.867633616803847]"},"dataValues":[{"created":"2016-06-16T06:11:29.707+","lastUpdated":"2016-06-16T06:11:29.707+","value":"123456789","dataElement":"YKz99vMMKpg","providedElsewhere":false,"storedBy":"admin"}],"notes":[],"followup":null,"created":null,"lastUpdated":null,"attributeCategoryOptions":"xYerKDKCefk","completedBy":null,"completedDate":null,"href":null}],"metaData":null,"pager":null}
; line: 1, column: 418] (through reference chain:
org.hisp.dhis.dxf2.events.event.Events["events"]->java.util.ArrayList[0]->org.hisp.dhis.dxf2.events.event.Event["coordinate"]->org.hisp.dhis.dxf2.events.event.Coordinate["valid"])

Please let us know what you think.

Regards
Anil

On Thu, Jun 16, 2016 at 7:30 AM, Morten Olav Hansen 
wrote:

> Hi
>
> Could you show me the payload you are sending? this API is in use by
> several clients without any issues.
>
> Also, it says `Unrecognized field "programInstance"` are you sure this is
> really related to `@JsonIgnore` on the `Coordinate` class?
>
> It would be easier to debug if you can share the event you are sending.
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Wed, Jun 15, 2016 at 7:46 PM, Anilkumar Kodi  > wrote:
>
>> Hi Morten,
>>
>> This is still looking for other 2 properties to map while deserializing,
>> we are getting exception like
>>
>> com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
>> Unrecognized field "programInstance" (class
>> org.hisp.dhis.dxf2.events.event.Event), not marked as ignorable (22 known
>> properties: "notes", "trackedEntityInstance", "program", "lastUpdated",
>> "orgUnit", "href", "dataValues", "status", "orgUnitName",
>> "enrollmentStatus", "coordinate", "completedDate", "event", "dueDate",
>> "enrollment", "eventDate", "followup", "programStage", "storedBy",
>> "create

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Anilkumar Kodi
It got added when we are serializing and sending request in the
executeAnonymousEventPush.

On Thu, Jun 16, 2016 at 3:34 PM, Morten Olav Hansen 
wrote:

> Right, but I don't see why you have valid in the payload to start with?
> normal event export will not include this
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Jun 16, 2016 at 4:52 PM, Anilkumar Kodi  > wrote:
>
>> Hi Morten
>>
>> This is related to the coordinate value itself.
>> Please see this event payload thats getting posted to /api/events (POST).
>>
>>
>> {"program":null,"programInstance":null,"events":[{"event":"tiqYSyQER6a","status":"ACTIVE","program":"MR7cTxF25lM","programStage":"f8hc3X0zYQ7","enrollment":null,"enrollmentStatus":null,"orgUnit":"y2mjbcN29en","orgUnitName":null,"trackedEntityInstance":null,"eventDate":"2016-06-15T18:30:00.000+","dueDate":null,"storedBy":null,"coordinate":{"latitude":16.867633616803847,"longitude":50.28167724609375,"valid":true,"coordinateString":"[50.28167724609375,16.867633616803847]"},"dataValues":[{"created":"2016-06-16T06:11:29.707+","lastUpdated":"2016-06-16T06:11:29.707+","value":"123456789","dataElement":"YKz99vMMKpg","providedElsewhere":false,"storedBy":"admin"}],"notes":[],"followup":null,"created":null,"lastUpdated":null,"attributeCategoryOptions":"xYerKDKCefk","completedBy":null,"completedDate":null,"href":null}],"metaData":null,"pager":null}
>>
>> *And the underlying exception is this:*
>>
>> com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
>> Unrecognized field "valid" (class
>> org.hisp.dhis.dxf2.events.event.Coordinate), not marked as ignorable (2
>> known properties: "latitude", "longitude"])
>>  at [Source:
>> {"program":null,"programInstance":null,"events":[{"event":"tiqYSyQER6a","status":"ACTIVE","program":"MR7cTxF25lM","programStage":"f8hc3X0zYQ7","enrollment":null,"enrollmentStatus":null,"orgUnit":"y2mjbcN29en","orgUnitName":null,"trackedEntityInstance":null,"eventDate":"2016-06-15T18:30:00.000+","dueDate":null,"storedBy":null,"coordinate":{"latitude":16.867633616803847,"longitude":50.28167724609375,"valid":true,"coordinateString":"[50.28167724609375,16.867633616803847]"},"dataValues":[{"created":"2016-06-16T06:11:29.707+","lastUpdated":"2016-06-16T06:11:29.707+","value":"123456789","dataElement":"YKz99vMMKpg","providedElsewhere":false,"storedBy":"admin"}],"notes":[],"followup":null,"created":null,"lastUpdated":null,"attributeCategoryOptions":"xYerKDKCefk","completedBy":null,"completedDate":null,"href":null}],"metaData":null,"pager":null}
>> ; line: 1, column: 418] (through reference chain:
>> org.hisp.dhis.dxf2.events.event.Events["events"]->java.util.ArrayList[0]->org.hisp.dhis.dxf2.events.event.Event["coordinate"]->org.hisp.dhis.dxf2.events.event.Coordinate["valid"])
>>
>> Please let us know what you think.
>>
>> Regards
>> Anil
>>
>> On Thu, Jun 16, 2016 at 7:30 AM, Morten Olav Hansen 
>> wrote:
>>
>>> Hi
>>>
>>> Could you show me the payload you are sending? this API is in use by
>>> several clients without any issues.
>>>
>>> Also, it says `Unrecognized field "programInstance"` are you sure this
>>> is really related to `@JsonIgnore` on the `Coordinate` class?
>>>
>>> It would be easier to debug if you can share the event you are sending.
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Wed, Jun 15, 2016 at 7:46 PM, Anilkumar Kodi <
>>> anilk...@thoughtworks.com> wrote:
>>>
&g

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Anilkumar Kodi
Sorry Morten,  executeAnonymousEventPush which we build for pushing
anonymous event data, When we are getting events(which does not have valid
and coordinateString field ) and when we are passing that to 
to write to request, at the time this payload was building.


Any idea why are we getting those field when we  writeValue using
ObjectMapper


Here is the code:

Events result = eventService.getEventValuesLastUpdatedAfter( lastSuccessTime );
ObjectMapper mapper = new ObjectMapper();
mapper.writeValue( request.getBody(), result );


OutPut

result = Events{program='null', programInstance='null',
events=[Event{event='p6lrkXRw14W', status=ACTIVE,
program='YJ4AHPlFTrf', programStage='UpHRvs3KcyL',
orgUnit='y2mjbcN29en', trackedEntityInstance='null',
eventDate='2016-06-15T18:30:00.000+', dueDate='null',
storedBy='null', coordinate=Coordinate{latitude=14.093957177836236,
longitude=46.175537109375}, dataValues=[DataValue{value='12345',
dataElement='YKz99vMMKpg', providedElsewhere=false,
storedBy='Srikanth'}], attributeCategoryOptions=xYerKDKCefk,
completedBy=null, completedDate=null}]}

After we are mapping we are getting previous payload




On Thu, Jun 16, 2016 at 4:32 PM, Anilkumar Kodi 
wrote:

> It got added when we are serializing and sending request in the
> executeAnonymousEventPush.
>
> On Thu, Jun 16, 2016 at 3:34 PM, Morten Olav Hansen 
> wrote:
>
>> Right, but I don't see why you have valid in the payload to start with?
>> normal event export will not include this
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Thu, Jun 16, 2016 at 4:52 PM, Anilkumar Kodi <
>> anilk...@thoughtworks.com> wrote:
>>
>>> Hi Morten
>>>
>>> This is related to the coordinate value itself.
>>> Please see this event payload thats getting posted to /api/events
>>> (POST).
>>>
>>>
>>> {"program":null,"programInstance":null,"events":[{"event":"tiqYSyQER6a","status":"ACTIVE","program":"MR7cTxF25lM","programStage":"f8hc3X0zYQ7","enrollment":null,"enrollmentStatus":null,"orgUnit":"y2mjbcN29en","orgUnitName":null,"trackedEntityInstance":null,"eventDate":"2016-06-15T18:30:00.000+","dueDate":null,"storedBy":null,"coordinate":{"latitude":16.867633616803847,"longitude":50.28167724609375,"valid":true,"coordinateString":"[50.28167724609375,16.867633616803847]"},"dataValues":[{"created":"2016-06-16T06:11:29.707+","lastUpdated":"2016-06-16T06:11:29.707+","value":"123456789","dataElement":"YKz99vMMKpg","providedElsewhere":false,"storedBy":"admin"}],"notes":[],"followup":null,"created":null,"lastUpdated":null,"attributeCategoryOptions":"xYerKDKCefk","completedBy":null,"completedDate":null,"href":null}],"metaData":null,"pager":null}
>>>
>>> *And the underlying exception is this:*
>>>
>>> com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
>>> Unrecognized field "valid" (class
>>> org.hisp.dhis.dxf2.events.event.Coordinate), not marked as ignorable (2
>>> known properties: "latitude", "longitude"])
>>>  at [Source:
>>> {"program":null,"programInstance":null,"events":[{"event":"tiqYSyQER6a","status":"ACTIVE","program":"MR7cTxF25lM","programStage":"f8hc3X0zYQ7","enrollment":null,"enrollmentStatus":null,"orgUnit":"y2mjbcN29en","orgUnitName":null,"trackedEntityInstance":null,"eventDate":"2016-06-15T18:30:00.000+","dueDate":null,"storedBy":null,"coordinate":{"latitude":16.867633616803847,"longitude":50.28167724609375,"valid":true,"coordinateString":"[50.28167724609375,16.867633616803847]"},"dataValues":[{"created":"2016-06-16T06:11:29.707+","lastUpdated":"2016-06-16T06:11:29.707+","value":"123456789","dataElement":"YKz99vMMKpg","providedElsewhere":false,"storedBy"

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Anilkumar Kodi
Hi Morten,

We identified the problem and found solution as below.

*Solution :*
As you implemented disabling GETTERS and SETTERS in 
for deserializing, the same way we need to disable while serializing as
well.

Thank you so much for your help


Regards,
Anil

On Thu, Jun 16, 2016 at 5:24 PM, Anilkumar Kodi 
wrote:

> Sorry Morten,  executeAnonymousEventPush which we build for pushing
> anonymous event data, When we are getting events(which does not have valid
> and coordinateString field ) and when we are passing that to 
> to write to request, at the time this payload was building.
>
>
> Any idea why are we getting those field when we  writeValue using
> ObjectMapper
>
>
> Here is the code:
>
> Events result = eventService.getEventValuesLastUpdatedAfter( lastSuccessTime 
> );
> ObjectMapper mapper = new ObjectMapper();
> mapper.writeValue( request.getBody(), result );
>
>
> OutPut
>
> result = Events{program='null', programInstance='null', 
> events=[Event{event='p6lrkXRw14W', status=ACTIVE, program='YJ4AHPlFTrf', 
> programStage='UpHRvs3KcyL', orgUnit='y2mjbcN29en', 
> trackedEntityInstance='null', eventDate='2016-06-15T18:30:00.000+', 
> dueDate='null', storedBy='null', 
> coordinate=Coordinate{latitude=14.093957177836236, 
> longitude=46.175537109375}, dataValues=[DataValue{value='12345', 
> dataElement='YKz99vMMKpg', providedElsewhere=false, storedBy='Srikanth'}], 
> attributeCategoryOptions=xYerKDKCefk, completedBy=null, completedDate=null}]}
>
> After we are mapping we are getting previous payload
>
>
>
>
> On Thu, Jun 16, 2016 at 4:32 PM, Anilkumar Kodi  > wrote:
>
>> It got added when we are serializing and sending request in the
>> executeAnonymousEventPush.
>>
>> On Thu, Jun 16, 2016 at 3:34 PM, Morten Olav Hansen 
>> wrote:
>>
>>> Right, but I don't see why you have valid in the payload to start with?
>>> normal event export will not include this
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Thu, Jun 16, 2016 at 4:52 PM, Anilkumar Kodi <
>>> anilk...@thoughtworks.com> wrote:
>>>
>>>> Hi Morten
>>>>
>>>> This is related to the coordinate value itself.
>>>> Please see this event payload thats getting posted to /api/events
>>>> (POST).
>>>>
>>>>
>>>> {"program":null,"programInstance":null,"events":[{"event":"tiqYSyQER6a","status":"ACTIVE","program":"MR7cTxF25lM","programStage":"f8hc3X0zYQ7","enrollment":null,"enrollmentStatus":null,"orgUnit":"y2mjbcN29en","orgUnitName":null,"trackedEntityInstance":null,"eventDate":"2016-06-15T18:30:00.000+","dueDate":null,"storedBy":null,"coordinate":{"latitude":16.867633616803847,"longitude":50.28167724609375,"valid":true,"coordinateString":"[50.28167724609375,16.867633616803847]"},"dataValues":[{"created":"2016-06-16T06:11:29.707+","lastUpdated":"2016-06-16T06:11:29.707+","value":"123456789","dataElement":"YKz99vMMKpg","providedElsewhere":false,"storedBy":"admin"}],"notes":[],"followup":null,"created":null,"lastUpdated":null,"attributeCategoryOptions":"xYerKDKCefk","completedBy":null,"completedDate":null,"href":null}],"metaData":null,"pager":null}
>>>>
>>>> *And the underlying exception is this:*
>>>>
>>>> com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
>>>> Unrecognized field "valid" (class
>>>> org.hisp.dhis.dxf2.events.event.Coordinate), not marked as ignorable (2
>>>> known properties: "latitude", "longitude"])
>>>>  at [Source:
>>>> {"program":null,"programInstance":null,"events":[{"event":"tiqYSyQER6a","status":"ACTIVE","program":"MR7cTxF25lM","programStage":"f8hc3X0zYQ7","enrollment":null,"enrollmentStatus":null,"orgUnit":"y2mjbcN29en","orgUnitName":null,"trackedE

[Dhis2-devs] Understanding the scope of dhis2.period.js

2016-07-11 Thread Anilkumar Kodi
Hi,

We want to use *dhis2.period.js* library for generating date periods like
[daily,monthly, etc.]  in our custom apps.

We would like to understand the scope of the file, any future changes and
its road map.




Thanks,
Anil Kumar Kodi.
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Program translations are not working in 2.24

2016-09-27 Thread Anilkumar Kodi
Hi Devs,

Translations for programs, program stages and Program Stage sections are
not working in DHIS 2.24 version. Even if translations exist, they're not
showing up on the UI. But, the same is working in trunk.  Could you help
fix it in 2.24 as well.


Thanks,
Anil Kumar Kodi.
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Program translations are not working in 2.24

2016-09-27 Thread Anilkumar Kodi
To add to the same, We could see the translations in 'translation' table,
but we're guessing it should be available in objecttranslation table and
there should have mapping in programtranslation or programstagetranslation
to get translations in UI.

On Tue, Sep 27, 2016 at 4:31 PM, Anilkumar Kodi 
wrote:

> Hi Devs,
>
> Translations for programs, program stages and Program Stage sections are
> not working in DHIS 2.24 version. Even if translations exist, they're not
> showing up on the UI. But, the same is working in trunk.  Could you help
> fix it in 2.24 as well.
>
>
> Thanks,
> Anil Kumar Kodi.
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Program translations are not working in 2.24

2016-09-29 Thread Anilkumar Kodi
Hi all,

Any Update on this?


On Tue, Sep 27, 2016 at 4:42 PM, Anilkumar Kodi 
wrote:

> To add to the same, We could see the translations in 'translation' table,
> but we're guessing it should be available in objecttranslation table and
> there should have mapping in programtranslation or programstagetranslation
> to get translations in UI.
>
> On Tue, Sep 27, 2016 at 4:31 PM, Anilkumar Kodi  > wrote:
>
>> Hi Devs,
>>
>> Translations for programs, program stages and Program Stage sections are
>> not working in DHIS 2.24 version. Even if translations exist, they're not
>> showing up on the UI. But, the same is working in trunk.  Could you help
>> fix it in 2.24 as well.
>>
>>
>> Thanks,
>> Anil Kumar Kodi.
>>
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] API Field transformers are not working

2017-02-07 Thread Anilkumar Kodi
Hi devs,

We are using 2.25 DHIS version. Some of the dhis apis are throwing 400 when
using | symbol but working fine when using ~ symbol.

ex: /api/organisationUnits?fields=id,displayName|rename(name)

As per 2.24 documentation the field transformers use *|* and 2.25 use
*~ *symbol,
but we see 2.25 plugins (eg: chart.js, table.js,eventchart.js) are still
using pipe(* |* ) symbol.

Did anyone face this issue before? Any suggestions please.





Thanks,
Anil Kumar
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Fwd: Import of DHIS metdata taking long time

2017-02-13 Thread Anilkumar Kodi
Yes, we could see that process was still running,  in logs we could see
that there are no errors and it is creating, updating dataSets, orgUnits
and orgGroups,.. etc.


Thanks,
Anil Kumar K

On Mon, Feb 13, 2017 at 4:20 PM, Knut Staring  wrote:

> Are you sure the process was actually running? No errors in the Tomcat log?
>
> On Feb 13, 2017 10:43 AM, "Nalinikanth Meesala" 
> wrote:
>
>> Hi,
>>
>> We are trying to import Meta data of dhis2 exported from (2.23) to our
>> local instance DHIS 2(2.24) [as import of the exported metadata is not
>> working in DHIS 2.23 ].
>>
>> The size of meta data is 164 mb can you please help in providing inputs
>> to make the import faster. previously when we tried it took more than 2
>> days and it was still running.
>>
>> Ca you please let us know any work around so that we can make it faster.
>>
>> --
>> Thanks & Regards,
>> Nalinikanth M
>> Quality Analyst
>> Email nali...@thoughtworks.com
>> Telephone +91 9052234588 <+91+9052234588>
>> [image: ThoughtWorks]
>> 
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] DHIS Version 2.21 /api/events/{uid} fix

2016-02-03 Thread Anilkumar Kodi
Hi Morten,

We are working with the Android Event Capture app (legacy 2.21).
The *GET /api/events* and */api/events/{uid}* have been used for fetching
the events data.

When we Invoke the GET events call we are getting all the fields like
"created" and "lastUpdated" but when we invoke GET call for the particular
event with api/events/{uid} we don't get "Created" and "lastUpdated"
 fields.
On looking up the code we realized that the Event object was not being
populated with these information. We have created a patch for the same.
Kindly commit it to the dhis code base.


We are using DHIS version *2.21* and revision *20983.*

Regards
Anil Kumar Kodi,
ThoughtWorks
Phone: +917660010617


AbstractEventService.patch
Description: Binary data
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp