[Dhis2-devs] Cannot change locale in DEV

2016-10-03 Thread Jason Pickering
Hi Devs,
There seem to be some issues updating a users locale in the latest dev
snapshot. It is not possible to update a users locale.

POST to

https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale

with "es" (the header sent by the app when swtiching from English to
Spanish)

yields an HTTP 500

{
  "httpStatus": "Internal Server Error",
  "httpStatusCode": 500,
  "status": "ERROR",
  "message": "Invalid locale format: \"es\""
}


With GET to the same URL yields

Unexpected 'e'

which seems strange.

Version:2.25-SNAPSHOT
Build revision:0cf6645

Regards,
Jason

-- 
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


[Dhis2-devs] Upcoming DHIS 2 Academies

2016-10-03 Thread Alice Aké Loba
Upcoming DHIS 2 Academies


View this email in your 
browser







[https://gallery.mailchimp.com/d86b474ea589b655ce766f7f3/images/f743725e-1ced-4e58-8c9e-7d48eca0c903.jpg]













[https://gallery.mailchimp.com/d86b474ea589b655ce766f7f3/images/a75ecb5e-faeb-4d77-b579-af7bccdd89b0.jpg]






Geneva 2016
14 - 18 November




[https://gallery.mailchimp.com/d86b474ea589b655ce766f7f3/images/f7c71998-f034-4126-8ca0-287905411699.jpg]



14 - 16 November: An Executive Introduction to DHIS 2 providing program 
managers, project managers and M&E specialists the hands-on opportunity to 
understand how DHIS 2 works and how it can be leveraged to meet institutional, 
programmatic or national goals for collecting and analysing health data.

17 - 18 November: The DHIS 2 Strategy Conference is intended for anyone 
interested in exploring the implications of leveraging DHIS 2 as a strategic 
health surveillance platform from multiple perspectives (multilateral, 
bilateral, INGO, and National Ministry of Health). It will include keynote 
presentations from international Public Health specialists, HIS specialists, 
and a series of use cases by experienced DHIS 2 implementers, addressing 
real-life challenges.




Register 
Now






[https://gallery.mailchimp.com/d86b474ea589b655ce766f7f3/images/b928ded8-bd82-468c-80e0-bd355ab0d9e7.jpg]





Maputo 2016
DHIS 2 Tracker Academy, Level 1
10 - 14 October
Maputo
Mozambique





Our first multilingual Academy in Southern Africa: Portuguese/English.
Register 
Now





New York 2016
DHIS 2 Fundamentals Academy
2 - 4 November
New York
USA





Get an overall understanding of DHIS 2 during 3 days.

Register 
Now





Tanzania 2016
DHIS 2 Design & Customization Academy, Level 1
28 Novembre - 2 Decembre
Dar es Salaam




Get  a comprehensive knowledge and understanding of best and worst practices.
Register 
Now










Connect with us




[Facebook]


[Twitter]


[Google 
Plus]


[Email]










[https://gallery.mailchimp.com/d86b474ea589b655ce766f7f3/images/8750e76d-1fc4-4215-9e07-12b86539569d.jpg]








HISP Oslo
P.O. Box 1080 Blindern
N-0316 Norway

You're receiving this because you subscribed to our list or attended a previous 
Academy.

unsubscribe from this 
list
 I 
update
 subscription 
preferences








___
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] Cannot change locale in DEV

2016-10-03 Thread Nicolay Ramm
Hi Jason,

is this happening with the settings app? It sounds like an issue that was
fixed recently, where plain text values were being encoded as JSON.

As long as you're running v25.0.5 or higher of the settings app, you should
be fine. Check the browser console when you start the app. The version
included with the latest snapshot should actually be v25.0.6, so your
browser cache may be stale.


Best regards,


Nicolay Ramm
Front end developer, DHIS 2
University of Oslo
https://www.dhis2.org

On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering  wrote:

> Hi Devs,
> There seem to be some issues updating a users locale in the latest dev
> snapshot. It is not possible to update a users locale.
>
> POST to
>
> https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale
>
> with "es" (the header sent by the app when swtiching from English to
> Spanish)
>
> yields an HTTP 500
>
> {
>   "httpStatus": "Internal Server Error",
>   "httpStatusCode": 500,
>   "status": "ERROR",
>   "message": "Invalid locale format: \"es\""
> }
>
>
> With GET to the same URL yields
>
> Unexpected 'e'
>
> which seems strange.
>
> Version:2.25-SNAPSHOT
> Build revision:0cf6645
>
> Regards,
> Jason
>
> --
> 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
>
>
___
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] Cannot change locale in DEV

2016-10-03 Thread Jason Pickering
OK. I tried a direct post without the app,and got the same thing. Will try
again however just to be sure.

Regards,
Jason

On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm  wrote:

> Hi Jason,
>
> is this happening with the settings app? It sounds like an issue that was
> fixed recently, where plain text values were being encoded as JSON.
>
> As long as you're running v25.0.5 or higher of the settings app, you
> should be fine. Check the browser console when you start the app. The
> version included with the latest snapshot should actually be v25.0.6, so
> your browser cache may be stale.
>
>
> Best regards,
>
>
> Nicolay Ramm
> Front end developer, DHIS 2
> University of Oslo
> https://www.dhis2.org
>
> On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
> Hi Devs,
> There seem to be some issues updating a users locale in the latest dev
> snapshot. It is not possible to update a users locale.
>
> POST to
>
> https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale
>
> with "es" (the header sent by the app when swtiching from English to
> Spanish)
>
> yields an HTTP 500
>
> {
>   "httpStatus": "Internal Server Error",
>   "httpStatusCode": 500,
>   "status": "ERROR",
>   "message": "Invalid locale format: \"es\""
> }
>
>
> With GET to the same URL yields
>
> Unexpected 'e'
>
> which seems strange.
>
> Version:2.25-SNAPSHOT
> Build revision:0cf6645
>
> Regards,
> Jason
>
> --
> 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
>
>
>
___
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] Cannot change locale in DEV

2016-10-03 Thread Nicolay Ramm
Keep in mind that the system settings API endpoint only accepts text/plain,
not json. So the value should be just es without quotes, not "es" with
quotes:

curl -u admin:district
https://play.dhis2.org/dev/api/systemSettings/keyUiLocale -X POST -H
'Content-Type: text/plain' -d es


Nicolay Ramm
Front end developer, DHIS 2
University of Oslo
https://www.dhis2.org

On Mon, Oct 3, 2016 at 2:13 PM, Jason Pickering  wrote:

> OK. I tried a direct post without the app,and got the same thing. Will try
> again however just to be sure.
>
> Regards,
> Jason
>
>
> On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm  wrote:
>
>> Hi Jason,
>>
>> is this happening with the settings app? It sounds like an issue that was
>> fixed recently, where plain text values were being encoded as JSON.
>>
>> As long as you're running v25.0.5 or higher of the settings app, you
>> should be fine. Check the browser console when you start the app. The
>> version included with the latest snapshot should actually be v25.0.6, so
>> your browser cache may be stale.
>>
>>
>> Best regards,
>>
>>
>> Nicolay Ramm
>> Front end developer, DHIS 2
>> University of Oslo
>> https://www.dhis2.org
>>
>> On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> Hi Devs,
>>> There seem to be some issues updating a users locale in the latest dev
>>> snapshot. It is not possible to update a users locale.
>>>
>>> POST to
>>>
>>> https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale
>>>
>>> with "es" (the header sent by the app when swtiching from English to
>>> Spanish)
>>>
>>> yields an HTTP 500
>>>
>>> {
>>>   "httpStatus": "Internal Server Error",
>>>   "httpStatusCode": 500,
>>>   "status": "ERROR",
>>>   "message": "Invalid locale format: \"es\""
>>> }
>>>
>>>
>>> With GET to the same URL yields
>>>
>>> Unexpected 'e'
>>>
>>> which seems strange.
>>>
>>> Version:2.25-SNAPSHOT
>>> Build revision:0cf6645
>>>
>>> Regards,
>>> Jason
>>>
>>> --
>>> 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
>>>
>>>
>>
___
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] Cannot change locale in DEV

2016-10-03 Thread Halvdan Hoem Grelland
It's currently broken on /dev, so I'm guessing you didn't deploy...

On Mon, Oct 3, 2016 at 2:20 PM, Nicolay Ramm  wrote:

> Keep in mind that the system settings API endpoint only accepts
> text/plain, not json. So the value should be just es without quotes, not
> "es" with quotes:
>
> curl -u admin:district https://play.dhis2.org/dev/
> api/systemSettings/keyUiLocale -X POST -H 'Content-Type: text/plain' -d es
>
>
> Nicolay Ramm
> Front end developer, DHIS 2
> University of Oslo
> https://www.dhis2.org
>
> On Mon, Oct 3, 2016 at 2:13 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> OK. I tried a direct post without the app,and got the same thing. Will
>> try again however just to be sure.
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm  wrote:
>>
>>> Hi Jason,
>>>
>>> is this happening with the settings app? It sounds like an issue that
>>> was fixed recently, where plain text values were being encoded as JSON.
>>>
>>> As long as you're running v25.0.5 or higher of the settings app, you
>>> should be fine. Check the browser console when you start the app. The
>>> version included with the latest snapshot should actually be v25.0.6, so
>>> your browser cache may be stale.
>>>
>>>
>>> Best regards,
>>>
>>>
>>> Nicolay Ramm
>>> Front end developer, DHIS 2
>>> University of Oslo
>>> https://www.dhis2.org
>>>
>>> On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
 Hi Devs,
 There seem to be some issues updating a users locale in the latest dev
 snapshot. It is not possible to update a users locale.

 POST to

 https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale

 with "es" (the header sent by the app when swtiching from English to
 Spanish)

 yields an HTTP 500

 {
   "httpStatus": "Internal Server Error",
   "httpStatusCode": 500,
   "status": "ERROR",
   "message": "Invalid locale format: \"es\""
 }


 With GET to the same URL yields

 Unexpected 'e'

 which seems strange.

 Version:2.25-SNAPSHOT
 Build revision:0cf6645

 Regards,
 Jason

 --
 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


>>>
>
> ___
> 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
>
>


-- 
Halvdan Hoem Grelland
Software developer, DHIS 2
University of Oslo
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


Re: [Dhis2-devs] Cannot change locale in DEV

2016-10-03 Thread Jason Pickering
OK, I tried in incognito mode on https://play.dhis2.org/dev/ and got the
same error.

Still cache?

Regards,
Jason


On Mon, Oct 3, 2016 at 2:20 PM, Nicolay Ramm  wrote:

> Keep in mind that the system settings API endpoint only accepts
> text/plain, not json. So the value should be just es without quotes, not
> "es" with quotes:
>
> curl -u admin:district https://play.dhis2.org/dev/
> api/systemSettings/keyUiLocale -X POST -H 'Content-Type: text/plain' -d es
>
>
> Nicolay Ramm
> Front end developer, DHIS 2
> University of Oslo
> https://www.dhis2.org
>
> On Mon, Oct 3, 2016 at 2:13 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> OK. I tried a direct post without the app,and got the same thing. Will
>> try again however just to be sure.
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm  wrote:
>>
>>> Hi Jason,
>>>
>>> is this happening with the settings app? It sounds like an issue that
>>> was fixed recently, where plain text values were being encoded as JSON.
>>>
>>> As long as you're running v25.0.5 or higher of the settings app, you
>>> should be fine. Check the browser console when you start the app. The
>>> version included with the latest snapshot should actually be v25.0.6, so
>>> your browser cache may be stale.
>>>
>>>
>>> Best regards,
>>>
>>>
>>> Nicolay Ramm
>>> Front end developer, DHIS 2
>>> University of Oslo
>>> https://www.dhis2.org
>>>
>>> On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
 Hi Devs,
 There seem to be some issues updating a users locale in the latest dev
 snapshot. It is not possible to update a users locale.

 POST to

 https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale

 with "es" (the header sent by the app when swtiching from English to
 Spanish)

 yields an HTTP 500

 {
   "httpStatus": "Internal Server Error",
   "httpStatusCode": 500,
   "status": "ERROR",
   "message": "Invalid locale format: \"es\""
 }


 With GET to the same URL yields

 Unexpected 'e'

 which seems strange.

 Version:2.25-SNAPSHOT
 Build revision:0cf6645

 Regards,
 Jason

 --
 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


>>>
>


-- 
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] Cannot change locale in DEV

