Re: [Dhis2-devs] logging (for server administrators)

2015-06-09 Thread Lars Helge Øverland
On Tue, Jun 9, 2015 at 11:19 AM, Bob Jolliffe bobjolli...@gmail.com wrote: I just tried - you can't override those settings with an external file. They will always kick in after the configuration is loaded. Which is very inflexible. For example even the logging level is fixed. I think its

Re: [Dhis2-devs] logging (for server administrators)

2015-06-09 Thread Bob Jolliffe
Yes that is what I just tested. It loads the log4 configuration file. But this doesn't prevent the java code from running so it configures twice. On 9 June 2015 at 10:38, Lars Helge Øverland larshe...@gmail.com wrote: On Tue, Jun 9, 2015 at 11:19 AM, Bob Jolliffe bobjolli...@gmail.com wrote:

Re: [Dhis2-devs] logging (for server administrators)

2015-06-09 Thread Bob Jolliffe
I just tried - you can't override those settings with an external file. They will always kick in after the configuration is loaded. Which is very inflexible. For example even the logging level is fixed. I think its worth reconsidering. On 9 June 2015 at 09:00, Bob Jolliffe

Re: [Dhis2-devs] [Bug 1170247] Re: dhis2 2.11 version dataset report not working properly

2015-06-09 Thread Wilfred Senyoni
Hello Kija You need to run data mart for the data to be aggregated and displayed in the dataset report. I would suggest you migrate to the latest dhis version 2.19 for better analysis tools. Cheers Wilfred F. Senyoni Computer Science and Engineering Department College of Information and

Re: [Dhis2-devs] [Bug 1170247] Re: dhis2 2.11 version dataset report not working properly

2015-06-09 Thread Wilfred Senyoni
Hello Kija sorry you should run the analytic as it was already implemented in the 2.11 version. I guess better to run with the latest version. Wilfred F. Senyoni Computer Science and Engineering Department College of Information and Communication Technologies University of Dar es salaam On Tue,

Re: [Dhis2-devs] How to determine if a dataset has any data values in it

2015-06-09 Thread Lars Helge Øverland
Hi Lorill, I think you have found the best approach to the problem. I have added support in trunk now for a limit query parameter that puts a limit on the number of records to return. So you can now append limit=1 to your query and check if any records are returned. I have updated the docs here

Re: [Dhis2-devs] logging (for server administrators)

2015-06-09 Thread Bob Jolliffe
Hi Lars On 9 June 2015 at 07:37, Lars Helge Øverland larshe...@gmail.com wrote: Hi Bob, thanks for the feedback. Yes the main reason for having a java based default config is to be able to set the log file path to the dhis home directory. Yes the env var support in log4j 2 is cool but it

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19314: Data value sets resource. Supporting limit and lastUpdated query parameters

2015-06-09 Thread noreply
revno: 19314 committer: Lars Helge Overland larshe...@gmail.com branch nick: dhis2 timestamp: Tue 2015-06-09 10:37:13 +0200 message: Data value sets resource. Supporting limit and lastUpdated query parameters modified:

Re: [Dhis2-devs] how to change start month in Q1

2015-06-09 Thread channara rin
Yes i use HTML report, but if i didn't choose any relative report. and choose only reporting period. It shows me only yearly choice. ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe :

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19315: Log4j config init, aborting if system prop log4j.configuration is set

2015-06-09 Thread noreply
revno: 19315 committer: Lars Helge Overland larshe...@gmail.com branch nick: dhis2 timestamp: Tue 2015-06-09 13:09:22 +0200 message: Log4j config init, aborting if system prop log4j.configuration is set modified:

Re: [Dhis2-devs] logging (for server administrators)

2015-06-09 Thread Lars Helge Øverland
Okay that's weird. If so I can look for log4j.configuration i the java config loader and exit if that system prop is present? On Tue, Jun 9, 2015 at 11:48 AM, Bob Jolliffe bobjolli...@gmail.com wrote: Yes that is what I just tested. It loads the log4 configuration file. But this doesn't

Re: [Dhis2-devs] How to determine if a dataset has any data values in it

2015-06-09 Thread Lars Helge Øverland
This has been backported to 2.19 now. On Tue, Jun 9, 2015 at 11:07 AM, Lars Helge Øverland larshe...@gmail.com wrote: Hi Lorill, I think you have found the best approach to the problem. I have added support in trunk now for a limit query parameter that puts a limit on the number of records

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19316: Css

2015-06-09 Thread noreply
revno: 19316 committer: Lars Helge Overland larshe...@gmail.com branch nick: dhis2 timestamp: Tue 2015-06-09 13:53:07 +0200 message: Css modified:

Re: [Dhis2-devs] how to change start month in Q1

2015-06-09 Thread Lars Helge Øverland
Hi Channara, did you create a report of type HTML report? If so, you can select reporting period as report parameter. If you based the report on a report table, then in pivot table you can go to options parameters and select reporting period as parameter. [image: Inline image 1] regards,

