Re: [Dhis2-devs] [Dhis2-users] Issue related to store file in tracker capture data entry in 2.24

2016-09-20 Thread Mithilesh Kumar Thakur
i am using 2.24 and while you are click on saved file the file is not open
 shows error like

{"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"The
content is being processed and is not available yet. Try again
later.","devMessage":"The content requested is in transit to the file store
and will be available at a later time.","response":{"
responseType":"FileResource","fileResource":{"name":"dhis.
conf","created":"2016-09-20T00:20:20.648","lastUpdated"
:"2016-09-20T00:20:20.766","externalAccess":false,"user":{"code":"admin","name":"admin
admin","created":"2016-07-07T17:23:35.723","lastUpdated"
:"2016-08-12T14:07:09.878","externalAccess":false,"displayName":"admin
admin","id":"M5zQapPyTZI"},"displayName":"dhis.conf","
contentType":"application/octet-stream","contentLength":279,"contentMd5":"
3514ce1c4e76b60ace365e707178d3a4","domain":"DATA_VALUE","
storageStatus":"FAILED","id":"foI626PmXoX"}}}


On Tue, Sep 20, 2016 at 10:13 PM, Prosper BT  wrote:

> Dear Kumar,
>
> Which version and build are you using, I just replicated this on the demo
> server and it works
> See below
>
>
>
>
> On Mon, Sep 19, 2016 at 10:08 PM, Mithilesh Kumar Thakur <
> mithilesh.h...@gmail.com> wrote:
>
>> Dear All,
>> While i am uploading the file inside tracker dataentry for
>> file type dataelement the file might be not save and when i click on the
>> file its shows the message like
>>
>> {"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"The
>> content is being processed and is not available yet. Try again
>> later.","devMessage":"The content requested is in transit to the file store
>> and will be available at a later time.","response":{"responseTy
>> pe":"FileResource","fileResource":{"name":"dhis.conf","
>> created":"2016-09-20T00:20:20.648","lastUpdated":"2016-09-
>> 20T00:20:20.766","externalAccess":false,"user":{"code":"admin","name":"admin
>> admin","created":"2016-07-07T17:23:35.723","lastUpdated":"
>> 2016-08-12T14:07:09.878","externalAccess":false,"displayName":"admin
>> admin","id":"M5zQapPyTZI"},"displayName":"dhis.conf","conten
>> tType":"application/octet-stream","contentLength":279,"
>> contentMd5":"3514ce1c4e76b60ace365e707178d3a4","domain":"
>> DATA_VALUE","storageStatus":"FAILED","id":"foI626PmXoX"}}}
>>
>>
>>
>> is its bug or i do something wrong please guide me.
>>
>> Thanks for that
>> --
>>
>> Thanks and Regards
>>
>> Mithilesh Kumar Thakur
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Prosper Behumbiize, MPH
> Global DHIS2 Implementation| HISP Uganda/University Of Oslo
> +256 752 751 776 | +256 776 139 139
> pros...@hispuganda.org  | pros...@dhis2.org | Skype:
> prospertb
>



-- 

Thanks and Regards

Mithilesh Kumar Thakur
___
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] Metadata Sync - API versioning in DHIS

2016-09-20 Thread Aamer Mohammed
Hi Nicolay,

We see that you have recently made changes in 2.25 settings-app to change
the config.baseUrl from /api to /api/25
As a result few of the apis mentioned below are not working as expected. We
would like to know your plans on enabling api versioning for the metadata
sync apis so that they can work fine with the new baseUrl as well.


Thanks
Aamer.


On Tue, Sep 20, 2016 at 4:48 PM, Aamer Mohammed 
wrote:

> Hi Lars/Morten,
>
> This is regarding the metadata sync feature which we have contributed to
> DHIS recently. When we are using the setting-app from 2.25 development
> branch (master), we see that versioned api calls are being made from the
> app instead of the default api calls.
> /api/25/metadata/versions
> /api/25/metadata/version/create
>
> These apis are not yet redirected to the default behaviour. The
> synchronization tab in settings-app is not working as a result. Please
> suggest us on the behaviour of versioned apis and also to handle api
> versioning for all the metadata sync apis.
>
>
> Thanks
> Aamer.
>
___
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] [Dhis2-users] Issue related to store file in tracker capture data entry in 2.24

2016-09-20 Thread Prosper BT
Dear Kumar,

Which version and build are you using, I just replicated this on the demo
server and it works
See below




On Mon, Sep 19, 2016 at 10:08 PM, Mithilesh Kumar Thakur <
mithilesh.h...@gmail.com> wrote:

> Dear All,
> While i am uploading the file inside tracker dataentry for
> file type dataelement the file might be not save and when i click on the
> file its shows the message like
>
> {"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"The
> content is being processed and is not available yet. Try again
> later.","devMessage":"The content requested is in transit to the file store
> and will be available at a later time.","response":{"
> responseType":"FileResource","fileResource":{"name":"dhis.
> conf","created":"2016-09-20T00:20:20.648","lastUpdated"
> :"2016-09-20T00:20:20.766","externalAccess":false,"user":{"code":"admin","name":"admin
> admin","created":"2016-07-07T17:23:35.723","lastUpdated"
> :"2016-08-12T14:07:09.878","externalAccess":false,"displayName":"admin
> admin","id":"M5zQapPyTZI"},"displayName":"dhis.conf","
> contentType":"application/octet-stream","contentLength":279,"contentMd5":"
> 3514ce1c4e76b60ace365e707178d3a4","domain":"DATA_VALUE","
> storageStatus":"FAILED","id":"foI626PmXoX"}}}
>
>
>
> is its bug or i do something wrong please guide me.
>
> Thanks for that
> --
>
> Thanks and Regards
>
> Mithilesh Kumar Thakur
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Prosper Behumbiize, MPH
Global DHIS2 Implementation| HISP Uganda/University Of Oslo
+256 752 751 776 | +256 776 139 139
pros...@hispuganda.org  | pros...@dhis2.org | Skype:
prospertb
___
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] DHIS2 2.19 Data entry unable to load DataSet

2016-09-20 Thread Raminosoa Rabemanantsoa, Tantely
Hi All,

I would like to have your advice on troubleshooting these issues:

-In the DHIS2 data entry web module, once an OrgUnit is selected, any
DataSet could not be loaded (running loading status eternally)

-In the Android data capture, the user is loading the list of OrgUnits for
a very long time. The process is terminated by the message "Swipe to
Update".

Is there some parameters that I should consider in order to fix them?

Thank you for your support.

Regards.

Tantely.

-- 
*This message and its attachments are confidential and solely for the 
intended recipients. If received in error, please delete them and notify 
the sender via reply e-mail immediately.*
___
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] Metadata Sync - API versioning in DHIS

2016-09-20 Thread Aamer Mohammed
Hi Lars/Morten,

This is regarding the metadata sync feature which we have contributed to
DHIS recently. When we are using the setting-app from 2.25 development
branch (master), we see that versioned api calls are being made from the
app instead of the default api calls.
/api/25/metadata/versions
/api/25/metadata/version/create

These apis are not yet redirected to the default behaviour. The
synchronization tab in settings-app is not working as a result. Please
suggest us on the behaviour of versioned apis and also to handle api
versioning for all the metadata sync apis.


Thanks
Aamer.
___
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 indicators - attributes not appearing?

2016-09-20 Thread Olav Poppe
Hi, 
I’m trying to make a program indicator ("current age") using a tracked entity 
attribute (date of birth). I assume(d) this would be as simple as setting the 
program indicator expression to:
d2:yearsBetween(attribute, current date)

However, the list of attributes tab in the "expression" part of the setup is 
empty. Looking at the play.dhis2.org/demo, it looks like it only lists 
number-type attributes?

I tried to set up the expression anyway (following the example on /demo: 
https://play.dhis2.org/demo/dhis-web-maintenance-program/showUpdateProgramIndicator.action?id=423463
 
),
 but it does not work - the attribute value is not put into the expression:
Expression with id action:dSBYyCUjCXd was successfully run. Original condition 
was: d2:daysBetween(A{iESIqZ0R0R0},V{event_date}) - Evaluation ended up 
as:d2:daysBetween('','2016-09-20') - Result of evaluation was:NaN

Is this a bug, or is it not supported (anymore)?

Olav___
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] [DHIS2 - devs] [DHIS2 - users] DHIS2 repository for F-Droid (as application distribution channel).