2016-10-03 Thread Nicolay Ramm
I also tried in incognito mode on https://play.dhis2.org/dev/ and I got no
error..

What exactly are you doing? And which browser/version are you on?


Nicolay Ramm
Front end developer, DHIS 2
University of Oslo
https://www.dhis2.org

On Mon, Oct 3, 2016 at 2:27 PM, Jason Pickering  wrote:

> OK, I tried in incognito mode on https://play.dhis2.org/dev/ and got the
> same error.
>
> Still cache?
>
> Regards,
> Jason
>
>
> On Mon, Oct 3, 2016 at 2:20 PM, Nicolay Ramm  wrote:
>
>> Keep in mind that the system settings API endpoint only accepts
>> text/plain, not json. So the value should be just es without quotes, not
>> "es" with quotes:
>>
>> curl -u admin:district https://play.dhis2.org/dev/api
>> /systemSettings/keyUiLocale -X POST -H 'Content-Type: text/plain' -d es
>>
>>
>> Nicolay Ramm
>> Front end developer, DHIS 2
>> University of Oslo
>> https://www.dhis2.org
>>
>> On Mon, Oct 3, 2016 at 2:13 PM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> OK. I tried a direct post without the app,and got the same thing. Will
>>> try again however just to be sure.
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>> On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm  wrote:
>>>
 Hi Jason,

 is this happening with the settings app? It sounds like an issue that
 was fixed recently, where plain text values were being encoded as JSON.

 As long as you're running v25.0.5 or higher of the settings app, you
 should be fine. Check the browser console when you start the app. The
 version included with the latest snapshot should actually be v25.0.6, so
 your browser cache may be stale.


 Best regards,


 Nicolay Ramm
 Front end developer, DHIS 2
 University of Oslo
 https://www.dhis2.org

 On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering <
 jason.p.picker...@gmail.com> wrote:

