Re: [Dhis2-devs] DHIS with postgres 9.6

2016-11-29 Thread Aamer Mohammed
ok

On Tue, Nov 29, 2016 at 6:12 PM, Lars Helge Øverland  wrote:

> Commented on issue now.
>
> https://jira.dhis2.org/browse/DHIS2-296?jql=
>
>
>
> On Tue, Nov 29, 2016 at 6:59 AM, Knut Staring  wrote:
>
>> It is not working - should be added to the JIRA issue tracker.
>>
>> Knut
>>
>> On Tue, Nov 29, 2016 at 6:54 PM, Aamer Mohammed 
>> wrote:
>>
>>> Hi devs,
>>>
>>> We are getting error as attached when using dhis with postgres 9.6. With
>>> 9.5 it seems to be working fine. Any ideas?
>>>
>>>
>>> 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
>>>
>>>
>>
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> Norway: +4791880522
>> Skype: knutstar
>> http://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
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org <https://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] DHIS with postgres 9.6

2016-11-29 Thread Aamer Mohammed
Hi Morten,

Created bug 296 for the same.


Thanks

On Tue, Nov 29, 2016 at 5:33 PM, Morten Olav Hansen 
wrote:

> Hi Aamer
>
> This has been reported before, but I don't believe we have an issue in
> JIRA for it. Would you mind reporting it?
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Tue, Nov 29, 2016 at 6:54 PM, Aamer Mohammed 
> wrote:
>
>> Hi devs,
>>
>> We are getting error as attached when using dhis with postgres 9.6. With
>> 9.5 it seems to be working fine. Any ideas?
>>
>>
>> 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
>>
>>
>
___
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 with postgres 9.6

2016-11-29 Thread Aamer Mohammed
Hi devs,

We are getting error as attached when using dhis with postgres 9.6. With
9.5 it seems to be working fine. Any ideas?


Thanks
Aamer.
* INFO  2016-11-28 11:06:54,698 System property dhis2.home not set 
(DefaultLocationManager.java [localhost-startStop-1])
* INFO  2016-11-28 11:06:54,701 Environment variable DHIS2_HOME points to 
/root/dhis2_home (DefaultLocationManager.java [localhost-startStop-1])
* INFO  2016-11-28 11:06:54,706 File /root/dhis2_home/dhis-google-auth.json 
does not exist (DefaultLocationManager.java [localhost-startStop-1])
* INFO  2016-11-28 11:06:54,706 Could not find dhis-google-auth.json 
(DefaultDhisConfigurationProvider.java [localhost-startStop-1])
* INFO  2016-11-28 11:06:54,707 File /root/dhis2_home/dhis-google-auth.json 
does not exist (DefaultLocationManager.java [localhost-startStop-1])
* INFO  2016-11-28 11:06:54,707 Could not find dhis-google-auth.json 
(DefaultDhisConfigurationProvider.java [localhost-startStop-1])
* INFO  2016-11-28 11:06:56,064 Hibernate configuration loaded, using dialect: 
org.hibernate.dialect.PostgreSQLDialect 
(DefaultHibernateConfigurationProvider.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,583 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,584 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,584 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,584 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,609 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,610 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,639 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,652 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,652 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,670 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,670 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,671 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,671 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:06:57,672 HHH9003: Use of DOM4J entity-mode is 
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-11-28 11:07:08,355 SQL Error: 0, SQLState: 42703 
(SqlExceptionHelper.java [localhost-startStop-1])
* ERROR 2016-11-28 11:07:08,356 ERROR: column am.amcanorder does not exist
  Position: 427 (SqlExceptionHelper.java [localhost-startStop-1])
* WARN  2016-11-28 11:07:08,361 Exception encountered during context 
initialization - cancelling refresh attempt: 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.hisp.dhis.appstore.AppStoreManager': Injection of autowired 
dependencies failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Could not autowire 
field: private org.hisp.dhis.appmanager.AppManager 
org.hisp.dhis.appstore.DefaultAppStoreManager.appManager; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.hisp.dhis.appmanager.AppManager': Injection of autowired 
dependencies failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Could not autowire 
field: private org.hisp.dhis.setting.SystemSettingManager 
org.hisp.dhis.appmanager.DefaultAppManager.appSettingManager; nested exception 
is org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.hisp.dhis.setting.SystemSettingManager': Injection of autowired 
dependencies failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Could not autowire 
field: private org.springframework.transaction.support.TransactionTemplate 
org.hisp.dhis.setting.DefaultSystemSettingManager.transactionTemplate; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'transactionTemplate' defined in URL 
[jar:file:/opt/apache-tomcat-8.5.6/webapps/ROOT/WEB-INF/lib/dhis-support-hibernate-2.25.jar!/META-INF/dhis/beans.xml]:
 Cannot resolve 

Re: [Dhis2-devs] java.lang.NumberFormatException in dhis 2.25 log

2016-11-18 Thread Aamer Mohammed
Sure Nicolay. Thanks for the update.

On Fri, Nov 18, 2016 at 3:15 PM, Nicolay Ramm  wrote:

> Hi Aamer,
>
> this issue has been fixed but not yet deployed to all apps. Fortunately
> the only consequence is an ugly stack trace in the log, but beyond that it
> doesn't actually cause any problems. Therefore we're prioritising fixing
> other bugs that have more serious consequences first. We will get to this
> one as well eventually, though. Sorry for the inconvenience in the mean
> time.
>
> Best regards,
>
>
> Nicolay Ramm
> Front end developer, DHIS 2
> University of Oslo
> https://www.dhis2.org
>
> On Fri, Nov 18, 2016 at 10:25 AM, Aamer Mohammed 
> wrote:
>
>> This is still an issue with the latest 2.25 revision. Any updates on this.
>>
>> On Wed, Nov 2, 2016 at 11:40 AM, Knut Staring  wrote:
>>
>>> I have also seen this, on fresh installs.
>>>
>>> On Nov 2, 2016 7:05 AM, "Aamer Mohammed" 
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> We see the below error in server log when we open maintenance app in
>>>> DHIS. This error is seen on a fresh DHIS instance as well. We have checked
>>>> this on latest 2.25 revision (Build revision: 5e16867)
>>>>
>>>> --
>>>> * WARN  2016-11-02 11:01:13,452 Error setting value
>>>> [[Ljava.lang.String;@6ee76bf8] with expression [1478064673449]
>>>> (CommonsLogger.java [qtp1256384385-21])
>>>> java.lang.NumberFormatException: For input string: "1478064673449"
>>>> at java.lang.NumberFormatException.forInputString(NumberFormatE
>>>> xception.java:65)
>>>> ---
>>>>
>>>> Any thoughts.
>>>>
>>>>
>>>> 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
>>>>
>>>>
>>
>> ___
>> 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] java.lang.NumberFormatException in dhis 2.25 log

2016-11-18 Thread Aamer Mohammed
This is still an issue with the latest 2.25 revision. Any updates on this.

On Wed, Nov 2, 2016 at 11:40 AM, Knut Staring  wrote:

> I have also seen this, on fresh installs.
>
> On Nov 2, 2016 7:05 AM, "Aamer Mohammed"  wrote:
>
>> Hi
>>
>> We see the below error in server log when we open maintenance app in
>> DHIS. This error is seen on a fresh DHIS instance as well. We have checked
>> this on latest 2.25 revision (Build revision: 5e16867)
>>
>> --
>> * WARN  2016-11-02 11:01:13,452 Error setting value
>> [[Ljava.lang.String;@6ee76bf8] with expression [1478064673449]
>> (CommonsLogger.java [qtp1256384385-21])
>> java.lang.NumberFormatException: For input string: "1478064673449"
>> at java.lang.NumberFormatException.forInputString(NumberFormatE
>> xception.java:65)
>> ---
>>
>> Any thoughts.
>>
>>
>> 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
>>
>>
___
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 Metadata Sync error

2016-11-07 Thread Aamer Mohammed
Hi Francesco,

Just thinking if you are facing this issue due to upgrade. Did you run the
upgrade in a sequential manner from 2.22 to 2.24 by following the upgrade
scripts wherever applicable? Did you try syncing from an instance(>=2.24)
which is not upgraded?


Thanks

On Mon, Nov 7, 2016 at 5:46 PM, Morten Olav Hansen  wrote:

> Ok, I think we need quite a bit more information before we can help you
> debug this. Are you able to share the metadata you are working on?
> (privately)
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Nov 7, 2016 at 7:11 PM, Francesco Palazzini  ehealthnigeria.org> wrote:
>
>> Hi,
>> thanks for the support, but it still does not work.
>>
>> Logs attached.
>>
>> Thanks
>>
>> On Mon, Nov 7, 2016 at 8:37 AM, Morten Olav Hansen 
>> wrote:
>>
>>> This should have been fixed now, please try it out and report back to us
>>> (give our servers 30+ min to build a new war file)
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Mon, Nov 7, 2016 at 12:39 PM, Morten Olav Hansen 
>>> wrote:
>>>
>>>> Yeah, this is probably related to the same issues we are already
>>>> investigating.
>>>>
>>>> --
>>>> Morten Olav Hansen
>>>> Senior Engineer, DHIS 2
>>>> University of Oslo
>>>> http://www.dhis2.org
>>>>
>>>> On Mon, Nov 7, 2016 at 12:32 PM, Aamer Mohammed <
>>>> aam...@thoughtworks.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> As per the logs, metadata sync is failing in the importer phase when
>>>>> trying to import metadata.
>>>>> --
>>>>>  * ERROR 2016-10-24 11:44:03,758 Exception occurred while trying to
>>>>> import the metadata. object references an unsaved transient instance - 
>>>>> save
>>>>> the transient instance before flushing: org.hisp.dhis.dataelement.Data
>>>>> Element
>>>>> --
>>>>> Morten, any suggestions regarding this.
>>>>>
>>>>>
>>>>> Thanks
>>>>> Aamer.
>>>>>
>>>>>
>>>>> On Fri, Nov 4, 2016 at 8:22 PM, Francesco Palazzini <
>>>>> francesco.palazz...@ehealthnigeria.org> wrote:
>>>>>
>>>>>> Hello DHIS team,
>>>>>> we are trying the metadata sync feature but unfortunately it does not
>>>>>> seem to work.
>>>>>>
>>>>>> Note: on our setup instance2 is going to sync from instance1
>>>>>>
>>>>>> What we tried so far:
>>>>>> Case 1:
>>>>>> - manually import metdata from a json file to instance1
>>>>>> - upgrade instance1 running v2.22 to v2.24, everything went fine
>>>>>> - create a 'metadata version' on instance1
>>>>>> - configure instance2 to sync from instance1
>>>>>> - trigger the sync with the 'sync now' button
>>>>>>
>>>>>> Case 2:
>>>>>> - manually import metdata from a json file to instance1
>>>>>> - upgrade instance1 running v2.22 to v2.24, everything went fine
>>>>>> - save the dump of instance1's database
>>>>>> - restore the dump of instance1's to instance2's database
>>>>>> - create a 'metadata version' on instance1
>>>>>> - configure instance2 to sync from instance1
>>>>>> - trigger the sync with the 'sync now' button
>>>>>>
>>>>>> We were following this guide:
>>>>>> https://dhis2.github.io/dhis2-docs/master/en/user/html/dataA
>>>>>> dmin_metaDataSync.html
>>>>>>
>>>>>> On both cases the sync fails, error logs from instance2 attached.
>>>>>>
>>>>>> Any hint on how to get the metadata sync working?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> ___
>>>>>> 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


Re: [Dhis2-devs] DHIS2 Metadata Sync error

2016-11-06 Thread Aamer Mohammed
Hi,

As per the logs, metadata sync is failing in the importer phase when trying
to import metadata.
--
 * ERROR 2016-10-24 11:44:03,758 Exception occurred while trying to import
the metadata. object references an unsaved transient instance - save the
transient instance before flushing: org.hisp.dhis.dataelement.DataElement
--
Morten, any suggestions regarding this.


Thanks
Aamer.


On Fri, Nov 4, 2016 at 8:22 PM, Francesco Palazzini <
francesco.palazz...@ehealthnigeria.org> wrote:

> Hello DHIS team,
> we are trying the metadata sync feature but unfortunately it does not seem
> to work.
>
> Note: on our setup instance2 is going to sync from instance1
>
> What we tried so far:
> Case 1:
> - manually import metdata from a json file to instance1
> - upgrade instance1 running v2.22 to v2.24, everything went fine
> - create a 'metadata version' on instance1
> - configure instance2 to sync from instance1
> - trigger the sync with the 'sync now' button
>
> Case 2:
> - manually import metdata from a json file to instance1
> - upgrade instance1 running v2.22 to v2.24, everything went fine
> - save the dump of instance1's database
> - restore the dump of instance1's to instance2's database
> - create a 'metadata version' on instance1
> - configure instance2 to sync from instance1
> - trigger the sync with the 'sync now' button
>
> We were following this guide:
> https://dhis2.github.io/dhis2-docs/master/en/user/html/dataA
> dmin_metaDataSync.html
>
> On both cases the sync fails, error logs from instance2 attached.
>
> Any hint on how to get the metadata sync working?
>
> Thanks
>
> ___
> 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] java.lang.NumberFormatException in dhis 2.25 log

2016-11-01 Thread Aamer Mohammed
Hi

We see the below error in server log when we open maintenance app in DHIS.
This error is seen on a fresh DHIS instance as well. We have checked this
on latest 2.25 revision (Build revision: 5e16867)

--
* WARN  2016-11-02 11:01:13,452 Error setting value
[[Ljava.lang.String;@6ee76bf8] with expression [1478064673449]
(CommonsLogger.java [qtp1256384385-21])
java.lang.NumberFormatException: For input string: "1478064673449"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
---

Any thoughts.


Thanks
Aamer.


dhis225.log
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


[Dhis2-devs] DHIS dependency scan

2016-10-27 Thread Aamer Mohammed
Hi Team,

We have run vulnerability checks on DHIS dependencies using the
dependency-check maven plugin. This plugin wraps the OWASP Dependency Check
utility which uses NIST’s National Vulnerability Database (NVD) to identify
the vulnerable dependencies.
Please find the report attached. Did anyone run this kind of vulnerability
scan earlier. Any comments please?


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] Testing upgrade of DHIS2 from 2.21 to 2.24

2016-10-21 Thread Aamer Mohammed
Hi Lars/Morten,

Recently we did a DHIS upgrade test to upgrade our instances from 2.21 to
2.24. We started with 2.21 instance having good amount of metadata. We
sequentially upgraded that instance to 2.24 by following the upgrade
scripts for each DHIS version.
>From that upgraded instance, an export was taken using the new exporter
(/api/24/metadata). It was then imported to another fresh instance on 2.24
using the new importer. Below are our findings.

1) Most of the blockers were due to introducing of new constraints across
DHIS versions. The upgraded instance did not have these constraints but
the new fresh instance had them so it was preventing the import.
ex: shortName in dataelements table became unique
numerator is required for all indicators
dataelement_operand_unique_key (it is removed now)
We manually corrected our data so it abides as per the constraints. *The
list of constraints introduced in a DHIS version would be part of upgrade
notes. Is this a right assumption?*