2016-09-20 Thread Mugisha, Jean F.
Dear Community,

I am trying to use F-Droid as the main application distribution channel (Event 
Capture app., etc.). But it appears that DHIS2 apps are not available from the 
general F-Droid repository.

I attempted to add a repository by following the listed guidelines 
http://ccm.net/faq/40543-f-droid-how-to-add-new-software-repositories. But it 
does not seem to work.

Here are few questions that I have:

 - Does DHIS2 have a signed repository for F-Droid?

 - Is there anyone in the community that has ever used F-Droid?

 - And what repository that was used or installed (how)?

Please let me know if you have any questions.

Regards,
Jean Fabius
___
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 1624062] Re: userSettings resource doesn't work properly

2016-09-20 Thread Morten Olav Hansen
This have been backported to 222 and 223 now

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

On Fri, Sep 16, 2016 at 3:39 PM, Kamil Krampa  wrote:

> Great, thanks! Is it possible to fix this also in 2.22?
>
> W dniu 2016-09-16 05:43:34 użytkownik Morten Olav Hansen <
> 1624...@bugs.launchpad.net> napisał:
> > You are right, this have now been fixed in 224 and master (give our
> > server a bit of time to re-deploy)
> >
> > ** Changed in: dhis2
> >  Assignee: (unassigned) => Morten Olav Hansen (mortenoh)
> >
> > ** Changed in: dhis2
> > Milestone: None => 2.25
> >
> > ** Changed in: dhis2
> >Status: New => Fix Committed
> >
> > --
> > You received this bug notification because you are a member of DHIS 2
> > developers, which is subscribed to DHIS.
> > https://bugs.launchpad.net/bugs/1624062
> >
> > Title:
> >   userSettings resource doesn't work properly
> >
> > Status in DHIS:
> >   Fix Committed
> >
> > Bug description:
> >   Hi,
> >   I'm trying to get keyUiLocale property for a particular user via API.
> I tried /api/userSettings/keyUiLocale?user=someUsername but it doesn't
> return proper results. I guess the problem is here:
> https://github.com/dhis2/dhis2-core/blob/master/dhis-2/
> dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/
> UserSettingController.java#L159, credentials.getUser() doesn't return a
> user with requested username but the owner of credentials object.
> >
> >   Is there some other way to fetch keyUiLocale of a particular user (I
> >   need to get keyUiLocale of any user not only current)?
> >
> > To manage notifications about this bug go to:
> > https://bugs.launchpad.net/dhis2/+bug/1624062/+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
> >
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1624062
>
> Title:
>   userSettings resource doesn't work properly
>
> Status in DHIS:
>   Fix Committed
>
> Bug description:
>   Hi,
>   I'm trying to get keyUiLocale property for a particular user via API. I
> tried /api/userSettings/keyUiLocale?user=someUsername but it doesn't
> return proper results. I guess the problem is here:
> https://github.com/dhis2/dhis2-core/blob/master/dhis-2/
> dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/
> UserSettingController.java#L159, credentials.getUser() doesn't return a
> user with requested username but the owner of credentials object.
>
>   Is there some other way to fetch keyUiLocale of a particular user (I
>   need to get keyUiLocale of any user not only current)?
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1624062/+subscriptions
>