> Hi Devs,
> There seem to be some issues updating a users locale in the latest dev
> snapshot. It is not possible to update a users locale.
>
> POST to
>
> https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale
>
> with "es" (the header sent by the app when swtiching from English to
> Spanish)
>
> yields an HTTP 500
>
> {
>   "httpStatus": "Internal Server Error",
>   "httpStatusCode": 500,
>   "status": "ERROR",
>   "message": "Invalid locale format: \"es\""
> }
>
>
> With GET to the same URL yields
>
> Unexpected 'e'
>
> which seems strange.
>
> Version:2.25-SNAPSHOT
> Build revision:0cf6645
>
> Regards,
> Jason
>
> --
> 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
>
>

>>
>
>
> --
> 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] Cannot change locale in DEV

2016-10-03 Thread Jason Pickering
Browser = Version 53.0.2785.116 (64-bit )  on Ubuntu

All I am doing is changing the locale from English to Spanish (or vice
versa).




On Mon, Oct 3, 2016 at 2:30 PM, Nicolay Ramm  wrote:

> I also tried in incognito mode on https://play.dhis2.org/dev/ and I got
> no error..
>
> What exactly are you doing? And which browser/version are you on?
>
>
> Nicolay Ramm
> Front end developer, DHIS 2
> University of Oslo
> https://www.dhis2.org
>
> On Mon, Oct 3, 2016 at 2:27 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> OK, I tried in incognito mode on https://play.dhis2.org/dev/ and got the
>> same error.
>>
>> Still cache?
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, Oct 3, 2016 at 2:20 PM, Nicolay Ramm  wrote:
>>
>>> Keep in mind that the system settings API endpoint only accepts
>>> text/plain, not json. So the value should be just es without quotes,
>>> not "es" with quotes:
>>>
>>> curl -u admin:district https://play.dhis2.org/dev/api
>>> /systemSettings/keyUiLocale -X POST -H 'Content-Type: text/plain' -d es
>>>
>>>
>>> Nicolay Ramm
>>> Front end developer, DHIS 2
>>> University of Oslo
>>> https://www.dhis2.org
>>>
>>> On Mon, Oct 3, 2016 at 2:13 PM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
 OK. I tried a direct post without the app,and got the same thing. Will
 try again however just to be sure.

 Regards,
 Jason


 On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm  wrote:

> Hi Jason,
>
> is this happening with the settings app? It sounds like an issue that
> was fixed recently, where plain text values were being encoded as JSON.
>
> As long as you're running v25.0.5 or higher of the settings app, you
> should be fine. Check the browser console when you start the app. The
> version included with the latest snapshot should actually be v25.0.6, so
> your browser cache may be stale.
>
>
> Best regards,
>
>
> Nicolay Ramm
> Front end developer, DHIS 2
> University of Oslo
> https://www.dhis2.org
>
> On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Hi Devs,
>> There seem to be some issues updating a users locale in the latest
>> dev snapshot. It is not possible to update a users locale.
>>
>> POST to
>>
>> https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale
>>
>> with "es" (the header sent by the app when swtiching from English to
>> Spanish)
>>
>> yields an HTTP 500
>>
>> {
>>   "httpStatus": "Internal Server Error",
>>   "httpStatusCode": 500,
>>   "status": "ERROR",
>>   "message": "Invalid locale format: \"es\""
>> }
>>
>>
>> With GET to the same URL yields
>>
>> Unexpected 'e'
>>
>> which seems strange.
>>
>> Version:2.25-SNAPSHOT
>> Build revision:0cf6645
>>
>> Regards,
>> Jason
>>
>> --
>> 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
>>
>>
>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>
>