2) Allow for many-to-many between Group and GroupSet. If we have groups
which are part of multiple group sets, Hibernate will create duplicate
GroupSets and it results in database integrity issue when importing.
We manually corrected the data and ensured one to one mapping between them
to proceed further. *When do we plan to have the many-to-many mapping
between Group and GroupSet?*

3) Error importing Charts, Report Tables, Event charts, Event reports.
We excluded these metadata types from the export.json to continue further.
We are unable to import these in 2.25 also. *Please do inform us once the
fix is done in 2.25 so that we can retest.*

4) When we update a new DHIS war, the instance is migrated to new DHIS
version. But if existing data in our instance does not abide by the new
constraints, the new constraints are not applied in our upgraded instance.
So effectively it is not pure DHIS upgrade. So ideally, before applying the
war file we should modify our data to abide the new constraints. *Is this a
right assumption?*

Please suggest.

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 metadata export-import test in 2.24 and 2.25

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

In 2.25, while testing the metadata import using the new importer, we have
seen the below items were not getting imported. Could you please check and
let us know if any information is required from our end to resolve the
issue.


Thanks
Aamer.


On Tue, Oct 18, 2016 at 10:03 PM, Alejandro Casado <
alejandro.cas...@barcelona.msf.org> wrote:

> Hi!
>
> My name is Alejandro and I am part of the HMIS team in MSF OCBA. I am
> writing because we have done some testing related to export and import of
> metadata in DHIS2 (both in 2.24 and 2.25) and we have detected some errors.
> Since you are working in the same subject and in order not to duplicate
> efforts, we would like to share with you that information. If there is
> something you have not detected, please let us know if you prefer that we
> address directly the issue to Oslo people.
>
>- Charts, Report Tables, Map view, Map. Error: *object references an
>unsaved transient instance - save the transient instance before flushing:
>org.hisp.dhis.indicator.Indicator (and with DataElement as well).*
>- Event charts, Event reports: they do not work if attributes are
>selected. They work otherwise. Error: *object references an unsaved
>transient instance - save the transient instance before flushing:
>org.hisp.dhis.trackedentity.Tr
>ackedEntityAttribute*
>- ProgramTrackedEntityAttributes ids change when there is a change in
>a program (in instance, when a new attribute is added, causing the version
>parameter of the program to increase). This leads to fail during export to
>another DHIS2 instance due to ProgramTrackedEntityAttributes id
>inconsistencies.
>
> Thank you!
>
> Alejandro
>
___
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] Upgrading DHIS2 from 2.21 to 2.24 and using new exporter/importer

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

This is reproducible on 2.25 as well. Any updates regarding this issue. Let
us know if any further details are required from our end.


Thanks
Aamer.


On Thu, Oct 6, 2016 at 4:12 PM, Aamer Mohammed 
wrote:

> Hi Lars,
>
> Thanks for the fix (removal of constraint). Yes we are trying to import
> the metadata into a new 2.24 db. The metadata is exported from an instance
> which is upgraded from 2.21 to 2.24.
>
> 1) After your fix, there is no constraint violation error and we are able
> to continue further. But this time we got the below issue in the later part
> of the import.
> ---
> * INFO  2016-10-06 11:46:09,906 (admin) Creating 1003 object(s) of type
> ReportTable (DefaultObjectBundleService.java [qtp923727115-15])
> org.hibernate.TransientObjectException: object references an unsaved
> transient instance - save the transient instance before flushing:
> org.hisp.dhis.dataelement.DataElement
> 
>
> The complete stack trace is also attached. Any suggestions please.
>
>
> Thanks
> Aamer.
>
>
> On Tue, Oct 4, 2016 at 1:23 PM, Lars Helge Øverland 
> wrote:
>
>> Hi Aamer,
>>
>>
>> On Thu, Sep 29, 2016 at 1:31 PM, Aamer Mohammed 
>> wrote:
>>
>>> Hi,
>>>
>>> For continuation of testing, we changed the metadata to ensure that a
>>> Group can be part of only one GroupSet.
>>> 1) We got the below issue.
>>> {"status":"ERROR","stats":{"total":1,"created":0,"updated":0
>>> ,"deleted":0,"ignored":1},"typeReports":[{"klass":"org.hisp.
>>> dhis.indicator.Indicator","stats":{"total":1,"created":0,"up
>>> dated":0,"deleted":0,"ignored":1},"objectReports":[{"klass":
>>> "org.hisp.dhis.indicator.Indicator","index":277,"uid":"oMbEl
>>> S3lhOO","errorReports":[{"message":"Missing required property
>>> `numerator`.","mainKlass":"org.hisp.dhis.indicator.Indicator
>>> ","errorKlass":"java.lang.String","errorCode":"E4000"}]}]}]}
>>>
>>> which means that Numerator is required field for an indicator. This was
>>> not the case in 2.21. This restriction was introduced in some version after
>>> 2.21. However, we modified the metadata for the indicator having this issue
>>> and proceeded further.
>>>
>>>
>> Right, we did make indicator numerator and denominator not-null in the
>> schema. You can say that this is something we should have done from the
>> very start. In 2.24 we tightened up the schema, which is very helpful to
>> avoid problems in the source code, but could require some modifications in
>> existing solutions.
>>
>>
>>
>>
>>> 2) Now we got the below issue.
>>> {"httpStatus":"Internal Server Error","httpStatusCode":500,"s
>>> tatus":"ERROR","message":"ERROR: duplicate key value violates unique
>>> constraint \"dataelement_operand_unique_key\"\n  Detail: Key
>>> (dataelementid, categoryoptioncomboid)=(4497, 3576) already exists."}
>>>
>>> This means that you cannot have duplicate combination of (dataelementid,
>>> categoryoptioncomboid) in dataelementoperand table. This constraint was not
>>> present in 2.21 version.
>>> When we see dataelementoperand table, there are lot of such duplicates.
>>> We would like to understand more around this constraint and why it was
>>> introduced.
>>> *Is there any note which has the details about the constraints being
>>> introduced in a DHIS version?*
>>>
>>
>> This is interesting because i) it has been like this for many years and
>> ii) I agree this constraint should not be there. Not sure why this surfaced
>> now - likely because you have started a new db. I have removed this
>> constraint in master and 2.24 now.
>>
>>
>> best regards,
>>
>> Lars
>>
>>
>>> 3) Also this constraint (dataelement_operand_unique_key) is not present
>>> in the instance which was upgraded from 2.21 to 2.24. But it is present in
>>> the instance which is directly on 2.24. Any thoughts on this. Did the
>>> constraint not get created in upgraded instance because the data was not
>>> abiding to the constraint rules? What happens in a dhis upgrade if there is
>>> any constrain

Re: [Dhis2-devs] Upgrading DHIS2 from 2.21 to 2.24 and using new exporter/importer

2016-10-06 Thread Aamer Mohammed
Hi Lars,

Thanks for the fix (removal of constraint). Yes we are trying to import the
metadata into a new 2.24 db. The metadata is exported from an instance
which is upgraded from 2.21 to 2.24.

1) After your fix, there is no constraint violation error and we are able
to continue further. But this time we got the below issue in the later part
of the import.
---
* INFO  2016-10-06 11:46:09,906 (admin) Creating 1003 object(s) of type
ReportTable (DefaultObjectBundleService.java [qtp923727115-15])
org.hibernate.TransientObjectException: object references an unsaved
transient instance - save the transient instance before flushing:
org.hisp.dhis.dataelement.DataElement


The complete stack trace is also attached. Any suggestions please.


Thanks
Aamer.


On Tue, Oct 4, 2016 at 1:23 PM, Lars Helge Øverland  wrote:

> Hi Aamer,
>
>
> On Thu, Sep 29, 2016 at 1:31 PM, Aamer Mohammed 
> wrote:
>
>> Hi,
>>
>> For continuation of testing, we changed the metadata to ensure that a
>> Group can be part of only one GroupSet.
>> 1) We got the below issue.
>> {"status":"ERROR","stats":{"total":1,"created":0,"updated":
>> 0,"deleted":0,"ignored":1},"typeReports":[{"klass":"org.hisp
>> .dhis.indicator.Indicator","stats":{"total":1,"created":0,
>> "updated":0,"deleted":0,"ignored":1},"objectReports":[{"
>> klass":"org.hisp.dhis.indicator.Indicator","index":277,"uid"
>> :"oMbElS3lhOO","errorReports":[{"message":"Missing required property
>> `numerator`.","mainKlass":"org.hisp.dhis.indicator.Indicator
>> ","errorKlass":"java.lang.String","errorCode":"E4000"}]}]}]}
>>
>> which means that Numerator is required field for an indicator. This was
>> not the case in 2.21. This restriction was introduced in some version after
>> 2.21. However, we modified the metadata for the indicator having this issue
>> and proceeded further.
>>
>>
> Right, we did make indicator numerator and denominator not-null in the
> schema. You can say that this is something we should have done from the
> very start. In 2.24 we tightened up the schema, which is very helpful to
> avoid problems in the source code, but could require some modifications in
> existing solutions.
>
>
>
>
>> 2) Now we got the below issue.
>> {"httpStatus":"Internal Server Error","httpStatusCode":500,"s
>> tatus":"ERROR","message":"ERROR: duplicate key value violates unique
>> constraint \"dataelement_operand_unique_key\"\n  Detail: Key
>> (dataelementid, categoryoptioncomboid)=(4497, 3576) already exists."}
>>
>> This means that you cannot have duplicate combination of (dataelementid,
>> categoryoptioncomboid) in dataelementoperand table. This constraint was not
>> present in 2.21 version.
>> When we see dataelementoperand table, there are lot of such duplicates.
>> We would like to understand more around this constraint and why it was
>> introduced.
>> *Is there any note which has the details about the constraints being
>> introduced in a DHIS version?*
>>
>
> This is interesting because i) it has been like this for many years and
> ii) I agree this constraint should not be there. Not sure why this surfaced
> now - likely because you have started a new db. I have removed this
> constraint in master and 2.24 now.
>
>
> best regards,
>
> Lars
>
>
>> 3) Also this constraint (dataelement_operand_unique_key) is not present
>> in the instance which was upgraded from 2.21 to 2.24. But it is present in
>> the instance which is directly on 2.24. Any thoughts on this. Did the
>> constraint not get created in upgraded instance because the data was not
>> abiding to the constraint rules? What happens in a dhis upgrade if there is
>> any constraint being introduced and existing data does not confirm to the
>> constraint? Please suggest.
>>
>>
>> Thanks
>> Aamer.
>>
>>
>> On Sat, Sep 24, 2016 at 5:54 PM, Lars Helge Øverland 
>> wrote:
>>
>>> Hi Aamer,
>>>
>>> the problem here happens because the hibernate mapping between GroupSet
>>> and Group is one-to-many, ie. a Group can only be part of one GroupSet.
>>>
>>> There is a reason for this, but it is not very good ;) When we store
>>> favorites with group sets, we need to know which dimen

Re: [Dhis2-devs] Upgrading DHIS2 from 2.21 to 2.24 and using new exporter/importer

2016-09-29 Thread Aamer Mohammed
Hi,

For continuation of testing, we changed the metadata to ensure that a Group
can be part of only one GroupSet.
1) We got the below issue.
{"status":"ERROR","stats":{"total":1,"created":0,"updated":0,"deleted":0,"ignored":1},"typeReports":[{"klass":"org.hisp.dhis.indicator.Indicator","stats":{"total":1,"created":0,"updated":0,"deleted":0,"ignored":1},"objectReports":[{"klass":"org.hisp.dhis.indicator.Indicator","index":277,"uid":"oMbElS3lhOO","errorReports":[{"message":"Missing
required property
`numerator`.","mainKlass":"org.hisp.dhis.indicator.Indicator","errorKlass":"java.lang.String","errorCode":"E4000"}]}]}]}

which means that Numerator is required field for an indicator. This was not
the case in 2.21. This restriction was introduced in some version after
2.21. However, we modified the metadata for the indicator having this issue
and proceeded further.

2) Now we got the below issue.
{"httpStatus":"Internal Server
Error","httpStatusCode":500,"status":"ERROR","message":"ERROR: duplicate
key value violates unique constraint \"dataelement_operand_unique_key\"\n
 Detail: Key (dataelementid, categoryoptioncomboid)=(4497, 3576) already
exists."}

This means that you cannot have duplicate combination of (dataelementid,
categoryoptioncomboid) in dataelementoperand table. This constraint was not
present in 2.21 version.
When we see dataelementoperand table, there are lot of such duplicates. We
would like to understand more around this constraint and why it was
introduced.
*Is there any note which has the details about the constraints being
introduced in a DHIS version?*

3) Also this constraint (dataelement_operand_unique_key) is not present in
the instance which was upgraded from 2.21 to 2.24. But it is present in the
instance which is directly on 2.24. Any thoughts on this. Did the
constraint not get created in upgraded instance because the data was not
abiding to the constraint rules? What happens in a dhis upgrade if there is
any constraint being introduced and existing data does not confirm to the
constraint? Please suggest.


Thanks
Aamer.


On Sat, Sep 24, 2016 at 5:54 PM, Lars Helge Øverland  wrote:

> Hi Aamer,
>
> the problem here happens because the hibernate mapping between GroupSet
> and Group is one-to-many, ie. a Group can only be part of one GroupSet.
>
> There is a reason for this, but it is not very good ;) When we store
> favorites with group sets, we need to know which dimension (GroupSet) a
> dimension item (Group) is part of. If the Group is part of many GroupSets,
> we need another link object in between to represent which dimension it is
> part of. This can clearly be done and this is something we plan to fix, but
> it is a bit of work and it requires an upgrade routine to upgrade existing
> databases.
>
> So I am pretty sure that is why you see these duplicates: You have groups
> which are part of multiple group sets. In these cases, Hibernate will
> create duplicate GroupSets as a result of the database integrity issue.
>
> So short term solution is to change the metadata, long term we will fix
> this properly and allow for many-to-many between Group and GroupSet.
>
> regards,
>
> Lars
>
>
>
>
>
> On Thu, Sep 15, 2016 at 7:28 AM, Morten Olav Hansen 
> wrote:
>
>> Hi Aamer
>>
>> Lars knows what is wrong, he will provide a fix shortly :)
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Thu, Sep 15, 2016 at 12:26 PM, Aamer Mohammed > > wrote:
>>
>>> Thanks Morten. Let us know if any other details are required from our
>>> end in this regard.
>>>
>>> Thanks
>>> Aamer.
>>>
>>> On Mon, Sep 12, 2016 at 6:01 PM, Morten Olav Hansen 
>>> wrote:
>>>
>>>> That's interesting.
>>>>
>>>> @Lars any suggestions why this happens? I guess there is something
>>>> wrong with our mapping. Will have a look tomorrow.
>>>>
>>>> --
>>>> Morten Olav Hansen
>>>> Senior Engineer, DHIS 2
>>>> University of Oslo
>>>> http://www.dhis2.org
>>>>
>>>> On Mon, Sep 12, 2016 at 5:42 PM, Victor Garcia 
>>>> wrote:
>>>>
>>>>> Hi Morten, Sultan,
>>>>>
>>>>> I think we know the reason of duplicates: c

Re: [Dhis2-devs] scheduling in DHIS

2016-09-26 Thread Aamer Mohammed
Hi Lars,

We have submitted PR# 154 for the same. Please have a look and let us know
if any changes


Thanks
Aamer.

On Mon, Sep 26, 2016 at 1:10 PM, Lars Helge Øverland  wrote:

> Thank you.
>
> Lars
>
> On Mon, Sep 26, 2016 at 7:31 AM, Vanya Seth 
> wrote:
>
>> We have couple of fixes ready. Will send the PR's shortly.
>>
>> Regards
>> Vanya
>>
>> On Sat, Sep 24, 2016 at 5:59 PM, Lars Helge Øverland 
>> wrote:
>>
>>> Thanks Vanya,
>>>
>>> this sounds good.
>>>
>>> regards,
>>>
>>> Lasr
>>>
>>>
>>> On Tue, Aug 23, 2016 at 9:05 AM, Vanya Seth 
>>> wrote:
>>>
>>>> Hi Halvdan
>>>>
>>>> We will extend the functionality and send a patch.
>>>>
>>>> Regards
>>>> Vanya
>>>>
>>>> On Mon, Aug 22, 2016 at 5:57 PM, Halvdan Hoem Grelland <
>>>> halv...@dhis2.org> wrote:
>>>>
>>>>> Vanya,
>>>>>
>>>>> If you're talking about simply exposing 
>>>>> TaskExecutor.submitListenable(Runnable)
>>>>> in the Scheduler interface, it's not a big deal. I'd think you could just
>>>>> go ahead. Alternately you could wire the AsyncListenableTaskExecutor bean
>>>>> directly into the service, I suppose.
>>>>>
>>>>> On Mon, Aug 22, 2016 at 12:55 PM, Vanya Seth 
>>>>> wrote:
>>>>>
>>>>>> Hi Lars
>>>>>>
>>>>>> Any comments on this one?
>>>>>>
>>>>>> Regards
>>>>>> Vanya
>>>>>>
>>>>>> On Wed, Aug 17, 2016 at 12:44 PM, Vanya Seth >>>>> > wrote:
>>>>>>
>>>>>>> Hi Lars
>>>>>>>
>>>>>>> We are looking at extending org.hisp.dhis.system.scheduling.Scheduler
>>>>>>> to also have the ability to return the ListenableFuture for a
>>>>>>> Runnable as well. This will help us or any dev in the future to check 
>>>>>>> the
>>>>>>> status of the ongoing Runnables in the system and provide some user
>>>>>>> experience around it.
>>>>>>>
>>>>>>> Please let know if you are ok with us taking it up? As we want to
>>>>>>> fix a bug wherein the "sync now" button should not be clickable if the 
>>>>>>> task
>>>>>>> is already running.
>>>>>>>
>>>>>>> Regards
>>>>>>> Vanya
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Aug 8, 2016 at 9:26 AM, Aamer Mohammed <
>>>>>>> aam...@thoughtworks.com> wrote:
>>>>>>>
>>>>>>>> Hi Lars/Morten,
>>>>>>>>
>>>>>>>> The scheduling page in DHIS 2.24 has ability to run tasks
>>>>>>>> immediately in below sections.
>>>>>>>>
>>>>>>>>- Metadata Synchronization - Using 'Sync Now' button
>>>>>>>>- SMS Scheduler - Using 'Run Now' button
>>>>>>>>
>>>>>>>> When the user clicks 'Sync Now' button, an asynchronous task is
>>>>>>>> triggered in the backend for metadata synchronization. The user can 
>>>>>>>> click
>>>>>>>> the button again before the synchronization task is even complete. We 
>>>>>>>> want
>>>>>>>> to prevent this as it can spawn multiple threads in the system all 
>>>>>>>> doing
>>>>>>>> the same job leading to race conditions in system.
>>>>>>>>
>>>>>>>> We can do the changes in SchedulingManager.executeTask so that it
>>>>>>>> will check the status of the previously submitted task. If it is not
>>>>>>>> running then it will start new task or otherwise not. These changes 
>>>>>>>> should
>>>>>>>> be applicable to any 'executeNow' type tasks in the system.
>>>>>>>>
>>>>>>>> Does DHIS2 already have such functionality available elsewhere in
>>>>>>>> the system? Any thoughts on this approach.
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Aamer.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> With Regards
>>>>>>> ThoughtWorks Technologies
>>>>>>> Hyderabad
>>>>>>>
>>>>>>> --Stay Hungry Stay Foolish!!
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Halvdan Hoem Grelland
>>>>> Software developer, DHIS 2
>>>>> University of Oslo
>>>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> With Regards
>>>> ThoughtWorks Technologies
>>>> Hyderabad
>>>>
>>>> --Stay Hungry Stay Foolish!!
>>>>
>>>
>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> l...@dhis2.org
>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>
>>>
>>
>>
>> --
>> With Regards
>> ThoughtWorks Technologies
>> Hyderabad
>>
>> --Stay Hungry Stay Foolish!!
>>
>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org <https://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] MetadataVersion to be shown in the "About" section

2016-09-26 Thread Aamer Mohammed
Hi Lars,

We have made the changes and submitted PR#156 for the same. Please have a
look and let us know if any changes

Thanks
Aamer.


On Tue, Jun 14, 2016 at 6:27 PM, Lars Helge Øverland  wrote:

>
>
> On Tue, Jun 14, 2016 at 2:56 PM, Vanya Seth 
> wrote:
>
>> Hi Lars
>>
>> For the starters, there is a setting which needs to be enabled for
>> Metadata versioning (also highlighted in the first email that I sent). So,
>> only if this setting is enabled and there are actual versions in your DB
>> (there is a separate relation called "metadataversion" for the same) will a
>> normal user see this in the About section.
>>
>> So, if some instance has enabled versioning they will see the version
>> information otherwise not.
>>
>>
> Okay nice, that's a good point. If only visible when metadata version sync
> is enabled, then go ahead with this.
>
> regards,
>
> Lars
>
>
>
>> Regards
>> Vanya
>>
>> On Mon, Jun 13, 2016 at 3:52 PM, Lars Helge Øverland 
>> wrote:
>>
>>> Okay thanks.
>>>
>>> My concern is that this will be a bit confusing to users not using the
>>> meta-data feature, or having no knowledge about this. Also, this is not
>>> strictly meta-data versioning per se - rather a way to download meta-data
>>> packages - there is no guarantee that the entire database will be on a
>>> specific version. Is there any alternative location for this info?
>>>
>>>
>>>
>>> On Fri, Jun 10, 2016 at 11:48 AM, Vanya Seth 
>>> wrote:
>>>
 Hi Lars

 The information about the Last success will be shown just like the
 other tasks. This time relates to the successful running of the task.

 [image: Inline image 1]

 Whereas the information that we are intending to add is not related to
 the scheduling.

 This information is about the Metadata Version that the instance is
 currently at. And since, this is "About the" instance we believe it makes
 sense to be added in the "About" section.
 Moreover, it is for users without advanced rights to still be able to
 see and communicate the version (e.g. for troubleshooting).

 Other information that I see in the "About" are:

 Last analytics table generation:2016-06-10 04:28Time since last
 analytics table generation:4 h, 43 m, 46 sLast analytics table runtime:5
 m, 15 s
 Let me know what you think about this?
 RegardsVanya

 On Fri, Jun 10, 2016 at 1:19 PM, Lars Helge Øverland 
 wrote:

> Hi Vanya,
>
> could this perhaps be part of the scheduling screen (under data admin)
> ? Seems this could align with the "Last success" labels we have for other
> async jobs. Not exactly sure here, but it sounds a bit arbitrary to have
> status of one specific job under about while the others are in scheduling.
>
>
> [image: Inline image 1]
>
> regards,
>
> Lars
>
>
>
> On Thu, Jun 9, 2016 at 3:10 PM, Vanya Seth 
> wrote:
>
>>
>> Hi Lars
>>
>> We have been closing down on the final set of dev tasks before
>> proposing for a merge to trunk.
>> One of the requirements that we have been considering is to show the
>> following information in the "*About*" section.
>>
>> - *Metadata Version of the instance* (if versioning is enabled/or if
>> the MetadataVersion table has data as in versions)
>> -* Last Metadata Version sync attempt*
>>
>> Would like to hear your thoughts about the same.
>>
>> Thanks in advance.
>>
>> --
>> With Regards
>> Vanya
>> ThoughtWorks Technologies
>> Hyderabad
>>
>> --Stay Hungry Stay Foolish!!
>>
>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org 
>
>


 --
 With Regards
 ThoughtWorks Technologies
 Hyderabad

 --Stay Hungry Stay Foolish!!

>>>
>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> l...@dhis2.org
>>> http://www.dhis2.org 
>>>
>>>
>>
>>
>> --
>> With Regards
>> ThoughtWorks Technologies
>> Hyderabad
>>
>> --Stay Hungry Stay Foolish!!
>>
>
>
>
> --
> 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


Re: [Dhis2-devs] Metadata Sync - API versioning in DHIS

2016-09-22 Thread Aamer Mohammed
Thanks Morten. We will pull the changes. Also there is another controller
'MetadataSyncController' for which api versioning needs to be enabled.

On Thu, Sep 22, 2016 at 10:00 AM, Morten Olav Hansen 
wrote:

> Hi
>
> I have added versioning to master now
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Wed, Sep 21, 2016 at 9:27 AM, Morten Olav Hansen 
> wrote:
>
>> 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


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


[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


Re: [Dhis2-devs] Upgrading DHIS2 from 2.21 to 2.24 and using new exporter/importer

2016-09-14 Thread Aamer Mohammed
;>>> wrote:
>>> >>>>
>>> >>>>> Hi Vanya
>>> >>>>>
>>> >>>>> This should now have been fixed in master and 224. It will now do a
>>> >>>>> global UID check first, and report back any duplicates, if it
>>> finds a
>>> >>>>> duplicate it will remove them from the import and report back an
>>> >>>>> `ErrorReport` (as it would do with other validation issues). So if
>>> it finds
>>> >>>>> a duplicate, you will need to set atomic mode to NONE to have it
>>> import and
>>> >>>>> ignore the duplicates.
>>> >>>>>
>>> >>>>> (btw, there was several duplicates in your file, not sure how that
>>> >>>>> happened.. maybe something needs to be cleaned in your source
>>> instance)
>>> >>>>>
>>> >>>>> --
>>> >>>>> Morten Olav Hansen
>>> >>>>> Senior Engineer, DHIS 2
>>> >>>>> University of Oslo
>>> >>>>> http://www.dhis2.org
>>> >>>>>
>>> >>>>> On Mon, Sep 5, 2016 at 2:37 PM, Morten Olav Hansen <
>>> mor...@dhis2.org>
>>> >>>>> wrote:
>>> >>>>>
>>> >>>>>> Hi Vanya
>>> >>>>>>
>>> >>>>>> This should have been caught by the importer... but there are
>>> several
>>> >>>>>> duplicates without the file you sent me, MaO4Ik8f34O is used in 3
>>> category
>>> >>>>>> option groups, same with oqeVQ71LCgY..
>>> >>>>>>
>>> >>>>>> I will look into making the validation process more robust.. but
>>> at
>>> >>>>>> least you should know that this file have issues
>>> >>>>>>
>>> >>>>>> --
>>> >>>>>> Morten Olav Hansen
>>> >>>>>> Senior Engineer, DHIS 2
>>> >>>>>> University of Oslo
>>> >>>>>> http://www.dhis2.org
>>> >>>>>>
>>> >>>>>> On Mon, Sep 5, 2016 at 1:20 PM, Morten Olav Hansen <
>>> mor...@dhis2.org>
>>> >>>>>> wrote:
>>> >>>>>>
>>> >>>>>>> Ok, thanks Vanya, I'm looking into it now
>>> >>>>>>>
>>> >>>>>>> --
>>> >>>>>>> Morten Olav Hansen
>>> >>>>>>> Senior Engineer, DHIS 2
>>> >>>>>>> University of Oslo
>>> >>>>>>> http://www.dhis2.org
>>> >>>>>>>
>>> >>>>>>> On Thu, Sep 1, 2016 at 7:28 PM, Vanya Seth <
>>> van...@thoughtworks.com>
>>> >>>>>>> wrote:
>>> >>>>>>>
>>> >>>>>>>> Hi Morten
>>> >>>>>>>>
>>> >>>>>>>> Thanks for the response.
>>> >>>>>>>>
>>> >>>>>>>> We ran into another issue while trying to do a full export and
>>> >>>>>>>> import.
>>> >>>>>>>>
>>> >>>>>>>> As per the previous conversations we took care of all data
>>> >>>>>>>> migrations (as per the new constraints on the DB- pretty much
>>> caught by the
>>> >>>>>>>> Importer during the validation phase itself).
>>> >>>>>>>>
>>> >>>>>>>> Having done that we run into this issue:
>>> >>>>>>>> The 'categoryoptiongroup' import is failing with constraint
>>> >>>>>>>> violation for the UID. We checked the data and there is no
>>> repeating UID in
>>> >>>>>>>> the  database.
>>> >>>>>>>>
>>> >>>>>>>> The error text is attached for your reference, as well the
>>> payload
>>> >>>>>>>> used for the import.
>>> >>>>>>>>
>>> >>>>>>>> Thanks for all the help in ad

Re: [Dhis2-devs] Providing scheduling flexibility to other tasks

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

Any thoughts on below please.


Thanks
Aamer.


On Fri, Aug 5, 2016 at 2:35 PM, Aamer Mohammed 
wrote:

> Any comments on below please.
>
> Thanks
> Aamer.
>
> On Fri, Jul 29, 2016 at 5:55 PM, Aamer Mohammed 
> wrote:
>
>> Hi Lars / Team,
>>
>> Any thoughts on extending the scheduling options for other tasks as
>> mentioned in below mails. Currently Data Sync task will attempt
>> synchronization every minute. Is it a nice to have feature to extend that
>> task for hourly, daily, weekly, monthly and yearly as well?
>>
>> As of now the scheduling task has daily, weekly, monthly and yearly. We
>> can extend the scheduling task to have hourly as well.
>>
>>
>> Thanks
>> Aamer.
>>
>>
>> On Tue, Jun 14, 2016 at 6:53 PM, Vanya Seth 
>> wrote:
>>
>>> Thanks for the permission :)
>>>
>>> On a related note there are couple of other minor requirements that we
>>> are looking at.
>>>
>>> We have designed the metadata sync task to be flexible in terms of the
>>> scheduling options.
>>> Please look at this screenshot to understand the various options:
>>>
>>> [image: Inline image 1]
>>>
>>>
>>> We were looking at the potential merits to extend this flexibility of
>>> scheduling to other tasks like "Data Sync" and "Analytics Export".
>>>
>>> What are your thoughts about this?
>>>
>>>
>>> Regards
>>> Vanya
>>>
>>>
>
___
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] translations using d2

2016-09-09 Thread Aamer Mohammed
Hi Mark,

We have been using d2 library in couple of our custom apps and we want to
implement translations using the same. Currently the translations as they
work in other dhis apps is by parsing the client side.properties file and
getting the translation using
d2.i18n.getTranslation('this_is_my_title') .the keys are present in
i18n files for different locales and the sources for i18n files are added
to d2.config.i18n.sources

We remember you were specifying in one of the previous mails on simplifying
the workflow for translations i.e...moving from 'key' based system to
getText style of workflow...something like d2.i18n.getTranslation('This is
my title') which renders the english text if no translation is available.
We wanted to check if it is implemented and can be used by our custom apps
as well. If so could you point us to getting started on the same.


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] Application Security testing for DHIS 2

2016-08-23 Thread Aamer Mohammed
Hi dhis devs,

We are looking for testing the application in areas which focus on "CIA
triad" (Confidentiality, Integrity, Availability) of DHIS users and
resources. Just wanted to check from DHIS devs if any kind of methodologies
are already inplace for testing the code for below vulnerabilities.
1) Cross-site scripting attacks
2) Broken authentication attacks
3) Injection flaws
4) malicious code

