Re: [Dhis2-devs] Date Time Format change

2016-08-29 Thread Morten Olav Hansen
Hi Sam

Yes, this was done a few weeks ago, I'm sorry if it causes issues on your
end. This was done as we have seen a lot of TZ related issues lately, and
because of the way TZ is stored internally (i.e. its not stored) this meant
that the output from the API was not always correct. So this fix simply
give out what was given in.

That said, for your particular issue.. the string itself is still ISO 8601
(just without TZ), how are you parsing the dates? Maybe someone from our
Android team can tell you about how they handle this? (it didn't affect
their code)

To make your app future proof, I would suggest supporting these 2 formats:
-MM-dd'T'HH:mm:ss.SSSZ
-MM-dd'T'HH:mm:ss.SSS

We are planing to have a big overhaul of the way TZ works internally in
2.26 (basically properly storing TZ, and adding back timezone info). If you
support these 2 formats, you should have no issues.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Sun, Aug 28, 2016 at 4:08 PM, Alex Tumwesigye 
wrote:

> Dear Sam,
>
> Quick fix is to reformat the date-time string to your own format e.g
> -mm-dd hh-mm-ss
>
> Alex
>
>
> On Sunday, August 28, 2016, Sampath Jayasinghe 
> wrote:
>
>> Hello Friends,
>>
>> I'm working on an android app that interacts with DHIS2. It is a
>> government project. This is one of the projects that Health officials are
>> really concerned about. They are looking forward to demo this next week.
>>
>> Recently we have downloaded the new #124 build of dhis.war. Our well
>> tested and app seamed crashing on retrieving Events from Events API and we
>> did a thorough investigation since that part of the code was tested by
>> several hundreds of users and approved.
>>
>> Our findings are as below.
>>
>> -* previous Format*
>>
>> "programStage": "wS2i9c9hXXz",
>>   "orgUnit": "cRv4S3vBoIK",
>>   "program": "MmGml1Gyb7K",
>>   "trackedEntityInstance": "yNSwSLV7zlN",
>>   "enrollment": "iclnhtQ00gr",
>>   "enrollmentStatus": "ACTIVE",
>>   "href": "http:///nss/api/events/FWvWE950yZf
>> ",
>>   "event": "FWvWE950yZf",
>>   "status": "ACTIVE",
>>   *"eventDate": "2016-01-13T18:30:00.000+",*
>>   "orgUnitName": "Ambagahawella",
>>   "created": "2016-03-14T13:36:03.956+",
>>   "lastUpdated": "2016-03-14T13:36:03.956+",
>>   "followup": false,
>>   "dataValues":
>>
>> -* Current Format*
>>
>> "programStage": "wS2i9c9hXXz",
>>   "orgUnit": "cRv4S3vBoIK",
>>   "dueDate": "2016-06-15T16:08:01.665",
>>   "program": "MmGml1Gyb7K",
>>   "trackedEntityInstance": "luBswqwIXi0",
>>   "enrollment": "gyEbBkDubZb",
>>   "enrollmentStatus": "ACTIVE",
>>   "href": "http://l/nss/api/events/Tq1eNtA7l6R
>> ",
>>   "event": "Tq1eNtA7l6R",
>>   "status": "ACTIVE",
>>  * "eventDate": "2016-06-15T16:02:33.455",*
>>   "orgUnitName": "Ambagahawella",
>>   "attributeCategoryOptions": "ZJyvKtqS7Kx",
>>   "created": "2016-06-15T16:08:01.683",
>>   "lastUpdated": "2016-06-15T16:08:01.683",
>>   "followup": false,
>>   "coordinate": {
>> "latitude": 0.0,
>> "longitude": 0.0
>>   },
>>   "dataValues":
>>
>>
>> Please note that the older version and latest version has a difference
>> when it comes to DateTime formats such as *eventDate*. This change seams
>> to be deadly to us. Our app has so many time based dependencies.
>>
>> How can we address these kind of sudden changes? Specially when we don't
>> have a development team, we may not be able to customize these builds once
>> apps finished.
>>
>> Please provide your valuable thoughts.
>>
>> Thank you all in advance. Appreciate the efforts on this great course as
>> well.
>>
>> Sam
>>
>>
>
> --
> Alex Tumwesigye
>
> Technical Advisor - DHIS2 (Consultant),
> Ministry of Health/AFENET  | HISP Uganda
> Kampala
> Uganda
> +256 774149 775, + 256 759 800161
> Skype ID: talexie
>
> IT Consultant (Servers, Networks and Security, Health Information Systems
> - DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant
>
>
> "I don't want to be anything other than what I have been - one tree hill "
>
>
> ___
> 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] [Bug 1618147] Re: Web API PATCH not working