-- 
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] Cannot change locale in DEV

2016-10-03 Thread Nicolay Ramm
Right, I was looking at the system settings app. I can reproduce in the
user profile app. Will deploy a new version.


Nicolay Ramm
Front end developer, DHIS 2
University of Oslo
https://www.dhis2.org

On Mon, Oct 3, 2016 at 2:33 PM, Jason Pickering  wrote:

> Browser = Version 53.0.2785.116 (64-bit )  on Ubuntu
>
> All I am doing is changing the locale from English to Spanish (or vice
> versa).
>
>
>
>
> On Mon, Oct 3, 2016 at 2:30 PM, Nicolay Ramm  wrote:
>
>> I also tried in incognito mode on https://play.dhis2.org/dev/ and I got
>> no error..
>>
>> What exactly are you doing? And which browser/version are you on?
>>
>>
>> Nicolay Ramm
>> Front end developer, DHIS 2
>> University of Oslo
>> https://www.dhis2.org
>>
>> On Mon, Oct 3, 2016 at 2:27 PM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> OK, I tried in incognito mode on https://play.dhis2.org/dev/ and got
>>> the same error.
>>>
>>> Still cache?
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>> On Mon, Oct 3, 2016 at 2:20 PM, Nicolay Ramm  wrote:
>>>
 Keep in mind that the system settings API endpoint only accepts
 text/plain, not json. So the value should be just es without quotes,
 not "es" with quotes:

 curl -u admin:district https://play.dhis2.org/dev/api
 /systemSettings/keyUiLocale -X POST -H 'Content-Type: text/plain' -d es


 Nicolay Ramm
 Front end developer, DHIS 2
 University of Oslo
 https://www.dhis2.org

 On Mon, Oct 3, 2016 at 2:13 PM, Jason Pickering <
 jason.p.picker...@gmail.com> wrote:

> OK. I tried a direct post without the app,and got the same thing. Will
> try again however just to be sure.
>
> Regards,
> Jason
>
>
> On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm  wrote:
>
>> Hi Jason,
>>
>> is this happening with the settings app? It sounds like an issue that
>> was fixed recently, where plain text values were being encoded as JSON.
>>
>> As long as you're running v25.0.5 or higher of the settings app, you
>> should be fine. Check the browser console when you start the app. The
>> version included with the latest snapshot should actually be v25.0.6, so
>> your browser cache may be stale.
>>
>>
>> Best regards,
>>
>>
>> Nicolay Ramm
>> Front end developer, DHIS 2
>> University of Oslo
>> https://www.dhis2.org
>>
>> On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> Hi Devs,
>>> There seem to be some issues updating a users locale in the latest
>>> dev snapshot. It is not possible to update a users locale.
>>>
>>> POST to
>>>
>>> https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale
>>>
>>> with "es" (the header sent by the app when swtiching from English to
>>> Spanish)
>>>
>>> yields an HTTP 500
>>>
>>> {
>>>   "httpStatus": "Internal Server Error",
>>>   "httpStatusCode": 500,
>>>   "status": "ERROR",
>>>   "message": "Invalid locale format: \"es\""
>>> }
>>>
>>>
>>> With GET to the same URL yields
>>>
>>> Unexpected 'e'
>>>
>>> which seems strange.
>>>
>>> Version:2.25-SNAPSHOT
>>> Build revision:0cf6645
>>>
>>> Regards,
>>> Jason
>>>
>>> --
>>> 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
>>>
>>>
>>

>>>
>>>
>>> --
>>> Jason P. Pickering
>>> email: jason.p.picker...@gmail.com
>>> tel:+46764147049
>>>
>>
>>
>
>
> --
> 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


[Dhis2-devs] [Bug 1629864] [NEW] aggregation levels not saved

2016-10-03 Thread Olav P
Public bug reported:

2.24 maintenance app does not save aggregation levels that have been
selected. Reproduced on play demo instance.

Looking at the payload when saving a data element (editing or adding
new), aggregationLevels that have been selected are simply not included
(always aggregationLevels: [])

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

Title:
  aggregation levels not saved

Status in DHIS:
  New

Bug description:
  2.24 maintenance app does not save aggregation levels that have been
  selected. Reproduced on play demo instance.

  Looking at the payload when saving a data element (editing or adding
  new), aggregationLevels that have been selected are simply not
  included (always aggregationLevels: [])

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1629864/+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] Queries to programs with category combinations present on version 2.23

2016-10-03 Thread eric mourin
Hi everyone!


We've added a new dimension on the event capture app using category 
combinations, but we noticed that once you request for all the events of a 
single program you now need to specify the category combinations too and query 
for all of them doing separate requests.


We believe that, even if a program has additional dimensions, users should be 
able to get all events without specifying category combinations, the same way 
that you can get them without specifying each orgUnit.


This does not seem to be documented anywhere in the API, is there any other way 
to query for all the events by using just the program ID? Is this the intended 
behaviour?


Thank you for your time,


Eric
___
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] Cannot change locale in DEV

2016-10-03 Thread Nicolay Ramm
Should be fixed in the latest version (user profile app v25.0.5). It could
take a while before the new version is on play.dhis2.org/dev though.

Thanks for reporting!


Nicolay Ramm
Front end developer, DHIS 2
University of Oslo
https://www.dhis2.org

On Mon, Oct 3, 2016 at 2:40 PM, Nicolay Ramm  wrote:

> Right, I was looking at the system settings app. I can reproduce in the
> user profile app. Will deploy a new version.
>
>
> Nicolay Ramm
> Front end developer, DHIS 2
> University of Oslo
> https://www.dhis2.org
>
> On Mon, Oct 3, 2016 at 2:33 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Browser = Version 53.0.2785.116 (64-bit )  on Ubuntu
>>
>> All I am doing is changing the locale from English to Spanish (or vice
>> versa).
>>
>>
>>
>>
>> On Mon, Oct 3, 2016 at 2:30 PM, Nicolay Ramm  wrote:
>>
>>> I also tried in incognito mode on https://play.dhis2.org/dev/ and I got
>>> no error..
>>>
>>> What exactly are you doing? And which browser/version are you on?
>>>
>>>
>>> Nicolay Ramm
>>> Front end developer, DHIS 2
>>> University of Oslo
>>> https://www.dhis2.org
>>>
>>> On Mon, Oct 3, 2016 at 2:27 PM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
 OK, I tried in incognito mode on https://play.dhis2.org/dev/ and got
 the same error.

 Still cache?

 Regards,
 Jason


 On Mon, Oct 3, 2016 at 2:20 PM, Nicolay Ramm  wrote:

> Keep in mind that the system settings API endpoint only accepts
> text/plain, not json. So the value should be just es without quotes,
> not "es" with quotes:
>
> curl -u admin:district https://play.dhis2.org/dev/api
> /systemSettings/keyUiLocale -X POST -H 'Content-Type: text/plain' -d
> es
>
>
> Nicolay Ramm
> Front end developer, DHIS 2
> University of Oslo
> https://www.dhis2.org
>
> On Mon, Oct 3, 2016 at 2:13 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> OK. I tried a direct post without the app,and got the same thing.
>> Will try again however just to be sure.
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm  wrote:
>>
>>> Hi Jason,
>>>
>>> is this happening with the settings app? It sounds like an issue
>>> that was fixed recently, where plain text values were being encoded as 
>>> JSON.
>>>
>>> As long as you're running v25.0.5 or higher of the settings app, you
>>> should be fine. Check the browser console when you start the app. The
>>> version included with the latest snapshot should actually be v25.0.6, so
>>> your browser cache may be stale.
>>>
>>>
>>> Best regards,
>>>
>>>
>>> Nicolay Ramm
>>> Front end developer, DHIS 2
>>> University of Oslo
>>> https://www.dhis2.org
>>>
>>> On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
 Hi Devs,
 There seem to be some issues updating a users locale in the latest
 dev snapshot. It is not possible to update a users locale.

 POST to

 https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale

 with "es" (the header sent by the app when swtiching from English
 to Spanish)

 yields an HTTP 500

 {
   "httpStatus": "Internal Server Error",
   "httpStatusCode": 500,
   "status": "ERROR",
   "message": "Invalid locale format: \"es\""
 }


 With GET to the same URL yields

 Unexpected 'e'

 which seems strange.

 Version:2.25-SNAPSHOT
 Build revision:0cf6645

 Regards,
 Jason

 --
 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


>>>
>


 --
 Jason P. Pickering
 email: jason.p.picker...@gmail.com
 tel:+46764147049

>>>
>>>
>>
>>
>> --
>> 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] Pull request for /api/interpretations/chart/{chartId} to add new request param 'ou'

2016-10-03 Thread David Siang Fong Oh
Hi Lars,

Thanks for merging in our pull request. We're planning to upgrade our DHIS
instance to v2.23 and v2.24 over the coming months, so could you please
apply the same changes to the 2.23 branch
 and 2.24 branch
?

Thanks,

David

On Tue, Sep 27, 2016 at 5:43 PM, Lars Helge Øverland  wrote:

> Hi there,
>
> I agree this part is not great and inconsistent. Thanks for the pull
> requests.
>
> I would say we should centralize this code so that we get consistency
> across interpretations (report table, chart, event report, event chart). I
> have committed a modified version of your PR here:
>
> https://github.com/dhis2/dhis2-core/commit/dcc738794325ae6d5dcf03bf7835bb
> 551fea4b53
>
> Let me know if this is okay.
>
> regards,
>
> Lars
>
>
>
>
> On Tue, Sep 27, 2016 at 1:33 PM, jhansi  wrote:
>
>> Hello,
>>
>> We are planning to use ‘/api/interpretations’ API in DHIS2.23 for adding
>> comments to charts.
>>
>> We are able to create interpretation for charts and reports but, we are
>> not able to add the organisationUnit to the interpretation for chart
>> (/api/interpretation/chart/{chartId}) unlike the interpretation for
>> report (/api/interpretation/reportTable/{reportId}) which accepts a
>> request param ‘ou’. In order to provide this functionality to
>> interpretation for chart API, we have added a non mandatory request param
>> ‘ou’ which will accept the organisation unit similar to interpretation for
>> report API. As mentioned, this is not a mandatory param, if it is not
>> provided, it will fallback to the existing functionality.
>>
>> We have sent a pull request with the above mentioned functionality to
>> 2.23/2.24 and master branches. Please let us know if there is any issue.
>>
>> Thanks,
>> Poulami/Jhansi
>> ___
>> 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
>>
>
>
>
> --
> 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
>
>
___
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