Thanks
Aamer.


On Fri, Jul 29, 2016 at 5:37 PM, Aamer Mohammed 
wrote:

> Hi Team,
>
> We are now beginning to look at application security of DHIS 2. We want to
> understand if there is already any security testing in place for DHIS and
> any guidelines around it. This will be helpful in security testing the
> features which we have already contributed and the ones which we are
> planning to.
> It would be helpful if you get us started around this.
>
> 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] Upgrading DHIS2 from 2.21 to 2.24 and using new exporter/importer

2016-08-22 Thread Aamer Mohammed
Any thoughts please on the below approach. Let us know if any details are
required from our end around this.

On Wed, Aug 17, 2016 at 1:18 PM, Aamer Mohammed 
wrote:

> Hi Morten,
>
> We have our metadata configured on a DHIS 2.21 instance. We have
> sequentially upgraded this instance to 2.22, 2.23 and 2.24 by following the
> upgrade notes for each of them.
>
> We want to export the metadata from this upgraded 2.24 instance and import
> it to a fresh instance which is already on 2.24. We followed the below
> steps.
> 1) Export the metadata from the upgraded 2.24 instance using the new
> exporter
> *curl -H "Content-Type: application/json" -X GET -u username:password
> http://:8080/api/24/metadata.json
> <http://:8080/api/24/metadata.json> > metadata.224.newapi.json *
>
> 2) Import the metadata using the new importer to a fresh instance which is
> already on 2.24
> *curl -H "Content-Type: application/json" -X POST --data
> @metadata.224.newapi.json -u username:password
> http://:8080/api/24/metadata <http://:8080/api/24/metadata> >
> output.txt*
>
> We see that none of the objects are getting imported. The complete
> response of the importer is attached below. Any thoughts please. Also let
> me know if any further details are required from our end.
>
>
> 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] Upgrading DHIS2 from 2.21 to 2.24 and using new exporter/importer

2016-08-17 Thread Aamer Mohammed
Hi Morten,

We have our metadata configured on a DHIS 2.21 instance. We have
sequentially upgraded this instance to 2.22, 2.23 and 2.24 by following the
upgrade notes for each of them.

We want to export the metadata from this upgraded 2.24 instance and import
it to a fresh instance which is already on 2.24. We followed the below
steps.
1) Export the metadata from the upgraded 2.24 instance using the new
exporter
*curl -H "Content-Type: application/json" -X GET -u username:password
http://:8080/api/24/metadata.json
 > metadata.224.newapi.json *

2) Import the metadata using the new importer to a fresh instance which is
already on 2.24
*curl -H "Content-Type: application/json" -X POST --data
@metadata.224.newapi.json -u username:password
http://:8080/api/24/metadata  >
output.txt*

We see that none of the objects are getting imported. The complete response
of the importer is attached below. Any thoughts please. Also let me know if
any further details are required from our end.