** Changed in: dhis2
   Importance: Undecided => Medium

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

Title:
  userSettings resource doesn't work properly

Status in DHIS:
  Fix Committed

Bug description:
  Hi,
  I'm trying to get keyUiLocale property for a particular user via API. I tried 
/api/userSettings/keyUiLocale?user=someUsername but it doesn't return proper 
results. I guess the problem is here: 
https://github.com/dhis2/dhis2-core/blob/master/dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/UserSettingController.java#L159,
 credentials.getUser() doesn't return a user with requested username but the 
owner of credentials object.

  Is there some other way to fetch keyUiLocale of a particular user (I
  need to get keyUiLocale of any user not only current)?

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1624062/+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] Metadata Sync - API versioning in DHIS

2016-09-20 Thread Morten Olav Hansen
Hi Aamer

Yes, you are right. That's one of the controllers that wasn't moved over
yet, all you need to do is to annotate your controller with:

@ApiVersion( { Version.DEFAULT, Version.ALL } )

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

On Wed, Sep 21, 2016 at 12:23 AM, Aamer Mohammed 
wrote:

> Hi Nicolay,
>
> We see that you have recently made changes in 2.25 settings-app to change
> the config.baseUrl from /api to /api/25
> As a result few of the apis mentioned below are not working as expected.
> We would like to know your plans on enabling api versioning for the
> metadata sync apis so that they can work fine with the new baseUrl as well.
>
>
> Thanks
> Aamer.
>
>
> On Tue, Sep 20, 2016 at 4:48 PM, Aamer Mohammed 
> wrote:
>
>> Hi Lars/Morten,
>>
>> This is regarding the metadata sync feature which we have contributed to
>> DHIS recently. When we are using the setting-app from 2.25 development
>> branch (master), we see that versioned api calls are being made from the
>> app instead of the default api calls.
>> /api/25/metadata/versions
>> /api/25/metadata/version/create
>>
>> These apis are not yet redirected to the default behaviour. The
>> synchronization tab in settings-app is not working as a result. Please
>> suggest us on the behaviour of versioned apis and also to handle api
>> versioning for all the metadata sync apis.
>>
>>
>> Thanks
>> Aamer.
>>
>
>
___
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