Re: [Dhis2-devs] logging (for server administrators)

2015-06-09 Thread Lars Helge Øverland
Hi Bob, thanks for the feedback. Yes the main reason for having a java based default config is to be able to set the log file path to the dhis home directory. Yes the env var support in log4j 2 is cool but it is not sufficient in our use case since dhis config loading is more complex - it looks

Re: [Dhis2-devs] logging (for server administrators)

2015-06-09 Thread Lars Helge Øverland
On Tue, Jun 9, 2015 at 11:48 AM, Bob Jolliffe bobjolli...@gmail.com wrote: Yes that is what I just tested. It loads the log4 configuration file. But this doesn't prevent the java code from running so it configures twice. For the record I did a small fix to abort the default log config when

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19322: Removed unused methods in GmlImportService. Refactored tests to use new scheme

2015-06-09 Thread noreply
revno: 19322 committer: Halvdan Hoem Grelland halvda...@gmail.com branch nick: dhis2 timestamp: Tue 2015-06-09 16:24:56 +0200 message: Removed unused methods in GmlImportService. Refactored tests to use new scheme modified:

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19323: minor

2015-06-09 Thread noreply
revno: 19323 committer: Halvdan Hoem Grelland halvda...@gmail.com branch nick: dhis2 timestamp: Tue 2015-06-09 16:26:05 +0200 message: minor modified:

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19324: Improved error message output on failed gml import

2015-06-09 Thread noreply
revno: 19324 committer: Halvdan Hoem Grelland halvda...@gmail.com branch nick: dhis2 timestamp: Tue 2015-06-09 17:19:51 +0200 message: Improved error message output on failed gml import modified:

Re: [Dhis2-devs] How to determine if a dataset has any data values in it

2015-06-09 Thread Alan Hill
Hi Lars I wonder if you also have any suggestions for checking if data has been imported for Programs and ProgramStages. For Programs, I have been doing the following: /api/enrollments?program=programId Get the orgUnit from the first enrollment

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19325: minor: gml import

2015-06-09 Thread noreply
revno: 19325 committer: Halvdan Hoem Grelland halvda...@gmail.com branch nick: dhis2 timestamp: Tue 2015-06-09 17:57:08 +0200 message: minor: gml import modified:

Re: [Dhis2-devs] How to determine if a dataset has any data values in it

2015-06-09 Thread Lorill Crees
Hi Lars, Thanks for this. I've tried it out and it's working well in terms of functionality, but the performance is very poor. Even if I'm limiting to just one record, one api call is taking 5-7 seconds. When needing to iterate over 17 datasets this means two minutes for my page load which would

[Dhis2-devs] List of permission in DHIS2

2015-06-09 Thread Elmarie Claasen
Hi all, Can anyone provide me with a complete list of available userrole authorities which appears on the left side when you create a user role? I don't see any table with that information in dhis2. Much appreciated - thanks Regards, Elmarie Claasen Hisp logo Project Manager

Re: [Dhis2-devs] [Dhis2-users] List of permission in DHIS2

2015-06-09 Thread Alex Tumwesigye
Dear Elmarie, They are hard coded using spring security. see an extract from the code. action name=alluser class=org.hisp.dhis.user.action.GetUserListAction result name=success type=velocity/main.vm/result param name=page/dhis-web-maintenance-user/allUser.vm/param param

Re: [Dhis2-devs] [Dhis2-users] List of permission in DHIS2

2015-06-09 Thread Dapo Adejumo
Hi Elmarie, There is a table in postgres called userroleauthorities - contains your available authorities. ... Regards, Dapo Adejumo +2348033683677 Skype : dapojorge From: Dhis2-users [mailto:dhis2-users-bounces+dapsyjorge=gmail@lists.launchpad.net] On Behalf Of

Re: [Dhis2-devs] [Dhis2-users] List of permission in DHIS2

2015-06-09 Thread Alex Tumwesigye
Dapo, You are right!!! the userrole table is referenced by that table. Alex On Tue, Jun 9, 2015 at 10:51 PM, Alex Tumwesigye atumwesi...@gmail.com wrote: Dear Elmarie, They are hard coded using spring security. see an extract from the code. action name=alluser

Re: [Dhis2-devs] How to determine if a dataset has any data values in it

2015-06-09 Thread Lars Helge Øverland
Hi again, I have done an optimization now in trunk r 19326 and 2.19. It seems we unnecessarily loaded persisted periods for the time span when start and end dates were used. Please try again on latest trunk and see if it works better now. Lars On Tue, Jun 9, 2015 at 8:21 PM, Lorill Crees

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19326: DataValueSetStore, performance improvement for gettin data values, using start/end dates directly...