Thanks
Aamer.
{"status":"ERROR","stats":{"total":9,"created":0,"updated":0,"deleted":0,"ignored":9},"typeReports":[{"klass":"org.hisp.dhis.organisationunit.OrganisationUnitGroupSet","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dataelement.CategoryOptionGroupSet","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dataelement.DataElementCategory","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.organisationunit.OrganisationUnitGroup","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.common.filter.MetaDataFilter","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.report.Report","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dashboard.DashboardItem","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.user.UserAuthorityGroup","stats":{"total":1,"created":0,"updated":0,"deleted":0,"ignored":1},"objectReports":[{"klass":"org.hisp.dhis.user.UserAuthorityGroup","index":7,"errorReports":[{"message":"Property
 `name` with value `Superuser` on object Superuser [nnNYZeZaox6] 
(UserAuthorityGroup) already exists on object 
yrB6vc5Ip3r.","mainKlass":"org.hisp.dhis.user.UserAuthorityGroup","errorCode":"E5003"}]}]},{"klass":"org.hisp.dhis.dataelement.DataElementCategoryCombo","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dashboard.Dashboard","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.reporttable.ReportTable","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.organisationunit.OrganisationUnit","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dataelement.DataElementCategoryOptionCombo","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.indicator.Indicator","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.user.User","stats":{"total":1,"created":0,"updated":0,"deleted":0,"ignored":1},"objectReports":[{"klass":"org.hisp.dhis.user.User","index":735,"errorReports":[{"message":"Property
 `username` with value `admin` on object null null [JB4V8ZlRV7l] 
(UserCredentials) already exists on object 
KvMx6c1eoYo.","mainKlass":"org.hisp.dhis.user.UserCredentials","errorCode":"E5003"}]}]},{"klass":"org.hisp.dhis.indicator.IndicatorGroup","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dataelement.DataElementCategoryOption","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.chart.Chart","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dataelement.DataElement","stats":{"total":5,"created":0,"updated":0,"deleted":0,"ignored":5},"objectReports":[{"klass":"org.hisp.dhis.dataelement.DataElement","index":341,"errorReports":[{"message":"Property
 `shortName` with value `Diabetes` on object Diabetes (Chronic) [R3hAKZ7OZxC] 
(DataElement) already exists on object 
psMXtszCxj0.","mainKlass":"org.hisp.dhis.dataelement.DataElement","errorCode":"E5003"}]},{"klass":"org.hisp.dhis.dataelement.DataElement","index":88,"errorReports":[{"message":"Property
 `shortName` with value `Beneficiaries MHPS Individual: Psychological suppo` 
on object Beneficiaries MHPS Individual: Psychological support - F/up visit 
[d2wj03D4iY1] (DataElement) already exists on object 
A5zai5oIfwW.","mainKlass":"org.hisp.dhis.dataelement.DataElement","errorCode":"E5003"}]},{"klass":"org.hisp.dhis.dataelement.DataElement","index":1115,"errorReports":[{"message":"Property
 `shortName` with value `Separation/Loss as precipitating e

[Dhis2-devs] scheduling in DHIS

2016-08-07 Thread Aamer Mohammed
Hi Lars/Morten,

The scheduling page in DHIS 2.24 has ability to run tasks immediately in
below sections.

   - Metadata Synchronization - Using 'Sync Now' button
   - SMS Scheduler - Using 'Run Now' button

When the user clicks 'Sync Now' button, an asynchronous task is triggered
in the backend for metadata synchronization. The user can click the button
again before the synchronization task is even complete. We want to prevent
this as it can spawn multiple threads in the system all doing the same job
leading to race conditions in system.

We can do the changes in SchedulingManager.executeTask so that it will
check the status of the previously submitted task. If it is not running
then it will start new task or otherwise not. These changes should be
applicable to any 'executeNow' type tasks in the system.

Does DHIS2 already have such functionality available elsewhere in the
system? Any thoughts on this approach.


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] Issues with custom attributes

2016-08-05 Thread Aamer Mohammed
Hi Mark,

We have created an attribute called "isPrintable" with a value type - "Yes
Only" and assigned it to data set and program. In the maintenance app, when
we look at the data set,the attribute is shown as a 'check box'. But in the
older Data Sets app the attribute is not shown.And in the program app also
the attribute is not shown.
Could you provide us any inputs on this.

Thanks
Aamer.


On Wed, Jul 27, 2016 at 1:17 PM, Durga Manasa Maruboyina <
durga...@thoughtworks.com> wrote:

> Hi Mark,
>
> We have created an attribute called "isPrintable" with a value type -
> "Yes Only" and assigned it to data set and program. In the maintenance
> app, when we look at the data set,the attribute is shown as a 'check
> box'. But in the older Data Sets app the attribute is not shown.And in the
> program app also the attribute is not shown.
>
> To create the "YesOnly" type attribute, We checked the below api,when we
> have the value as false (no value for the attribute) we are getting
> attributeValues as empty array and through the below api we are able to
> create the attribute (giving attribute value is false).
> *
> /api/dataSets.json?fields=id,name,attributeValues[:all,value,name,attribute[id,name,code]]*
>
> Could you tell the expected behaviour for attribute type "YesOnly ".
>
> Could you please provide any inputs on this issue? It would be really
> helpful if it's fixed as soon as possible as we have a use-case depending
> on this, and it's been blocking the work.
>
> *Thanks,*
> *regards,*
> *M.Durga Manasa.*
>
> On Tue, Jul 26, 2016 at 7:09 PM, Archana Chillala <
> archa...@thoughtworks.com> wrote:
>
>> Thanks for the update, Mark.
>>
>> Archana Chillala
>> Application Developer
>> Email archa...@thoughtworks.com
>> Telephone +91 9100960533 <+91+9100960533>
>> [image: ThoughtWorks]
>> 
>>
>> On Tue, Jul 26, 2016 at 6:16 PM, Mark Polak  wrote:
>>
>>> Hey Archana,
>>>
>>> The Yes Only attributes should now correctly render as checkboxes for
>>> both 2.24 and trunk.
>>>
>>> The other issue mentioned is a bit larger of a change and i have no
>>> estimate on that yet.
>>>
>>> On Tue, Jul 26, 2016 at 11:35 AM, Archana Chillala <
>>> archa...@thoughtworks.com> wrote:
>>>
 Hi Lars,

 Could you please provide any update on this issue? It would be really
 helpful if it's fixed as soon as possible as we have a use-case depending
 on this, and it's been blocking the work.


 *Thanks,*

 Archana Chillala
 Application Developer
 Email archa...@thoughtworks.com
 Telephone +91 9100960533 <+91+9100960533>
 [image: ThoughtWorks]
 

 On Fri, Jun 24, 2016 at 4:08 PM, Lars Helge Øverland 
 wrote:

>
>
> On Fri, Jun 24, 2016 at 12:10 PM, Archana Chillala <
> archa...@thoughtworks.com> wrote:
>
>> Thank you, Lars.
>>
>> I am able to reproduce the issues on the dev instance as well. 'Yes
>> Only' (and most other value types are rendered as blank fields)
>>
>>
>> [image: Inline image 1]
>>
>> Also, based on the '*value type*' of the Attribute, some attributes
>> show up in the new Data Sets module (in maintenance app) while some 
>> others
>> show up in the older Data Sets app on DHIS.
>>
>>
>>
>
> Right, sorry I confused it with Yes/No. Issue reported here:
>
> https://github.com/dhis2/maintenance-app/issues/190
>
> regards,
>
> Lars
>
>
>
>> Cheers,
>>
>> Archana Chillala
>> Application Developer
>> Email archa...@thoughtworks.com
>> Telephone +91 9100960533 <+91+9100960533>
>> [image: ThoughtWorks]
>> 
>>
>> On Fri, Jun 24, 2016 at 2:58 PM, Lars Helge Øverland 
>> wrote:
>>
>>> Hi Archana,
>>>
>>> thanks for the feedback.
>>>
>>> Did you test against
>>>
>>> On Fri, Jun 24, 2016 at 10:01 AM, Archana Chillala <
>>> archa...@thoughtworks.com> wrote:
>>>
 Hi,

 We have created an attribute with a value type - "Yes Only" and
 assigned it to data set. In the maintenance app, when we look at the 
 data
 set, instead of a 'check box', a blank text field is shown (when the 
 value
 type is 'Yes Only'). We tested with other value types, and looks like
 except for option sets (which are rendered as a drop down list), all 
 other
 value types are shown as a text field.

 Here's the screenshot attached. "*Is this a report template?*" is
 our attr

Re: [Dhis2-devs] Application Security testing for DHIS 2

2016-08-05 Thread Aamer Mohammed
Hi Team,

Any insights for the below request would be helpful to get us started
around this.

Thanks

On Fri, Jul 29, 2016 at 5:37 PM, Aamer Mohammed 
wrote:

> Hi Team,
>
> We are now beginning to look at application security of DHIS 2. We want to
> understand if there is already any security testing in place for DHIS and
> any guidelines around it. This will be helpful in security testing the
> features which we have already contributed and the ones which we are
> planning to.
> It would be helpful if you get us started around this.
>
> 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] dhis charts using highcharts and png downloads

2016-08-01 Thread Aamer Mohammed
Hi Jan,

Any updates on below query as well?


On Tue, Jul 26, 2016 at 4:06 PM, Srikanth Katta 
wrote:

> Hi Jan,
>
> Can we specify a date as query parameter which will the basis for the
> relative periods in extJS based abstractions.
>
> for example:
> A chart is configured for getting data for last 12 months. I want to get
> data from jan 2016 to jan 2015. Can we specify the starting time period as
> Jan 2016 along with chart id.
>
>
> Thanks
>
> On Thu, Jul 14, 2016 at 4:57 PM, Aamer Mohammed 
> wrote:
>
>> Hi Jan,
>>
>> Thanks for the response. Couple of clarifications here.
>>
>>-  Currently, extjs abstractions give out the chart object by passing
>>the chart id. Would the same be available with highcharts based
>>abstractions as well? Just give chart id for the highchart based
>>abstraction and it gives the chart object.
>>- Would extjs based abstractions be still available after 2.26?
>>
>>
>> Thanks
>> Aamer.
>>
>>
>>
>> On Wed, Jul 13, 2016 at 11:32 PM, Jan Henrik Øverland 
>> wrote:
>>
>>> Hi Srikanth/Vanya/Aamer,
>>>
>>> Highcharts in the charts app + dashboard plugin is scheduled for 2.26.
>>>
>>> Yes, we will make sure you don't have to call external services to
>>> download the charts as png.
>>>
>>> By the way, we already have this endpoint
>>> https://play.dhis2.org/dev/api/svg.png running Batik to which you can
>>> submit an html form with an "svg" field (svg) and a "filename" field (text).
>>>
>>> You can try this out via the app by going to
>>> https://play.dhis2.org/dev/dhis-web-visualizer -> create a chart ->
>>> download as image and have a look at what is going on in the browser
>>> console.
>>>
>>> Jan
>>>
>>> On 13 July 2016 at 10:13, Knut Staring  wrote:
>>>
>>>> HI Aamer,
>>>>
>>>> Just a heads-up that this is holiday time in Norway, so it may take
>>>> some time for you to get a reply.
>>>>
>>>> Knut
>>>>
>>>> On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed <
>>>> aam...@thoughtworks.com> wrote:
>>>>
>>>>> Hi Jan/Bjørn,
>>>>>
>>>>> Any thoughts on roadmap for highcharts based abstractions or in
>>>>> improving quality of the api/charts/data which is giving a png now and is
>>>>> not as good as the high charts generated chart.
>>>>>
>>>>> Any thoughts will be much appreciated.
>>>>>
>>>>>
>>>>> Thanks
>>>>> Aamer.
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak  wrote:
>>>>>
>>>>>> Hey Vanya,
>>>>>>
>>>>>> I'm not really sure what the status on this is. I think there is a
>>>>>> plan to remove Ext as a dependency from that plugin yes.
>>>>>>
>>>>>> I know you can get the analytics data urls from the charts app.
>>>>>>
>>>>>> I think Jan and/or Bjørn would be able to give you better answer on
>>>>>> the roadmap/status of these things.
>>>>>>
>>>>>> On Mon, Jul 11, 2016 at 3:10 PM, Vanya Seth 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Mark
>>>>>>>
>>>>>>> Would it be possible to provide some insights on this aspect as
>>>>>>> well? We are getting inclined towards using highcharts based 
>>>>>>> abstractions.
>>>>>>> But would like to hear back from you as well.
>>>>>>>
>>>>>>> Any help will be much appreciated.
>>>>>>>
>>>>>>> Regards
>>>>>>> Vanya
>>>>>>>
>>>>>>> On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth >>>>>> > wrote:
>>>>>>>
>>>>>>>> Hi Mark and Nicolay
>>>>>>>>
>>>>>>>> Could you please provide some information regarding this?
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Vanya
>>>>>>>>
>>>>>>>> On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta <
>>>>>>>> srika...@t

[Dhis2-devs] using new exporter in dhis play instance

2016-08-01 Thread Aamer Mohammed
Hi Morten,

We are planning to use created filter to get the filtered set of metadata
basing upon created date.
For example: To get a filtered set of metadata that was created since April
1, 2016
https://play.dhis2.org/demo/api/24/metadata?filter=created:gte:2016-04-01

That filter is working fine with that versioned api and we are getting
proper results. But we are getting some issues with the generic api.
https://play.dhis2.org/demo/api/metadata?filter=created:gte:2016-04-01

I assume /api/metadata is still using the old exporter whereas
/api/24/metadata is using the new exporter. Should we use /api/24/metadata
endpoint in our custom apps or is there a plan to move /api/metadata to new
exporter?

Also is it correct to have below assumptions?

   - If I am on 2.24, /api/metadata should be same as using /api/24/metadata
   - If I am on 2.23, /api/metadata should be same as using /api/23/metadata


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] Application Security testing for DHIS 2

2016-07-29 Thread Aamer Mohammed
Hi Team,

We are now beginning to look at application security of DHIS 2. We want to
understand if there is already any security testing in place for DHIS and
any guidelines around it. This will be helpful in security testing the
features which we have already contributed and the ones which we are
planning to.
It would be helpful if you get us started around this.

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] dhis charts using highcharts and png downloads

2016-07-29 Thread Aamer Mohammed
Hi Team,

Any updates on the below questions?

On Tue, Jul 26, 2016 at 5:07 PM, Aamer Mohammed 
wrote:

> Hi Jan / Team,
>
> Few additional questions apart from the ones below.
>
>- Is any other image utility supported apart from png? What is the
>roadmap for this endpoint. Will this endpoint be actively supported by DHIS
>in future releases also?
>- any documentation around this endpoint.
>
> We are waiting on your inputs as we are planning to use this endpoint in
> our custom apps.
>
> Thanks
>
> On Mon, Jul 25, 2016 at 3:03 PM, Aamer Mohammed 
> wrote:
>
>> Hi Jan,
>>
>> This endpoint https://play.dhis2.org/demo/api/svg.png
>> <https://play.dhis2.org/dev/api/svg.png> running Batik is able to
>> convert svg to png images. We are getting inclined towards using this
>> endpoint in our custom apps. Few questions here:
>>
>>- Can we specify the size of png image to be generated via the api?
>>- We want to convert report tables(html) to png. So we are embedding
>>the html table as a foreign object in svg. But this endpoint is unable to
>>convert such svg to png. Is this a limitation or is it planned in future
>>releases?
>>- Is there any other DHIS endpoint which converts html tables to
>>images? Our custom app has a functionality wherein the user should be able
>>to export the images/tables to word documents. We do not want to
>>reconstruct the table from the json table data.
>>
>>
>> Thanks
>> Aamer.
>>
>>
>> On Thu, Jul 14, 2016 at 4:57 PM, Aamer Mohammed 
>> wrote:
>>
>>> Hi Jan,
>>>
>>> Thanks for the response. Couple of clarifications here.
>>>
>>>-  Currently, extjs abstractions give out the chart object by
>>>passing the chart id. Would the same be available with highcharts based
>>>abstractions as well? Just give chart id for the highchart based
>>>abstraction and it gives the chart object.
>>>- Would extjs based abstractions be still available after 2.26?
>>>
>>>
>>> Thanks
>>> Aamer.
>>>
>>>
>>>
>>> On Wed, Jul 13, 2016 at 11:32 PM, Jan Henrik Øverland 
>>> wrote:
>>>
>>>> Hi Srikanth/Vanya/Aamer,
>>>>
>>>> Highcharts in the charts app + dashboard plugin is scheduled for 2.26.
>>>>
>>>> Yes, we will make sure you don't have to call external services to
>>>> download the charts as png.
>>>>
>>>> By the way, we already have this endpoint
>>>> https://play.dhis2.org/dev/api/svg.png running Batik to which you can
>>>> submit an html form with an "svg" field (svg) and a "filename" field 
>>>> (text).
>>>>
>>>> You can try this out via the app by going to
>>>> https://play.dhis2.org/dev/dhis-web-visualizer -> create a chart ->
>>>> download as image and have a look at what is going on in the browser
>>>> console.
>>>>
>>>> Jan
>>>>
>>>> On 13 July 2016 at 10:13, Knut Staring  wrote:
>>>>
>>>>> HI Aamer,
>>>>>
>>>>> Just a heads-up that this is holiday time in Norway, so it may take
>>>>> some time for you to get a reply.
>>>>>
>>>>> Knut
>>>>>
>>>>> On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed <
>>>>> aam...@thoughtworks.com> wrote:
>>>>>
>>>>>> Hi Jan/Bjørn,
>>>>>>
>>>>>> Any thoughts on roadmap for highcharts based abstractions or in
>>>>>> improving quality of the api/charts/data which is giving a png now and is
>>>>>> not as good as the high charts generated chart.
>>>>>>
>>>>>> Any thoughts will be much appreciated.
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>> Aamer.
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak  wrote:
>>>>>>
>>>>>>> Hey Vanya,
>>>>>>>
>>>>>>> I'm not really sure what the status on this is. I think there is a
>>>>>>> plan to remove Ext as a dependency from that plugin yes.
>>>>>>>
>>>>>>> I know you can get the analytics data urls from the charts app.
>>>>>>>

Re: [Dhis2-devs] Issue with custom attributes in data set api

2016-07-27 Thread Aamer Mohammed
Also in the second test case mentioned below.

   - Now we marked that attribute is 'checked' in one of the data set page
   of maintenance app. The api is returning the attribute value as 'true'
   which is fine.  But when the attribute is 'unchecked' in the app, the api
   is returning the value as 'false'. Should it not show up in the response as
   it was in the first case? Is it expected behaviour? If so what is the
   difference between "Yes Only" and "Yes No" attribute types?

The api is returning the value as 'false' only for the data set which we
have modified. The other data sets still do not show the attribute as it
was in the first case. So the api is showing two different behaviours for
the same test case.
We have reproduced all of these in play demo instance itself.

Could you please provide inputs for the same.


Thanks
Aamer.


On Thu, Jul 28, 2016 at 12:06 PM, Aamer Mohammed 
wrote:

> Hi Morten,
>
> We have created an attribute called "isPrintable" with a value type -
> "Yes Only" and assigned it to data set and program. We have few
> clarifications on the below api
> *
> /api/dataSets.json?fields=id,name,attributeValues[:all,value,name,attribute[id,name,code]]*
>
>
>- Immediately after assigning the attribute to data set and program,
>we invoked the api. The api is not showing the attribute as part of the
>response as it is still 'unchecked' in the data set page of maintenance
>app. The attribute array is empty in the response.
>- Now we marked that attribute is 'checked' in the data set page of
>maintenance app. The api is returning the attribute value as 'true' which
>is fine.  But when the attribute is 'unchecked' in the app, the api is
>returning the value as 'false'. Should it not show up in the response as it
>was in the first case? Is it expected behaviour? If so what is the
>difference between "Yes Only" and "Yes No" attribute types?
>- Now we edited that attribute and unassigned it from data set and
>program. But the data set api is still showing the attribute in its
>response. It should not come up in the response right?
>
> Could you please provide inputs for the same.
>
> 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] Issue with custom attributes in data set api

2016-07-27 Thread Aamer Mohammed
Hi Morten,

We have created an attribute called "isPrintable" with a value type - "Yes
Only" and assigned it to data set and program. We have few clarifications
on the below api
*
/api/dataSets.json?fields=id,name,attributeValues[:all,value,name,attribute[id,name,code]]*


   - Immediately after assigning the attribute to data set and program, we
   invoked the api. The api is not showing the attribute as part of the
   response as it is still 'unchecked' in the data set page of maintenance
   app. The attribute array is empty in the response.
   - Now we marked that attribute is 'checked' in the data set page of
   maintenance app. The api is returning the attribute value as 'true' which
   is fine.  But when the attribute is 'unchecked' in the app, the api is
   returning the value as 'false'. Should it not show up in the response as it
   was in the first case? Is it expected behaviour? If so what is the
   difference between "Yes Only" and "Yes No" attribute types?
   - Now we edited that attribute and unassigned it from data set and
   program. But the data set api is still showing the attribute in its
   response. It should not come up in the response right?

Could you please provide inputs for the same.

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] dhis charts using highcharts and png downloads

2016-07-26 Thread Aamer Mohammed
Hi Jan / Team,

Few additional questions apart from the ones below.

   - Is any other image utility supported apart from png? What is the
   roadmap for this endpoint. Will this endpoint be actively supported by DHIS
   in future releases also?
   - any documentation around this endpoint.

We are waiting on your inputs as we are planning to use this endpoint in
our custom apps.

Thanks

On Mon, Jul 25, 2016 at 3:03 PM, Aamer Mohammed 
wrote:

> Hi Jan,
>
> This endpoint https://play.dhis2.org/demo/api/svg.png
> <https://play.dhis2.org/dev/api/svg.png> running Batik is able to convert
> svg to png images. We are getting inclined towards using this endpoint in
> our custom apps. Few questions here:
>
>- Can we specify the size of png image to be generated via the api?
>- We want to convert report tables(html) to png. So we are embedding
>the html table as a foreign object in svg. But this endpoint is unable to
>convert such svg to png. Is this a limitation or is it planned in future
>releases?
>- Is there any other DHIS endpoint which converts html tables to
>images? Our custom app has a functionality wherein the user should be able
>to export the images/tables to word documents. We do not want to
>reconstruct the table from the json table data.
>
>
> Thanks
> Aamer.
>
>
> On Thu, Jul 14, 2016 at 4:57 PM, Aamer Mohammed 
> wrote:
>
>> Hi Jan,
>>
>> Thanks for the response. Couple of clarifications here.
>>
>>-  Currently, extjs abstractions give out the chart object by passing
>>the chart id. Would the same be available with highcharts based
>>abstractions as well? Just give chart id for the highchart based
>>abstraction and it gives the chart object.
>>- Would extjs based abstractions be still available after 2.26?
>>
>>
>> Thanks
>> Aamer.
>>
>>
>>
>> On Wed, Jul 13, 2016 at 11:32 PM, Jan Henrik Øverland 
>> wrote:
>>
>>> Hi Srikanth/Vanya/Aamer,
>>>
>>> Highcharts in the charts app + dashboard plugin is scheduled for 2.26.
>>>
>>> Yes, we will make sure you don't have to call external services to
>>> download the charts as png.
>>>
>>> By the way, we already have this endpoint
>>> https://play.dhis2.org/dev/api/svg.png running Batik to which you can
>>> submit an html form with an "svg" field (svg) and a "filename" field (text).
>>>
>>> You can try this out via the app by going to
>>> https://play.dhis2.org/dev/dhis-web-visualizer -> create a chart ->
>>> download as image and have a look at what is going on in the browser
>>> console.
>>>
>>> Jan
>>>
>>> On 13 July 2016 at 10:13, Knut Staring  wrote:
>>>
>>>> HI Aamer,
>>>>
>>>> Just a heads-up that this is holiday time in Norway, so it may take
>>>> some time for you to get a reply.
>>>>
>>>> Knut
>>>>
>>>> On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed <
>>>> aam...@thoughtworks.com> wrote:
>>>>
>>>>> Hi Jan/Bjørn,
>>>>>
>>>>> Any thoughts on roadmap for highcharts based abstractions or in
>>>>> improving quality of the api/charts/data which is giving a png now and is
>>>>> not as good as the high charts generated chart.
>>>>>
>>>>> Any thoughts will be much appreciated.
>>>>>
>>>>>
>>>>> Thanks
>>>>> Aamer.
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak  wrote:
>>>>>
>>>>>> Hey Vanya,
>>>>>>
>>>>>> I'm not really sure what the status on this is. I think there is a
>>>>>> plan to remove Ext as a dependency from that plugin yes.
>>>>>>
>>>>>> I know you can get the analytics data urls from the charts app.
>>>>>>
>>>>>> I think Jan and/or Bjørn would be able to give you better answer on
>>>>>> the roadmap/status of these things.
>>>>>>
>>>>>> On Mon, Jul 11, 2016 at 3:10 PM, Vanya Seth 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Mark
>>>>>>>
>>>>>>> Would it be possible to provide some insights on this aspect as
>>>>>>> well? We are getting inclined towards using highcharts based 
>>>>>>&g

Re: [Dhis2-devs] Plan for Metadata Sync /Versioning ongoing development

2016-07-25 Thread Aamer Mohammed
Thanks Morten. We will do the bugfixes and other changes related to
metadata sync feature in our 2.24 branch(it is branched from DHIS 2.24
branch).
<https://code.launchpad.net/~twoca-devs/dhis2/twoca_2.24>
https://code.launchpad.net/~twoca-devs/dhis2/twoca_2.24
Once the patches are ready we will provide the details so that you can
commit them to the main DHIS 2.24 branch and DHIS trunk as well.


On Mon, Jul 25, 2016 at 2:07 PM, Morten Olav Hansen 
wrote:

> Hi Aamer
>
> What happens when we release a new version of DHIS 2 is that we branch of
> <2.XX> version (2.24 now latest) and then continue doing development in
> trunk branch, mainly this means that bugfixes goes into trunk/2,XX and new
> features into trunk only.
>
> Probably it would be wise to follow this approach for your branch also 
> (twoca_sync-trunk
> / twoca_sync-2.24) as we do not want to backport big features into 2.24
> which can cause issues with a stable branch.
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Jul 14, 2016 at 6:54 AM, Aamer Mohammed 
> wrote:
>
>> Hi Lars,
>>
>> If I understand it correctly, we will continue working on our trunk based
>> branch and provide patches so that you can put them in trunk and also
>> back-port the fix rev to 2.24 stable.
>>
>> Also we would like to understand the best practice around this. Can we
>> continue using twoca_sync branch (the status of which is 'merged') or
>> create a new trunk based branch (the status of which will be 'development')
>>
>>
>> Thanks
>> Aamer.
>>
>>
>> On Wed, Jul 13, 2016 at 10:21 PM, Lars Helge Øverland 
>> wrote:
>>
>>> Hi Aamer,
>>>
>>> thanks for bringing this up.
>>>
>>> We always do new development against trunk (not stable release branches
>>> such as 2.24 etc).
>>>
>>> If you want to do minor features, minor improvements and bugfixes you
>>> can do that directly on trunk. If you want to develop larger new features
>>> we appreciate if you do that in a branch and go through the regular
>>> review/merge process.
>>>
>>> If you need to do bugfixes to what was released in 2.24, you first do
>>> the fix in trunk, and then we back-port the fix rev to 2.24 stable.
>>>
>>>
>>> best regards,
>>>
>>> Lars
>>>
>>>
>>>
>>>
>>> On Wed, Jul 13, 2016 at 8:01 AM, Aamer Mohammed >> > wrote:
>>>
>>>> Hi Lars and Team,
>>>>
>>>> As the branch https://code.launchpad.net/~twoca-devs/dhis2/twoca_sync is
>>>> now merged in 2.24, we are continuing to test it further and also add some
>>>> more features around it like controller layer test cases, etc...
>>>> So we want to understand on how we can provide patches/fixes for the
>>>> same in 2.24 and trunk as well.  Do we need to continue development on
>>>> twoca_sync branch so that you can cherry pick the fixes in 2.24 and merge
>>>> the same to trunk as well.
>>>> Let us know your thoughts on this.
>>>>
>>>>
>>>> Thanks
>>>> Aamer.
>>>> <http://fabricjs.com/> <http://fabricjs.com/>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> l...@dhis2.org
>>> http://www.dhis2.org <https://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] dhis charts using highcharts and png downloads

2016-07-25 Thread Aamer Mohammed
Hi Jan,

This endpoint https://play.dhis2.org/demo/api/svg.png
<https://play.dhis2.org/dev/api/svg.png> running Batik is able to convert
svg to png images. We are getting inclined towards using this endpoint in
our custom apps. Few questions here:

   - Can we specify the size of png image to be generated via the api?
   - We want to convert report tables(html) to png. So we are embedding the
   html table as a foreign object in svg. But this endpoint is unable to
   convert such svg to png. Is this a limitation or is it planned in future
   releases?
   - Is there any other DHIS endpoint which converts html tables to images?
   Our custom app has a functionality wherein the user should be able to
   export the images/tables to word documents. We do not want to reconstruct
   the table from the json table data.


Thanks
Aamer.


On Thu, Jul 14, 2016 at 4:57 PM, Aamer Mohammed 
wrote:

> Hi Jan,
>
> Thanks for the response. Couple of clarifications here.
>
>-  Currently, extjs abstractions give out the chart object by passing
>the chart id. Would the same be available with highcharts based
>abstractions as well? Just give chart id for the highchart based
>abstraction and it gives the chart object.
>- Would extjs based abstractions be still available after 2.26?
>
>
> Thanks
> Aamer.
>
>
>
> On Wed, Jul 13, 2016 at 11:32 PM, Jan Henrik Øverland 
> wrote:
>
>> Hi Srikanth/Vanya/Aamer,
>>
>> Highcharts in the charts app + dashboard plugin is scheduled for 2.26.
>>
>> Yes, we will make sure you don't have to call external services to
>> download the charts as png.
>>
>> By the way, we already have this endpoint
>> https://play.dhis2.org/dev/api/svg.png running Batik to which you can
>> submit an html form with an "svg" field (svg) and a "filename" field (text).
>>
>> You can try this out via the app by going to
>> https://play.dhis2.org/dev/dhis-web-visualizer -> create a chart ->
>> download as image and have a look at what is going on in the browser
>> console.
>>
>> Jan
>>
>> On 13 July 2016 at 10:13, Knut Staring  wrote:
>>
>>> HI Aamer,
>>>
>>> Just a heads-up that this is holiday time in Norway, so it may take some
>>> time for you to get a reply.
>>>
>>> Knut
>>>
>>> On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed >> > wrote:
>>>
>>>> Hi Jan/Bjørn,
>>>>
>>>> Any thoughts on roadmap for highcharts based abstractions or in
>>>> improving quality of the api/charts/data which is giving a png now and is
>>>> not as good as the high charts generated chart.
>>>>
>>>> Any thoughts will be much appreciated.
>>>>
>>>>
>>>> Thanks
>>>> Aamer.
>>>>
>>>>
>>>>
>>>> On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak  wrote:
>>>>
>>>>> Hey Vanya,
>>>>>
>>>>> I'm not really sure what the status on this is. I think there is a
>>>>> plan to remove Ext as a dependency from that plugin yes.
>>>>>
>>>>> I know you can get the analytics data urls from the charts app.
>>>>>
>>>>> I think Jan and/or Bjørn would be able to give you better answer on
>>>>> the roadmap/status of these things.
>>>>>
>>>>> On Mon, Jul 11, 2016 at 3:10 PM, Vanya Seth 
>>>>> wrote:
>>>>>
>>>>>> Hi Mark
>>>>>>
>>>>>> Would it be possible to provide some insights on this aspect as well?
>>>>>> We are getting inclined towards using highcharts based abstractions. But
>>>>>> would like to hear back from you as well.
>>>>>>
>>>>>> Any help will be much appreciated.
>>>>>>
>>>>>> Regards
>>>>>> Vanya
>>>>>>
>>>>>> On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Mark and Nicolay
>>>>>>>
>>>>>>> Could you please provide some information regarding this?
>>>>>>>
>>>>>>> Regards
>>>>>>> Vanya
>>>>>>>
>>>>>>> On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta <
>>>>>>> srika...@thoughtworks.com> wrote:
>>>>>>>
>>>>>>>> Hi Dhis

Re: [Dhis2-devs] dhis charts using highcharts and png downloads

2016-07-14 Thread Aamer Mohammed
Hi Jan,

Thanks for the response. Couple of clarifications here.

   -  Currently, extjs abstractions give out the chart object by passing
   the chart id. Would the same be available with highcharts based
   abstractions as well? Just give chart id for the highchart based
   abstraction and it gives the chart object.
   - Would extjs based abstractions be still available after 2.26?


Thanks
Aamer.



On Wed, Jul 13, 2016 at 11:32 PM, Jan Henrik Øverland  wrote:

> Hi Srikanth/Vanya/Aamer,
>
> Highcharts in the charts app + dashboard plugin is scheduled for 2.26.
>
> Yes, we will make sure you don't have to call external services to
> download the charts as png.
>
> By the way, we already have this endpoint
> https://play.dhis2.org/dev/api/svg.png running Batik to which you can
> submit an html form with an "svg" field (svg) and a "filename" field (text).
>
> You can try this out via the app by going to
> https://play.dhis2.org/dev/dhis-web-visualizer -> create a chart ->
> download as image and have a look at what is going on in the browser
> console.
>
> Jan
>
> On 13 July 2016 at 10:13, Knut Staring  wrote:
>
>> HI Aamer,
>>
>> Just a heads-up that this is holiday time in Norway, so it may take some
>> time for you to get a reply.
>>
>> Knut
>>
>> On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed 
>> wrote:
>>
>>> Hi Jan/Bjørn,
>>>
>>> Any thoughts on roadmap for highcharts based abstractions or in
>>> improving quality of the api/charts/data which is giving a png now and is
>>> not as good as the high charts generated chart.
>>>
>>> Any thoughts will be much appreciated.
>>>
>>>
>>> Thanks
>>> Aamer.
>>>
>>>
>>>
>>> On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak  wrote:
>>>
>>>> Hey Vanya,
>>>>
>>>> I'm not really sure what the status on this is. I think there is a plan
>>>> to remove Ext as a dependency from that plugin yes.
>>>>
>>>> I know you can get the analytics data urls from the charts app.
>>>>
>>>> I think Jan and/or Bjørn would be able to give you better answer on the
>>>> roadmap/status of these things.
>>>>
>>>> On Mon, Jul 11, 2016 at 3:10 PM, Vanya Seth 
>>>> wrote:
>>>>
>>>>> Hi Mark
>>>>>
>>>>> Would it be possible to provide some insights on this aspect as well?
>>>>> We are getting inclined towards using highcharts based abstractions. But
>>>>> would like to hear back from you as well.
>>>>>
>>>>> Any help will be much appreciated.
>>>>>
>>>>> Regards
>>>>> Vanya
>>>>>
>>>>> On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth 
>>>>> wrote:
>>>>>
>>>>>> Hi Mark and Nicolay
>>>>>>
>>>>>> Could you please provide some information regarding this?
>>>>>>
>>>>>> Regards
>>>>>> Vanya
>>>>>>
>>>>>> On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta <
>>>>>> srika...@thoughtworks.com> wrote:
>>>>>>
>>>>>>> Hi Dhis-devs,
>>>>>>>
>>>>>>> *Future plan of chart.js*
>>>>>>>
>>>>>>> Is there any future plan to rewrite chart.js using highcharts in
>>>>>>> place of extJS.
>>>>>>> Currently we have embedded chart service module from interactive
>>>>>>> dashboard app into our custom app. To get the high chart object we need
>>>>>>> analytical object. Currently we are generating the analytical object 
>>>>>>> using
>>>>>>> dash board controller.
>>>>>>>
>>>>>>> *Dhis api to download high chart as png*
>>>>>>>
>>>>>>> Currently in interactive dashboard app. When we download the high
>>>>>>> chart image as PNG, it is calling to the *http://export.highcharts.com
>>>>>>> <http://export.highcharts.com>* instead do we have any api which
>>>>>>> does the download as png in the DHIS itself. Or do we have any plans in
>>>>>>> improving quality of the api/charts/data which is giving a png now and 
>>>>>>> is
>>>>>>> not as good as the high charts gen

Re: [Dhis2-devs] Plan for Metadata Sync /Versioning ongoing development

2016-07-13 Thread Aamer Mohammed
Hi Lars,

If I understand it correctly, we will continue working on our trunk based
branch and provide patches so that you can put them in trunk and also
back-port the fix rev to 2.24 stable.

Also we would like to understand the best practice around this. Can we
continue using twoca_sync branch (the status of which is 'merged') or
create a new trunk based branch (the status of which will be 'development')


Thanks
Aamer.


On Wed, Jul 13, 2016 at 10:21 PM, Lars Helge Øverland 
wrote:

> Hi Aamer,
>
> thanks for bringing this up.
>
> We always do new development against trunk (not stable release branches
> such as 2.24 etc).
>
> If you want to do minor features, minor improvements and bugfixes you can
> do that directly on trunk. If you want to develop larger new features we
> appreciate if you do that in a branch and go through the regular
> review/merge process.
>
> If you need to do bugfixes to what was released in 2.24, you first do the
> fix in trunk, and then we back-port the fix rev to 2.24 stable.
>
>
> best regards,
>
> Lars
>
>
>
>
> On Wed, Jul 13, 2016 at 8:01 AM, Aamer Mohammed 
> wrote:
>
>> Hi Lars and Team,
>>
>> As the branch https://code.launchpad.net/~twoca-devs/dhis2/twoca_sync is
>> now merged in 2.24, we are continuing to test it further and also add some
>> more features around it like controller layer test cases, etc...
>> So we want to understand on how we can provide patches/fixes for the same
>> in 2.24 and trunk as well.  Do we need to continue development on
>> twoca_sync branch so that you can cherry pick the fixes in 2.24 and merge
>> the same to trunk as well.
>> Let us know your thoughts on this.
>>
>>
>> Thanks
>> Aamer.
>> <http://fabricjs.com/> <http://fabricjs.com/>
>>
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org <https://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] dhis charts using highcharts and png downloads

2016-07-13 Thread Aamer Mohammed
Hi Jan/Bjørn,

Any thoughts on roadmap for highcharts based abstractions or in improving
quality of the api/charts/data which is giving a png now and is not as good
as the high charts generated chart.

Any thoughts will be much appreciated.


Thanks
Aamer.



On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak  wrote:

> Hey Vanya,
>
> I'm not really sure what the status on this is. I think there is a plan to
> remove Ext as a dependency from that plugin yes.
>
> I know you can get the analytics data urls from the charts app.
>
> I think Jan and/or Bjørn would be able to give you better answer on the
> roadmap/status of these things.
>
> On Mon, Jul 11, 2016 at 3:10 PM, Vanya Seth 
> wrote:
>
>> Hi Mark
>>
>> Would it be possible to provide some insights on this aspect as well? We
>> are getting inclined towards using highcharts based abstractions. But would
>> like to hear back from you as well.
>>
>> Any help will be much appreciated.
>>
>> Regards
>> Vanya
>>
>> On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth 
>> wrote:
>>
>>> Hi Mark and Nicolay
>>>
>>> Could you please provide some information regarding this?
>>>
>>> Regards
>>> Vanya
>>>
>>> On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta <
>>> srika...@thoughtworks.com> wrote:
>>>
 Hi Dhis-devs,

 *Future plan of chart.js*

 Is there any future plan to rewrite chart.js using highcharts in place
 of extJS.
 Currently we have embedded chart service module from interactive
 dashboard app into our custom app. To get the high chart object we need
 analytical object. Currently we are generating the analytical object using
 dash board controller.

 *Dhis api to download high chart as png*

 Currently in interactive dashboard app. When we download the high chart
 image as PNG, it is calling to the *http://export.highcharts.com
 * instead do we have any api which does
 the download as png in the DHIS itself. Or do we have any plans in
 improving quality of the api/charts/data which is giving a png now and is
 not as good as the high charts generated chart.


 Thanks,
 Srikanth Katta.


>>>
>>>
>>> --
>>> With Regards
>>> ThoughtWorks Technologies
>>> Hyderabad
>>>
>>> --Stay Hungry Stay Foolish!!
>>>
>>
>>
>>
>> --
>> With Regards
>> ThoughtWorks Technologies
>> Hyderabad
>>
>> --Stay Hungry Stay Foolish!!
>>
>
>
>
> --
> Regards,
>
>
> Mark Polak
> Software developer, DHIS 2
> University of Oslo
> http://www.dhis2.org 
> m...@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


[Dhis2-devs] Plan for Metadata Sync /Versioning ongoing development

2016-07-12 Thread Aamer Mohammed
Hi Lars and Team,

As the branch https://code.launchpad.net/~twoca-devs/dhis2/twoca_sync is
now merged in 2.24, we are continuing to test it further and also add some
more features around it like controller layer test cases, etc...
So we want to understand on how we can provide patches/fixes for the same
in 2.24 and trunk as well.  Do we need to continue development on
twoca_sync branch so that you can cherry pick the fixes in 2.24 and merge
the same to trunk as well.
Let us know your thoughts on this.


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 Documentation for Metadata Sync and Versioning

2016-06-27 Thread Aamer Mohammed
Yes Morten that was specific to my machine. The issue is identified and we
are able to build the package successfully.

On Mon, Jun 27, 2016 at 12:44 PM, Morten Olav Hansen 
wrote:

> Hi
>
> I'm not aware of any extra steps needed, I just built it fine here
> locally.. (mvn clean package), could be something local on your laptop? I
> see no complaints from our build server either
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Jun 27, 2016 at 1:59 PM, Aamer Mohammed 
> wrote:
>
>> Hi
>>
>> We have forked dhis2-docs repo to get started with the documentation for
>> the new features. However when we try to build the just cloned repo with
>> apache maven as mentioned in
>> http://dhis2.github.io/dhis2-docs/2.22/en/implementer/html/apas09.html
>>
>> we are getting below error
>> --
>> [ERROR] Failed to execute goal
>> com.agilejava.docbkx:docbkx-maven-plugin:2.0.17:generate-html
>> (chunked-html-docs-implementer) on project dhis-documentation-docbook:
>> Failed to transform dhis2_implementation_guide_en.xml.
>> org.xml.sax.SAXParseException; systemId:
>> file:///Users/aamerm/Documents/oca/dhis2docs/dhis2-docs/src/docbkx/en/dhis2_implementation_guide_en.xml;
>> lineNumber: 35; columnNumber: 68; An 'include' failed, and no 'fallback'
>> element was found. -> [Help 1]
>> ---
>>
>> Are there any other steps apart from the ones mentioned in readme. Please
>> suggest.
>>
>> Thanks
>> Aamer.
>>
>> <http://dhis2.github.io/dhis2-docs/2.22/en/implementer/html/apas09.html>
>>
>> On Tue, Jun 7, 2016 at 10:48 AM, Vanya Seth 
>> wrote:
>>
>>> Thanks for the information Lars.
>>>
>>> Regards
>>> Vanya
>>>
>>> On Tue, Jun 7, 2016 at 7:26 AM, Lars Helge Øverland 
>>> wrote:
>>>
>>>> Hi Vanya,
>>>>
>>>> thanks for taking the time to document this.
>>>>
>>>> Just some suggestions for your question on where to put what:
>>>>
>>>>
>>>>> As we understand that there are 3 manuals
>>>>>
>>>>> - Developer guide
>>>>> - User guide
>>>>> - Implementor guide
>>>>>
>>>>> When we do the documentation are we targeting all these guides?
>>>>>
>>>>> Some key aspects that we believe are documentation worthy are:
>>>>>
>>>>> - The new API 's (versioning and sync).
>>>>>
>>>>
>>>> Developer guide (API docs)
>>>>
>>>>
>>>>> - The new task (Metadata sync task)
>>>>> - Metadata Versioning and Metadata Sync as a concept.
>>>>> - Best practices around the Metadata versioning setup.
>>>>>
>>>> - Optimization of the initial setup of new field instances given the
>>>>> central-field deployment strategy
>>>>>
>>>>
>>>> I suggest a new chapter in the user manual called "Metadata
>>>> synchronization" for these.
>>>>
>>>>
>>>> http://dhis2.github.io/dhis2-docs/master/en/user/html/dhis2_user_manual_en.html
>>>>
>>>>
>>>>> - The changes to the existing "Settings" app [which is pretty much
>>>>> part of setting up the Synchronization settings and the ability to create
>>>>> new versions by enabling versioning ]
>>>>>
>>>>
>>>> Add to settings chapter in user guide:
>>>>
>>>> http://dhis2.github.io/dhis2-docs/master/en/user/html/ch23.html
>>>>
>>>>
>>>>> - The changes to the "Data Administration" app where we can now also
>>>>> schedule the metadata sync at the time of choice.
>>>>>
>>>>> Add to data administration chapter in user guide:
>>>>
>>>> http://dhis2.github.io/dhis2-docs/master/en/user/html/ch22.html
>>>>
>>>>
>>>>
>>>>
>>>>> It would be good if you could help us get started.
>>>>>
>>>>>
>>>> regards,
>>>>
>>>> Lars
>>>>
>>>>
>>>>> --
>>>>> With Regards
>>>>> Vanya
>>>>> ThoughtWorks Technologies
>>>>> Hyderabad
>>>>>
>>>>> --Stay Hungry Stay Foolish!!
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Lars Helge Øverland
>>>> Lead developer, DHIS 2
>>>> University of Oslo
>>>> Skype: larshelgeoverland
>>>> l...@dhis2.org
>>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>>
>>>>
>>>
>>>
>>> --
>>> 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] DHIS2 Documentation for Metadata Sync and Versioning

2016-06-27 Thread Aamer Mohammed
Hi

We have forked dhis2-docs repo to get started with the documentation for
the new features. However when we try to build the just cloned repo with
apache maven as mentioned in
http://dhis2.github.io/dhis2-docs/2.22/en/implementer/html/apas09.html

we are getting below error
--
[ERROR] Failed to execute goal
com.agilejava.docbkx:docbkx-maven-plugin:2.0.17:generate-html
(chunked-html-docs-implementer) on project dhis-documentation-docbook:
Failed to transform dhis2_implementation_guide_en.xml.
org.xml.sax.SAXParseException; systemId:
file:///Users/aamerm/Documents/oca/dhis2docs/dhis2-docs/src/docbkx/en/dhis2_implementation_guide_en.xml;
lineNumber: 35; columnNumber: 68; An 'include' failed, and no 'fallback'
element was found. -> [Help 1]
---

Are there any other steps apart from the ones mentioned in readme. Please
suggest.

Thanks
Aamer.



On Tue, Jun 7, 2016 at 10:48 AM, Vanya Seth  wrote:

> Thanks for the information Lars.
>
> Regards
> Vanya
>
> On Tue, Jun 7, 2016 at 7:26 AM, Lars Helge Øverland 
> wrote:
>
>> Hi Vanya,
>>
>> thanks for taking the time to document this.
>>
>> Just some suggestions for your question on where to put what:
>>
>>
>>> As we understand that there are 3 manuals
>>>
>>> - Developer guide
>>> - User guide
>>> - Implementor guide
>>>
>>> When we do the documentation are we targeting all these guides?
>>>
>>> Some key aspects that we believe are documentation worthy are:
>>>
>>> - The new API 's (versioning and sync).
>>>
>>
>> Developer guide (API docs)
>>
>>
>>> - The new task (Metadata sync task)
>>> - Metadata Versioning and Metadata Sync as a concept.
>>> - Best practices around the Metadata versioning setup.
>>>
>> - Optimization of the initial setup of new field instances given the
>>> central-field deployment strategy
>>>
>>
>> I suggest a new chapter in the user manual called "Metadata
>> synchronization" for these.
>>
>>
>> http://dhis2.github.io/dhis2-docs/master/en/user/html/dhis2_user_manual_en.html
>>
>>
>>> - The changes to the existing "Settings" app [which is pretty much part
>>> of setting up the Synchronization settings and the ability to create new
>>> versions by enabling versioning ]
>>>
>>
>> Add to settings chapter in user guide:
>>
>> http://dhis2.github.io/dhis2-docs/master/en/user/html/ch23.html
>>
>>
>>> - The changes to the "Data Administration" app where we can now also
>>> schedule the metadata sync at the time of choice.
>>>
>>> Add to data administration chapter in user guide:
>>
>> http://dhis2.github.io/dhis2-docs/master/en/user/html/ch22.html
>>
>>
>>
>>
>>> It would be good if you could help us get started.
>>>
>>>
>> regards,
>>
>> Lars
>>
>>
>>> --
>>> With Regards
>>> Vanya
>>> ThoughtWorks Technologies
>>> Hyderabad
>>>
>>> --Stay Hungry Stay Foolish!!
>>>
>>
>>
>>
>> --
>> Lars Helge Øverland
>> Lead developer, DHIS 2
>> University of Oslo
>> Skype: larshelgeoverland
>> l...@dhis2.org
>> http://www.dhis2.org 
>>
>>
>
>
> --
> 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


[Dhis2-devs] Issue with DHIS event capture page - 2.24

2016-06-23 Thread Aamer Mohammed
Hi

We are on the latest build from trunk, 23409. On opening the event capture
page, we are unable to register any event as the data elements are not
showing. See screenshot below.
[image: Inline image 1]

Is anyone else facing this issue?

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] Plan for merging in trunk for 2.24

2016-06-18 Thread Aamer Mohammed
Hi Mark,

Thanks a lot. Will keep you posted :)

Regards
Aamer.


On Sat, Jun 18, 2016 at 2:51 PM, Mark Polak  wrote:

> Hey Mohammed,
>
> If you ment a pull request on github then yes a pull request would suffice
> ;)
>
> We can take care of the merging/reviewing of your pull request and
> deploying it so it's part of the core product.
>
> Regards,
>
> Mark
>
> On Sat, Jun 18, 2016 at 7:40 AM, Aamer Mohammed 
> wrote:
>
>> Hi Lars,
>>
>> We also have changes to one of the screens in settings-app, for which the
>> source code is in a git repo. I wanted to understand on how to move ahead
>> with these changes. I hope that submitting a pull request when we send the
>> launchpad details would suffice. Let us know your thoughts on this.
>>
>> Thanks
>> Aamer.
>>
>> On Fri, Jun 17, 2016 at 4:27 PM, Lars Helge Øverland 
>> wrote:
>>
>>>
>>> Thanks. Projected release date is July 1 (alternatively July 4).
>>>
>>>
>>> Lars
>>>
>>>
>>> On Fri, Jun 17, 2016 at 12:49 PM, Vanya Seth 
>>> wrote:
>>>
>>>> Awesome. Thanks a lot.
>>>>
>>>> Will keep you posted.
>>>>
>>>> Regards
>>>> Vanya
>>>>
>>>> On Fri, Jun 17, 2016 at 4:16 PM, Lars Helge Øverland 
>>>> wrote:
>>>>
>>>>> Hi Vanya,
>>>>>
>>>>> that is great. Thanks for the effort.
>>>>>
>>>>> We have a code freeze on Monday 20th, but we can make an exception for
>>>>> this.
>>>>>
>>>>> Just let us know the link to your branch and when its time for us to
>>>>> review the code.
>>>>>
>>>>> best regards,
>>>>>
>>>>> Lars
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Jun 17, 2016 at 12:36 PM, Vanya Seth 
>>>>> wrote:
>>>>>
>>>>>>
>>>>>> Hi Lars and Team,
>>>>>>
>>>>>> We are closing down on the metadata sync work. We are looking at 22
>>>>>> June for being able to finish the remaining pieces.
>>>>>>
>>>>>> I wanted to understand as to how do we move ahead with the merge into
>>>>>> trunk?
>>>>>>
>>>>>> I see that we can propose for merging with in launchpad itself.
>>>>>> Please let know what makes sense and how to go about it?
>>>>>>
>>>>>> After the merge to trunk, we will continue to test it further and add
>>>>>> automation tests( we are working with Jason Pickering for the same).In 
>>>>>> the
>>>>>> event of any bugs that we uncover during that time, would we be able to
>>>>>> port those fixes back to trunk?
>>>>>>
>>>>>> It would be good if you could keep us in loop for the various
>>>>>> milestone dates that the  DHIS core team is going through.
>>>>>>
>>>>>> --
>>>>>> With Regards
>>>>>> Vanya
>>>>>> ThoughtWorks Technologies
>>>>>> Hyderabad
>>>>>>
>>>>>> --Stay Hungry Stay Foolish!!
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Lars Helge Øverland
>>>>> Lead developer, DHIS 2
>>>>> University of Oslo
>>>>> Skype: larshelgeoverland
>>>>> l...@dhis2.org
>>>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> With Regards
>>>> ThoughtWorks Technologies
>>>> Hyderabad
>>>>
>>>> --Stay Hungry Stay Foolish!!
>>>>
>>>
>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> l...@dhis2.org
>>> http://www.dhis2.org <https://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
>>
>>
>
>
> --
> Regards,
>
>
> Mark Polak
> Software developer, DHIS 2
> University of Oslo
> http://www.dhis2.org <https://www.dhis2.org/>
> m...@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] Plan for merging in trunk for 2.24

2016-06-17 Thread Aamer Mohammed
Hi Lars,

We also have changes to one of the screens in settings-app, for which the
source code is in a git repo. I wanted to understand on how to move ahead
with these changes. I hope that submitting a pull request when we send the
launchpad details would suffice. Let us know your thoughts on this.

Thanks
Aamer.

On Fri, Jun 17, 2016 at 4:27 PM, Lars Helge Øverland  wrote:

>
> Thanks. Projected release date is July 1 (alternatively July 4).
>
>
> Lars
>
>
> On Fri, Jun 17, 2016 at 12:49 PM, Vanya Seth 
> wrote:
>
>> Awesome. Thanks a lot.
>>
>> Will keep you posted.
>>
>> Regards
>> Vanya
>>
>> On Fri, Jun 17, 2016 at 4:16 PM, Lars Helge Øverland 
>> wrote:
>>
>>> Hi Vanya,
>>>
>>> that is great. Thanks for the effort.
>>>
>>> We have a code freeze on Monday 20th, but we can make an exception for
>>> this.
>>>
>>> Just let us know the link to your branch and when its time for us to
>>> review the code.
>>>
>>> best regards,
>>>
>>> Lars
>>>
>>>
>>>
>>>
>>> On Fri, Jun 17, 2016 at 12:36 PM, Vanya Seth 
>>> wrote:
>>>

 Hi Lars and Team,

 We are closing down on the metadata sync work. We are looking at 22
 June for being able to finish the remaining pieces.

 I wanted to understand as to how do we move ahead with the merge into
 trunk?

 I see that we can propose for merging with in launchpad itself. Please
 let know what makes sense and how to go about it?

 After the merge to trunk, we will continue to test it further and add
 automation tests( we are working with Jason Pickering for the same).In the
 event of any bugs that we uncover during that time, would we be able to
 port those fixes back to trunk?

 It would be good if you could keep us in loop for the various milestone
 dates that the  DHIS core team is going through.

 --
 With Regards
 Vanya
 ThoughtWorks Technologies
 Hyderabad

 --Stay Hungry Stay Foolish!!

>>>
>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> l...@dhis2.org
>>> http://www.dhis2.org 
>>>
>>>
>>
>>
>> --
>> With Regards
>> ThoughtWorks Technologies
>> Hyderabad
>>
>> --Stay Hungry Stay Foolish!!
>>
>
>
>
> --
> 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


[Dhis2-devs] Logging for Metadata sync feature

2016-06-14 Thread Aamer Mohammed
Hi Lars,

We are using log4j.properties file instead of 'Log4JLogConfigInitializer'
for metadata sync logging purpose. The FILE parameter of FileAppender in
log4j.properties needs the value of DHIS2_HOME environment variable to save
the metadata sync log in the same folder location as that of the other
logs. We are creating a system property specified in VM options when
starting the DHIS server to get the value of environment variable and
log4j.properties file can use that property.

We would be mentioning this in the documentation as well. Would like to
hear your thoughts regarding this.

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] Implementing the anonymous events data push feature

2016-05-12 Thread Aamer Mohammed
Hi Lars/Morten,

We have been working on implementing the anonymous events data push feature
as part of our requirement. This is currently in testing and we are
planning to merge this along with the metadata sync and versioning
functionality. We see that there is already a blueprint for the anonymous
events data push feature.
https://blueprints.launchpad.net/dhis2/+spec/event-sync

Currently the code is in our branch. Let us know your thoughts regarding
this. If required we can discuss more about it on our call when we discuss
about the metadata sync and versioning release plan.

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] Status of ImportSummaries in /api/events

2016-05-11 Thread Aamer Mohammed
Thanks Morten for the insight. But we are also on a branch forked off on
2.23 and it is not giving any WARNING kind of status in our case. Any
thoughts please?


On Thu, May 12, 2016 at 11:46 AM, Morten Olav Hansen 
wrote:

> Hi
>
> I agree this is confusing, but I think this is also the case in our old
> importer. I'm not sure if we want to change it at this point (as we don't
> want to break any third party clients out there).
>
> That said, as you might know, we changed the approach a bit in our new
> importer, and it is much better at these kind of issues (in your case it
> would give status=WARNING which means please have a closer look at the
> report, or ERROR if all failed).
>
> We are hoping to have proper web-api versioning coming in 2.24, which
> means we can potentially clean up these kinds of issues (but that part is
> not started yet, so let's see).
>
> @Abyot: are you using this returned status for anything in your EC/TC apps?
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, May 12, 2016 at 12:52 PM, Aamer Mohammed 
> wrote:
>
>> Hi
>>
>> We are using /api/events to post event related data and it is being
>> uploaded successfully. The api returns a response of type ImportSummaries
>> which has the status of ImportSummary along with the count of data which is
>> imported/updated.
>> In case of any conflicts being reported in ImportSummary, we observe that
>> the status still shows as SUCCESS.
>>
>> -
>> ImportSummaries {
>> importSummaries = [ImportSummary {
>> status = SUCCESS,
>> description = 'null',
>> importCount = [imports = 2, updates = 0, ignores = 0],
>> conflicts = [ImportConflict {
>> object = 'Illegal category option identifier: U8vu31ybiD5', value =
>>   'U8vu31ybiD5' }],
>> dataSetComplete = 'null',
>> reference = 'jLBehWyIspM',
>> href = '
>> http://msfocamdsynchq.twhosted.com/api/events/jLBehWyIspM'
>> }]
>> }
>> --
>> Is this not an error because the complete import of the event data has
>> not happened. Please suggest.
>>
>> 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] Status of ImportSummaries in /api/events

2016-05-11 Thread Aamer Mohammed
Hi

We are using /api/events to post event related data and it is being
uploaded successfully. The api returns a response of type ImportSummaries
which has the status of ImportSummary along with the count of data which is
imported/updated.
In case of any conflicts being reported in ImportSummary, we observe that
the status still shows as SUCCESS.

-
ImportSummaries {
importSummaries = [ImportSummary {
status = SUCCESS,
description = 'null',
importCount = [imports = 2, updates = 0, ignores = 0],
conflicts = [ImportConflict {
object = 'Illegal category option identifier: U8vu31ybiD5', value =
'U8vu31ybiD5' }],
dataSetComplete = 'null',
reference = 'jLBehWyIspM',
href = '
http://msfocamdsynchq.twhosted.com/api/events/jLBehWyIspM'
}]
}
--
Is this not an error because the complete import of the event data has not
happened. Please suggest.

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] Issue when using 2.23 Event Capture

2016-05-10 Thread Aamer Mohammed
Hi

We are using the latest version of 2.23 (revision #22911) When using 'Event
capture' functionality, we found the below issue.
We created a program without registration and attached category combination
of type attribute to it. In the Event Capture page, upon selecting the
program and the option present in the category combo, we can create an
event, enter the data and save it successfully.
But after reselecting the same program and the option in category combo for
which we saved the data previously, we are not able to see the data in the
event capture page. We can see that the data is saved in
'trackedentitydatavalue' table but the event capture page does not show it
up. If the program is not associated with any category combo and is
'default' then we can see the data properly. Did anyone face this issue
earlier? Is this a known issue?
Please suggest.


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] Issue with /api/reportTables api

2016-04-19 Thread Aamer Mohammed
Hi Lars,

Thanks for the quick fix. Could you backport it to 2.21 as well.

Thanks
Aamer.

On Mon, Apr 18, 2016 at 5:48 PM, Lars Helge Øverland  wrote:

>
> Okay now I see what you mean.
>
> Fixed now in trunk and 2.22.
>
> regards,
>
> Lars
>
>
>
>
>
>
>
>
>
> On Mon, Apr 18, 2016 at 1:36 PM, Aamer Mohammed 
> wrote:
>
>> Hi Lars,
>>
>> I checked on demo (Version 2.22, Revision 21999). The reportTable 'ANC
>> Coverages Quarterly' has below data
>> [image: Inline image 1]
>>
>>
>> Whereas the api
>> https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.
>> <https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.html>json
>> is not giving the same data. Could you please check and confirm.
>>
>> Thanks
>> Aamer.
>>
>>
>> On Fri, Apr 15, 2016 at 8:20 PM, Lars Helge Øverland 
>> wrote:
>>
>>> Hi Aamer,
>>>
>>> this seems to work as expected in 2.22 / on demo. Can you try to
>>> reproduce there? If not, can you upgrade to 2.22?
>>>
>>> regards,
>>>
>>> Lars
>>>
>>>
>>> On Tue, Apr 12, 2016 at 4:54 PM, Jan Henrik Øverland <
>>> janhenrik.overl...@gmail.com> wrote:
>>>
>>>> Seems relative periods are rewinded by one period. "This quarter"
>>>> returns Apr-Jun in the pivot table, but Jan-Mar in /data.html. Should be
>>>> fixed.
>>>>
>>>> On 12 April 2016 at 11:06, Aamer Mohammed 
>>>> wrote:
>>>>
>>>>>
>>>>> I checked in play.dhis2.org also. I am seeing the same issue.
>>>>> For the reportTable, "ANC: Coverages Quarterly" last row data is not
>>>>> being retrieved by the api
>>>>> https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.json
>>>>>
>>>>> Is it a known issue?
>>>>>
>>>>>
>>>>> On Tue, Apr 12, 2016 at 1:00 PM, Morten Olav Hansen 
>>>>> wrote:
>>>>>
>>>>>> Hm, I take that back.. seems both are included.. seems strange
>>>>>>
>>>>>> --
>>>>>> Morten
>>>>>>
>>>>>> On Tue, Apr 12, 2016 at 2:29 PM, Morten Olav Hansen >>>>> > wrote:
>>>>>>
>>>>>>> Hm, seems March 2015 is included instead of March 2016... not sure
>>>>>>> if it's a known issue or not, but seems like a bug, Lars will know 
>>>>>>> better
>>>>>>> (maybe it's fixed already)
>>>>>>>
>>>>>>> --
>>>>>>> Morten
>>>>>>>
>>>>>>> On Tue, Apr 12, 2016 at 2:27 PM, Aamer Mohammed <
>>>>>>> aam...@thoughtworks.com> wrote:
>>>>>>>
>>>>>>>> Hi Devs,
>>>>>>>>
>>>>>>>> We have seen the below issue when working with /api/reportTables
>>>>>>>> api. We are using DHIS 2.21 build revision 21058.
>>>>>>>> The reportTable as seen in DHIS app is as below.
>>>>>>>>
>>>>>>>> [image: Inline image 1]
>>>>>>>>
>>>>>>>> However when we try to fetch the data for the same report Table
>>>>>>>> through /api/reportTables//data.html api we are not getting entire
>>>>>>>> data. The data for last row is not retrieved through api (json response
>>>>>>>> attached)
>>>>>>>> Is anyone else facing this issue? Any observations please.
>>>>>>>>
>>>>>>>> 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
>>>>>
>>>>>
>>>>
>>>> ___
>>>> 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
>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>
>>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://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] Issue with /api/reportTables api

2016-04-18 Thread Aamer Mohammed
Hi Lars,

I checked on demo (Version 2.22, Revision 21999). The reportTable 'ANC
Coverages Quarterly' has below data
[image: Inline image 1]


Whereas the api
https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.
<https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.html>json
is not giving the same data. Could you please check and confirm.

Thanks
Aamer.


On Fri, Apr 15, 2016 at 8:20 PM, Lars Helge Øverland  wrote:

> Hi Aamer,
>
> this seems to work as expected in 2.22 / on demo. Can you try to reproduce
> there? If not, can you upgrade to 2.22?
>
> regards,
>
> Lars
>
>
> On Tue, Apr 12, 2016 at 4:54 PM, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> wrote:
>
>> Seems relative periods are rewinded by one period. "This quarter" returns
>> Apr-Jun in the pivot table, but Jan-Mar in /data.html. Should be fixed.
>>
>> On 12 April 2016 at 11:06, Aamer Mohammed 
>> wrote:
>>
>>>
>>> I checked in play.dhis2.org also. I am seeing the same issue.
>>> For the reportTable, "ANC: Coverages Quarterly" last row data is not
>>> being retrieved by the api
>>> https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.json
>>>
>>> Is it a known issue?
>>>
>>>
>>> On Tue, Apr 12, 2016 at 1:00 PM, Morten Olav Hansen 
>>> wrote:
>>>
>>>> Hm, I take that back.. seems both are included.. seems strange
>>>>
>>>> --
>>>> Morten
>>>>
>>>> On Tue, Apr 12, 2016 at 2:29 PM, Morten Olav Hansen 
>>>> wrote:
>>>>
>>>>> Hm, seems March 2015 is included instead of March 2016... not sure if
>>>>> it's a known issue or not, but seems like a bug, Lars will know better
>>>>> (maybe it's fixed already)
>>>>>
>>>>> --
>>>>> Morten
>>>>>
>>>>> On Tue, Apr 12, 2016 at 2:27 PM, Aamer Mohammed <
>>>>> aam...@thoughtworks.com> wrote:
>>>>>
>>>>>> Hi Devs,
>>>>>>
>>>>>> We have seen the below issue when working with /api/reportTables api.
>>>>>> We are using DHIS 2.21 build revision 21058.
>>>>>> The reportTable as seen in DHIS app is as below.
>>>>>>
>>>>>> [image: Inline image 1]
>>>>>>
>>>>>> However when we try to fetch the data for the same report Table
>>>>>> through /api/reportTables//data.html api we are not getting entire
>>>>>> data. The data for last row is not retrieved through api (json response
>>>>>> attached)
>>>>>> Is anyone else facing this issue? Any observations please.
>>>>>>
>>>>>> 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
>>>
>>>
>>
>> ___
>> 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
> http://www.dhis2.org <https://www.dhis2.org/>
>
>


api_data.json
Description: application/json
___
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] Issue with /api/reportTables api

2016-04-12 Thread Aamer Mohammed
I checked in play.dhis2.org also. I am seeing the same issue.
For the reportTable, "ANC: Coverages Quarterly" last row data is not being
retrieved by the api
https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.json

Is it a known issue?


On Tue, Apr 12, 2016 at 1:00 PM, Morten Olav Hansen 
wrote:

> Hm, I take that back.. seems both are included.. seems strange
>
> --
> Morten
>
> On Tue, Apr 12, 2016 at 2:29 PM, Morten Olav Hansen 
> wrote:
>
>> Hm, seems March 2015 is included instead of March 2016... not sure if
>> it's a known issue or not, but seems like a bug, Lars will know better
>> (maybe it's fixed already)
>>
>> --
>> Morten
>>
>> On Tue, Apr 12, 2016 at 2:27 PM, Aamer Mohammed 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> We have seen the below issue when working with /api/reportTables api. We
>>> are using DHIS 2.21 build revision 21058.
>>> The reportTable as seen in DHIS app is as below.
>>>
>>> [image: Inline image 1]
>>>
>>> However when we try to fetch the data for the same report Table through
>>> /api/reportTables//data.html api we are not getting entire data. The
>>> data for last row is not retrieved through api (json response attached)
>>> Is anyone else facing this issue? Any observations please.
>>>
>>> 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] Issue with /api/reportTables api

2016-04-12 Thread Aamer Mohammed
Hi Devs,

We have seen the below issue when working with /api/reportTables api. We
are using DHIS 2.21 build revision 21058.
The reportTable as seen in DHIS app is as below.

[image: Inline image 1]

However when we try to fetch the data for the same report Table through
/api/reportTables//data.html api we are not getting entire data. The
data for last row is not retrieved through api (json response attached)
Is anyone else facing this issue? Any observations please.

Thanks
Aamer.


DHIS_reportTable_api_data
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


Re: [Dhis2-devs] Using DHIS File Store

2016-02-29 Thread Aamer Mohammed
Any thoughts from the community please. Can we leverage File Store to store
data independent of any other object or should it be referenced from other
objects only?

Thanks
Aamer.

On Fri, Feb 26, 2016 at 12:29 PM, Aamer Mohammed 
wrote:

> Hi All,
>
> We need to store specific data related to our application and exploring
> DHIS Data Store and File Store in this regard. We have few queries related
> to DHIS File Store here.
>
> *File Store:*
> We used api/fileResources endpoint for multipart upload POST request and
> the file is saved in the file system as specified in dhis.conf file.
>
> Can anyone suggest on how to get the content of the file uploaded? Hitting
> the endpoint is giving the metadata for the uploaded file and not the
> actual content. Also can anyone clarify the below points in the
> documentation.
> http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s12.html
>
> 
> The contents of a file resources is not directly accessible but is
> referenced from other objects (such as data values) to store binary content
> of virtually unlimited size.
> 
> 1.12.1. File resource constraints
> File resources must be referenced (assigned) from another object in order
> to be persisted in the long term. A file resource which is created but not
> referenced by another object such as a data value is considered to be in
> staging. Any file resources which are in this state and are older than two
> hours will be marked for deletion and will eventually be purged from the
> system.
> -
>
> Any thoughts please.
>
> 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] Using DHIS File Store

2016-02-25 Thread Aamer Mohammed
Hi All,

We need to store specific data related to our application and exploring
DHIS Data Store and File Store in this regard. We have few queries related
to DHIS File Store here.

*File Store:*
We used api/fileResources endpoint for multipart upload POST request and
the file is saved in the file system as specified in dhis.conf file.

Can anyone suggest on how to get the content of the file uploaded? Hitting
the endpoint is giving the metadata for the uploaded file and not the
actual content. Also can anyone clarify the below points in the
documentation.
http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s12.html


The contents of a file resources is not directly accessible but is
referenced from other objects (such as data values) to store binary content
of virtually unlimited size.

1.12.1. File resource constraints
File resources must be referenced (assigned) from another object in order
to be persisted in the long term. A file resource which is created but not
referenced by another object such as a data value is considered to be in
staging. Any file resources which are in this state and are older than two
hours will be marked for deletion and will eventually be purged from the
system.
-

Any thoughts please.

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] Using DHIS Data Store

2016-02-25 Thread Aamer Mohammed
Hi All,

We are thinking of leveraging the existing DHIS Data Store to store
specific data related to our application. We have used api/dataStore
end-point and were able to save/retrieve the data successfully.

We are bit apprehensive with regard to size of data being stored. Any
suggestions from current users of this functionality please?
What is the maximum size one can store in the 'value' column of data store?

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] DHIS2 - Issues with 2.22

2016-02-03 Thread Aamer Mohammed
Hi

I am using two instances of DHIS on 2.22 version and facing the below
issues currently.

*Issue 1:*
*Unable to sync data between the two instances.* I have setup the
synchronization as per
http://dhis2.github.io/dhis2-docs/2.21/en/user/html/ch22s16.html
and trying to save the data. I have cleared the cache but still no values
appear on the other instance. The log says "Server available,
authentication successful and sync successful"

*Issue 2:*
*Unable to do metadata import of users.* When I try importing metadata
without users, the import is successful.
I see this issue is already being tracked through Bug#1538443

*Issue 3:*
Adding newly created data elements to existing data set is throwing
exception.

*Issue 4:*
When a dashboard is shared with user group giving view-only access, the
users of that group are able to edit it as well. The changes are also
reflected across all users.

*Issue 5:*
A dashboard which is shared with a user group in one instance is not
visible to that user group after metadata import. It is visible to admin
only.

Could you please suggest on these?


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