2016-08-29 Thread Morten Olav Hansen
Hi Jim

Would it be possible for you to move over to the new endpoints for
PATCH? that means using /api/type/ID directly, and not /api/type/ID
/prop-name? the old endpoint was just needed as we had very very basic
PATCH support to start with.. now that we support it a bit better (it
still have some issues) the recommended approach is using PATCH
/api/type/ID instead

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

Title:
  Web API PATCH not working

Status in DHIS:
  New

Bug description:
  I can't get Web API PATCH to work in 2.24 they way I can in 2.21. The
  following commands do not change the names of the referenced
  dataElement or dataSet:

  curl -X PATCH -d '{"name": "New Name"}' -H "Content-Type:
  application/json" -u admin:district
  https://play.dhis2.org/dev/api/24/dataElements/fbfJHSPpUQD/name

  curl -X PATCH -d '{"name": "New Name"}' -H "Content-Type:
  application/json" -u admin:district
  https://play.dhis2.org/dev/api/24/dataSets/lyLU2wR22tC/name

  As can be seen by these GETs:

  curl -u admin:district
  https://play.dhis2.org/demo/api/24/dataElements/fbfJHSPpUQD?fields=id,name

  curl -u admin:district
  https://play.dhis2.org/demo/api/24/dataSets/lyLU2wR22tC?fields=id,name

  The same kind of syntax on a local 2.21 system works fine (without the
  /24).

  This is following up a problem reported to me in 2.23, so please
  backport if appropriate. Also please check to see if this should be
  backported to 2.22.

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

___
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] [Bug 1618312] [NEW] Pivot table app not showing selected data dimensions in 2.22

2016-08-29 Thread Dapo Adejumo
Public bug reported:

Hi Devs,
The pivot table app is not showing translated data dimensions in the select 
lists (Data Elements and Indicators) in 2.22 . The translations however show 
correctly in the pivot once updated. This works as expected in 2.24. 
Screenshot highlighting this is attached.

Tested on Version 2.22 (revs 22092 and 22095)

Thanks.

** Affects: dhis2
 Importance: Undecided
 Status: New

** Attachment added: "Translation Bug.jpg"
   
https://bugs.launchpad.net/bugs/1618312/+attachment/4730499/+files/Translation%20Bug.jpg

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

Title:
  Pivot table app not showing selected data dimensions in 2.22

Status in DHIS:
  New

Bug description:
  Hi Devs,
  The pivot table app is not showing translated data dimensions in the select 
lists (Data Elements and Indicators) in 2.22 . The translations however show 
correctly in the pivot once updated. This works as expected in 2.24. 
  Screenshot highlighting this is attached.

  Tested on Version 2.22 (revs 22092 and 22095)

  Thanks.

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

___
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] [Bug 1618147] [NEW] Web API PATCH not working

2016-08-29 Thread Jim Grace
Public bug reported:

I can't get Web API PATCH to work in 2.24 they way I can in 2.21. The
following commands do not change the names of the referenced dataElement
or dataSet:

curl -X PATCH -d '{"name": "New Name"}' -H "Content-Type:
application/json" -u admin:district
https://play.dhis2.org/dev/api/24/dataElements/fbfJHSPpUQD/name

curl -X PATCH -d '{"name": "New Name"}' -H "Content-Type:
application/json" -u admin:district
https://play.dhis2.org/dev/api/24/dataSets/lyLU2wR22tC/name

As can be seen by these GETs:

curl -u admin:district
https://play.dhis2.org/demo/api/24/dataElements/fbfJHSPpUQD?fields=id,name

curl -u admin:district
https://play.dhis2.org/demo/api/24/dataSets/lyLU2wR22tC?fields=id,name

The same kind of syntax on a local 2.21 system works fine (without the
/24).

This is following up a problem reported to me in 2.23, so please
backport if appropriate. Also please check to see if this should be
backported to 2.22.

** 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/1618147

Title:
  Web API PATCH not working

Status in DHIS:
  New