2015-06-09 Thread noreply
revno: 19326 committer: Lars Helge Overland larshe...@gmail.com branch nick: dhis2 timestamp: Tue 2015-06-09 21:59:15 +0200 message: DataValueSetStore, performance improvement for gettin data values, using start/end dates directly in

Re: [Dhis2-devs] [Dhis2-users] List of permission in DHIS2

2015-06-09 Thread Elmarie Claasen
Thanks Alex that is exactly what I needed. Regards, Elmarie Claasen Hisp logo Project Manager Health Information Systems Program Tel: 041-367 1027 Cell: 082 374 2209 E-mail: mailto:elma...@hisp.org elma...@hisp.org Skype: elmarie.claasen52 This message and any

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19317: Introduced system setting, allow assigning object to related objects during add or update. This t...

2015-06-09 Thread noreply
revno: 19317 committer: Lars Helge Overland larshe...@gmail.com branch nick: dhis2 timestamp: Tue 2015-06-09 14:52:15 +0200 message: Introduced system setting, allow assigning object to related objects during add or update. This to

Re: [Dhis2-devs-core] Small api issues with the users endpoint

2015-06-09 Thread Halvdan Grelland
I quickly looked into the pageSize issue and fixed it in the latest trunk. Will backport to 2.19 as well. 2015-06-09 14:53 GMT+02:00 Mark Polak mar...@ifi.uio.no: Small correction on the one before. The oddity with the filtering and paging only happens when paging is less than 5, not equal to

[Dhis2-devs-core] Small api issues with the users endpoint

2015-06-09 Thread Mark Polak
Hey Morten, Some small things i found when API-ing. None of these things are really urgent. The paging thing i would say would be the highest priority as it breaks the paging for the DATIM user app. (When users filter on certain stuff, the page numbers will always stay the same) User endpoint

Re: [Dhis2-devs-core] Small api issues with the users endpoint

2015-06-09 Thread Mark Polak
Small correction on the one before. The oddity with the filtering and paging only happens when paging is less than 5, not equal to 5. When above 9 it gives 3 users actually. It seems to do filtering before paging. The first two users are on:

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19318: Fix bug where pager was instantiated before filtering on the users endpoint, causing the pager to...

2015-06-09 Thread noreply
revno: 19318 committer: Halvdan Hoem Grelland halvda...@gmail.com branch nick: dhis2 timestamp: Tue 2015-06-09 15:05:52 +0200 message: Fix bug where pager was instantiated before filtering on the users endpoint, causing the pager to

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19327: set ObjectBridge bean to protoscope scope, to better handle concurrent imports

2015-06-09 Thread noreply
revno: 19327 committer: Morten Olav Hansen morte...@gmail.com branch nick: dhis2 timestamp: Wed 2015-06-10 07:31:50 +0700 message: set ObjectBridge bean to protoscope scope, to better handle concurrent imports modified:

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19328: Applied patch from TW: updates DateUtils.parseDate to use thread safe date parsing

2015-06-09 Thread noreply
revno: 19328 committer: Morten Olav Hansen morte...@gmail.com branch nick: dhis2 timestamp: Wed 2015-06-10 08:03:19 +0700 message: Applied patch from TW: updates DateUtils.parseDate to use thread safe date parsing modified:

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19329: minor revert

2015-06-09 Thread noreply
revno: 19329 committer: Morten Olav Hansen morte...@gmail.com branch nick: dhis2 timestamp: Wed 2015-06-10 08:56:46 +0700 message: minor revert modified:

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19321: GIS restore fav bug fixed + Data type formatting bug fixed.

2015-06-09 Thread noreply
revno: 19321 committer: Jan Henrik Overland janhenrik.overl...@gmail.com branch nick: dhis2 timestamp: Tue 2015-06-09 16:00:51 +0200 message: GIS restore fav bug fixed + Data type formatting bug fixed. modified:

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19319: [bug] Fixed bug to application of systemStyle

2015-06-09 Thread noreply
revno: 19319 committer: Mark Polak mar...@ifi.uio.no branch nick: dhis2 timestamp: Tue 2015-06-09 15:21:00 +0200 message: [bug] Fixed bug to application of systemStyle The systemSettings.currentStyle was never correctly applied.

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19320: Whoops. Fix flipped logic

2015-06-09 Thread noreply
revno: 19320 committer: Halvdan Hoem Grelland halvda...@gmail.com branch nick: dhis2 timestamp: Tue 2015-06-09 15:31:12 +0200 message: Whoops. Fix flipped logic modified:

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19330: make sure that importService get one fresh ObjectBridge for every import, reuse this bridge for e...

2015-06-09 Thread noreply
revno: 19330 committer: Morten Olav Hansen morte...@gmail.com branch nick: dhis2 timestamp: Wed 2015-06-10 10:15:14 +0700 message: make sure that importService get one fresh ObjectBridge for every import, reuse this bridge for every