Bug description:
  I can't get Web API PATCH to work in 2.24 they way I can in 2.21. The
  following commands do not change the names of the referenced
  dataElement or dataSet:

  curl -X PATCH -d '{"name": "New Name"}' -H "Content-Type:
  application/json" -u admin:district
  https://play.dhis2.org/dev/api/24/dataElements/fbfJHSPpUQD/name

  curl -X PATCH -d '{"name": "New Name"}' -H "Content-Type:
  application/json" -u admin:district
  https://play.dhis2.org/dev/api/24/dataSets/lyLU2wR22tC/name

  As can be seen by these GETs:

  curl -u admin:district
  https://play.dhis2.org/demo/api/24/dataElements/fbfJHSPpUQD?fields=id,name

  curl -u admin:district
  https://play.dhis2.org/demo/api/24/dataSets/lyLU2wR22tC?fields=id,name

  The same kind of syntax on a local 2.21 system works fine (without the
  /24).

  This is following up a problem reported to me in 2.23, so please
  backport if appropriate. Also please check to see if this should be
  backported to 2.22.

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

___
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] Event Capture - option set not working

2016-08-29 Thread Laura E. Lincks
Yes, we're experiencing the same problem.

*Laura E. Lincks*
Database Manager/Developer
ICAP - Columbia University
Mailman School of Public Health
60 Haven Ave, Floor B1
New York, NY 10032
Tel: 212 304 7132

On Mon, Aug 29, 2016 at 9:32 AM, Simon Muyambo  wrote:

> I am using the latest event capture from google play and Version:2.24
> Build revision: 23585
>
> Option Set on the event capture showing as text even on programs that used
> to work on 2.22.
>
>
>
> Has anyone come across this?
>
>
>
> Regards
>
> Simon Muyambo
>
>
>
> ___
> 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] Self registered user: dataViewOrgunit is left empty

2016-08-29 Thread Victor Garcia
Hi all,

we want to allow our users to access freely our system to play with the
data (entry and analysis) but limited to a specific part of the hierarchy.
For that, we have enabled self-registration in DHIS2 and selected the
orgunit we want them to use.

Once a user is self-registered, the organisationUnit (dataentry) is
correctly assign, but we have realized that the dataViewOrganisationUnit
(analysis) is left empty, so they can access the whole hierarchy in
analysis...

Is this a desirable behavior? For us, it is important to limit both data
entry and data analysis.

Regards,

Víctor
___
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] Self registered user: dataViewOrgunit is left empty

2016-08-29 Thread Victor Garcia
I forgot to mention that this behavior is reproducible at online demo
server.

Regards

On 29 August 2016 at 16:16, Victor Garcia  wrote:

> Hi all,
>
> we want to allow our users to access freely our system to play with the
> data (entry and analysis) but limited to a specific part of the hierarchy.
> For that, we have enabled self-registration in DHIS2 and selected the
> orgunit we want them to use.
>
> Once a user is self-registered, the organisationUnit (dataentry) is
> correctly assign, but we have realized that the dataViewOrganisationUnit
> (analysis) is left empty, so they can access the whole hierarchy in
> analysis...
>
> Is this a desirable behavior? For us, it is important to limit both data
> entry and data analysis.
>
> Regards,
>
> Víctor
>
___
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] Event Capture - option set not working

2016-08-29 Thread Simon Muyambo
I am using the latest event capture from google play and Version:2.24 Build 
revision: 23585

Option Set on the event capture showing as text even on programs that used to 
work on 2.22.

 

Has anyone come across this?

 

Regards

Simon Muyambo

 

___
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] Date & Time dataelements are not being showed in Event reports (2.22)

2016-08-29 Thread Jose Garcia Muñoz
Dear devs,

at least in 2.22, event reports are not showing the values for the Date &
Time dataelements. Would it be possible to have a solution for this?

Many thanks
Jose
___
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] (no subject)

2016-08-29 Thread Neeraj Gupta
Hi Team,

We are using DHIS2 version 2.21.
We need to use AD integration in the application. Is it possible to
integrate AD with DHIS version 2.21?

Has anyone used it already with any of the version?

-- 
Thanks,
Neeraj Gupta
___
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] problem with tracker capture

2016-08-29 Thread channara rin
Hi all,
i don't know what problem with tracker capture. but if i use individual
record, i can enter new event..
here is screenshot of tracker capture:
[image: Inline image 1]
___
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-core] switching to github for server-side code on tuesday

2016-08-29 Thread John Mukulu
Thanks for the updates.
Looking forward to this.

On Sun, Aug 28, 2016 at 1:29 PM, Lars Helge Øverland  wrote:

> Hi all,
>
> we will be transitioning the core source code branches from Launchpad to
> Github on Tuesday this week (Aug 30).
>
> For developers - please do not make commits to Launchpad on Tuesday. You
> will be notified when the new Github repo is available.
>
> We will migrate the trunk repo and the three latest stable release
> branches. More info will come later.
>
> regards,
>
> Lars
>
>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org 
>
>
> --
> 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
>
>


-- 
John Francis Mukulu,
Lead Developer, HISPTZ,
University of Dar es salaam.
http://hisptanzania.org/
-- 
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


Re: [Dhis2-devs] [Dhis2-devs-core] switching to github for server-side code on tuesday

2016-08-29 Thread John Mukulu
Thanks for the updates.
Looking forward to this.

On Sun, Aug 28, 2016 at 1:29 PM, Lars Helge Øverland  wrote:

> Hi all,
>
> we will be transitioning the core source code branches from Launchpad to
> Github on Tuesday this week (Aug 30).
>
> For developers - please do not make commits to Launchpad on Tuesday. You
> will be notified when the new Github repo is available.
>
> We will migrate the trunk repo and the three latest stable release
> branches. More info will come later.
>
> regards,
>
> Lars
>
>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org 
>
>
> --
> Mailing list: https://launchpad.net/~dhis2-devs-core
> Post to : dhis2-devs-c...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs-core
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
John Francis Mukulu,
Lead Developer, HISPTZ,
University of Dar es salaam.
http://hisptanzania.org/
___
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-core] [Google Summer of Code - DHIS 2] - Speeding up the Initial Rendering of DHIS2 Apps.

2016-08-29 Thread Dehan De Croos
Hi DHIS2 Devs,

I am Dehan de Croos from University of Moratuwa - Sri Lanka. I took part in
DHIS2 for this years GSoC program. The following is a brief description of
the problem that I was trying to solve.

One of the main drawbacks of SPA’s are the initial Rendering latency. The
framework initialization of the initial load of content can hang the user
for as much as a minute or more. This happens when the web app grows
sufficiently in complexity with time. Therefore the UI logic which was
divided across multiple views now has to be pulled into and rendered to
provide one unified viewing experience. Hence it can be frustrating for the
user in the very initial load.

The solution is motivated by the historical best practice of offloading
your complex-logic to the back end. Hence the proposed solution it is to
render the page contents into a static page in the back end. Enter the
concept of Pre-rendering.

The following document is an overview of the work I did on DHIS2 to explore
this hypothesis and come up with some guidelines on how this per rendering
can be achieved without an isomorphic JS backend [JAVA-Spring]. The
documentation points to and explains the changes done in the form of a use
case on DHIS2's Open Web Apps Platform. This provides third party app
developers an option to pre render their content if needed.

Please follow here

for
more information.
The code commits are pushed in here
 in the
"Nashorn" Feature branch.

Thank you DHIS2 for this wonderful opportunity and thank you Mark Polak for
putting up with my constant nagging and for all the tireless support and
guidance extended amidst your busy work schedule!

best regards,
*Dehan de Croos*
-- 
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


[Dhis2-devs-core] [ GSoC 2016 ] User profile app

2016-08-29 Thread adheesh bhatia
Hey,

GSoC 2016 has been a great learning experience for me. I want to thank HIS
for giving me this opportunity. As you all might already know, we are
rewriting the server based apps using modern frontend technologies like
ReactJS and RxJs. This transition is important since it ensures readability
and makes maintainability easier. Also, we have a much better and a fresh
UI design as we are following the material design guidelines by Google.
During the GSoC period, I have completed the development of user profile app
 which will allow our users to
view and update their profile and account settings. The detailed draft of
my work along with the demo video can be found here:
 https://medium.com/@adheeshbhatia/686aef2104d8


The above document will also be my Work Product Document
 for
final submission to GSOC 2016.

I want to thank my mentors - Nicolay Ramm and Mark Polak for helping me
throughout the project.

Regards
Adheesh Bhatia
-- 
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


Re: [Dhis2-devs] switching to github for server-side code on tuesday

2016-08-29 Thread Vanya Seth
Sounds GREAT!

Regards
Vanya

On Sun, Aug 28, 2016 at 4:59 PM, Lars Helge Øverland  wrote:

> Hi all,
>
> we will be transitioning the core source code branches from Launchpad to
> Github on Tuesday this week (Aug 30).
>
> For developers - please do not make commits to Launchpad on Tuesday. You
> will be notified when the new Github repo is available.
>
> We will migrate the trunk repo and the three latest stable release
> branches. More info will come later.
>
> regards,
>
> Lars
>
>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org 
>
>
> ___
> 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