[Dhis2-devs] 2.29 (partial) translation to French
Bonjour DHIS2 devs! As part as a project for a French speaking customer, we are thinking about translating a part of the doc (at minimum the end user manual). I've seen on the git repo: https://github.com/dhis2/dhis2-docs that it works by generating the different format from the source. Would this be of interest for you? If so, any advice for a PR here (ie: anything we should know before starting the work) ? We are still in discussion but in this case our plan would be to be able to release the work under the DHIS2 licence (so open source). Thanks, Martin -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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 Apps - namespace & reload
Hi Adrian, Great! I'll test, at least your experience give me some direction to look at that may explain that problem. Thanks a lot for sharing your experience there. Martin On Wed, Jun 20, 2018 at 8:10 PM, Adrian Quintana wrote: > Hi Martin, > We had some similar issues in the past. The apps deployed in your DHIS2 > instance are not stored in the DB but read from the apps folder (typically > $DHIS2_HOME/apps) when the server starts. If I am not wrong on DHIS2 boot a > list of the deployed apps is created and used until the server shutdowns. > When you uninstalling an app the app folder is deleted and the app is > removed from this list. However, sometimes the uninstalled fails and it > cannot delete the folder (sometimes it manages to delete the folder content > but cannot delete the container folder). Next time you reboot your server > DHIS2 will consider the app as installed in your system. The solution we > found is to delete the folder manually on the server and reboot the DHIS2 > instance so this 'deployed app list' gets populated properly. > > Not sure if this exactly what it is happening to you but I hope at least > it sheds some light... > Best, > > On Wed, Jun 20, 2018 at 8:41 AM, Martin Van Aken > wrote: > >> Hi DHIS2 devs! >> We are starting to deploy more and more DHIS2 apps for various needs. >> This is working really nicely, but we have two problems we can't figure out: >> >>- When deploying apps, even a new version of an existing one, we >>frequently get a *"namespace in use" error.* Even deleting the app & >>reinstalling does not solve it. Any ideas/tips on that? >>- When we do deploy a new version, we often have to *"force the >>reload" *in the browser (CTRL+F5) - any tips on forcing the browser >>to reload when a new version is uploaded? >> >> Any good practice or advice on those topics would be most appreciated! >> >> Martin >> >> -- >> *Martin Van Aken - **Freelance Enthusiast Developer* >> >> Mobile : +32 486 899 652 >> >> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> >> Call me on Skype : vanakenm >> Hang out with me : mar...@joyouscoding.com >> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >> Company website : www.joyouscoding.com >> >> _______ >> 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 >> >> > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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 Apps - namespace & reload
Hi DHIS2 devs! We are starting to deploy more and more DHIS2 apps for various needs. This is working really nicely, but we have two problems we can't figure out: - When deploying apps, even a new version of an existing one, we frequently get a *"namespace in use" error.* Even deleting the app & reinstalling does not solve it. Any ideas/tips on that? - When we do deploy a new version, we often have to *"force the reload" *in the browser (CTRL+F5) - any tips on forcing the browser to reload when a new version is uploaded? Any good practice or advice on those topics would be most appreciated! Martin -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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 Dashboard Apps
Thanks a lot John for those clarification/ideas - agree with most of your points. We would be glad to be part of the process too. Martin On Sat, Apr 28, 2018 at 6:23 PM, John Mukulu wrote: > These are very interesting topics, > > Just weigh in on few of the issues raised. > > 1. Way of widgets identifying themselves, this is actually supposed to be > for all apps, to sort of have unique-app-id that'll unique like android > apps, so names and version can change but it'll stay the same, this is on > jira but not implemented yet, would help tracking and triggering of widgets > and their counterparts apps > > 2. Explore and going full screen limitations, at the moment, there's no > such features, explore simply opens the same widget iframe in separate > page, with scorecard we had to write widget that's actually a fully fledged > widget, so on explore we'd check if it's separate page to give you > impression of full app and impression of just a widget on small page, but > above features would definitely solve this > > 3. Access to global selections, at the moment iframe loaded apps have not > been provided with means of accessing anything outside, because they're > essentially brand new page running as subpage, standards could be put such > that global filters could pass selections to the iframe url of the app and > trigger reload(or abandon iframe idea all together and persue much better > one! Think web components and custom elements) > > 4. Rendering on native mobile apps(android & iOS), because widget are > stand-alone pages but still using utilizing same page sessions cookies and > page header contents, they are presented as a fake new page trying to > impersonate other page, this pause a security dilemma and often forces > nginx to allow such except for browser, but never torelated on native > mobile and hence never working there. > > Most of these concepts are already in past jira issues awaiting priority > to be picked up, but should you have interesting in innovating there, three > major things to solve > > 1. Abandoning iframe in favor of web components (but keeping airframe > simplicity of integration) - solve global filters accesibility and other in > memory info, solve security for android, allow distinction of states(full > or widget) > > 2. Add app property in manifest for appid and make app urls use app ids > with support for accepting more parameters > > 3. Add property in widget for corresponding appids for widgets to allow > explore by reference to apps or prompting install when absent(app id would > guarantee this) > > HISP Tanzania can help further brainstorming and potential solutions, let > me know if you're embarking on this. > > And Sorry for long paragraphs! > > John Francis Mukulu > Software Architect, HISPTZ > http://hisptanzania.org/ > > > On Fri, Apr 27, 2018, 15:53 Martin Van Aken > wrote: > >> Thanks for your answer - any way to specify where the "explore" link >> should lead: >> >> >> this would allow my app to show a small part as an iFrame, then be called >> in full screen on click (like the Pivot tables & chart works in the >> Dashboard right now) >> >> Martin >> >> On Fri, Apr 27, 2018 at 10:47 AM, Edoardo Sabadelli >> wrote: >> >>> Not exactly, the content in the iframe is usable from within the box >>> in the dashboard. >>> There isn't a way of going full screen at the moment, but it can be >>> easily added. >>> >>> On Thu, Apr 26, 2018 at 5:21 PM, Martin Van Aken >>> wrote: >>> > OK, so it will render the "main" page (as refered in the manifest) as >>> an >>> > iframe there, with clicking on it leading to the "full page" app, >>> correct ? >>> > This being said, looks like something I could test easily. >>> > >>> > Martin >>> > >>> > On Thu, Apr 26, 2018 at 11:28 AM, Edoardo Sabadelli >> > >>> > wrote: >>> >> >>> >> Hi Martin, >>> >> >>> >> the dashboard widgets/apps, listed under the Apps section in the >>> >> dashboard item selector, are rendered in the same way as before. >>> >> They are loaded in an iframe in a box added to the dashboard grid. >>> >> This is also to ensure existing apps can still work in the new >>> Dashboards >>> >> app. >>> >> >>> >> As for distinguishing between a full screen and a "widget" app, there >>> >> isn't anything in
Re: [Dhis2-devs] DHIS2 Dashboard Apps
Thanks for your answer - any way to specify where the "explore" link should lead: this would allow my app to show a small part as an iFrame, then be called in full screen on click (like the Pivot tables & chart works in the Dashboard right now) Martin On Fri, Apr 27, 2018 at 10:47 AM, Edoardo Sabadelli wrote: > Not exactly, the content in the iframe is usable from within the box > in the dashboard. > There isn't a way of going full screen at the moment, but it can be > easily added. > > On Thu, Apr 26, 2018 at 5:21 PM, Martin Van Aken > wrote: > > OK, so it will render the "main" page (as refered in the manifest) as an > > iframe there, with clicking on it leading to the "full page" app, > correct ? > > This being said, looks like something I could test easily. > > > > Martin > > > > On Thu, Apr 26, 2018 at 11:28 AM, Edoardo Sabadelli > > wrote: > >> > >> Hi Martin, > >> > >> the dashboard widgets/apps, listed under the Apps section in the > >> dashboard item selector, are rendered in the same way as before. > >> They are loaded in an iframe in a box added to the dashboard grid. > >> This is also to ensure existing apps can still work in the new > Dashboards > >> app. > >> > >> As for distinguishing between a full screen and a "widget" app, there > >> isn't anything in place as far as I know. > >> > >> One way is to use a responsive layout in your app, to ensure the > >> content fits and is usable in both full screen and the small widget > >> box. > >> > >> I didn't work with widget apps, so hopefully someone in the community > >> who has done that can help. > >> > >> Cheers, > >> > >> On Thu, Apr 26, 2018 at 10:35 AM, Martin Van Aken > >> wrote: > >> > Hi! > >> > We've been working with DHIS2 Apps for a while now, and found the > >> > general > >> > experience (as developers) pretty good with the d2 + React combo. > >> > Something > >> > I could not find info about is how the different kind of apps change, > >> > especially the DASHBOARD_WIDGET one - does that means that an app of > >> > this > >> > kind will be rendered as a box in the main view? If so, how to specify > >> > the > >> > part that should go there vs for example a full sized page after once > >> > clicked? > >> > > >> > Any doc or example on this would be great. > >> > > >> > As I'm there - thanks to the team there to provide a nice to use > >> > extension > >> > point in the form of webapps - much appreciated! > >> > > >> > Martin > >> > > >> > -- > >> > Martin Van Aken - Freelance Enthusiast Developer > >> > > >> > Mobile : +32 486 899 652 > >> > > >> > Follow me on Twitter : @martinvanaken > >> > Call me on Skype : vanakenm > >> > Hang out with me : mar...@joyouscoding.com > >> > Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken > >> > Company website : www.joyouscoding.com > >> > > >> > ___ > >> > 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 > >> > >> -- > >> Edoardo Sabadelli > >> DHIS 2 > >> University of Oslo > >> edoa...@dhis2.org > >> http://www.dhis2.org > > > > > > > > > > -- > > Martin Van Aken - Freelance Enthusiast Developer > > > > Mobile : +32 486 899 652 > > > > Follow me on Twitter : @martinvanaken > > Call me on Skype : vanakenm > > Hang out with me : mar...@joyouscoding.com > > Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken > > Company website : www.joyouscoding.com > > -- > Edoardo Sabadelli > DHIS 2 > University of Oslo > edoa...@dhis2.org > http://www.dhis2.org > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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 Dashboard Apps
OK, so it will render the "main" page (as refered in the manifest) as an iframe there, with clicking on it leading to the "full page" app, correct ? This being said, looks like something I could test easily. Martin On Thu, Apr 26, 2018 at 11:28 AM, Edoardo Sabadelli wrote: > Hi Martin, > > the dashboard widgets/apps, listed under the Apps section in the > dashboard item selector, are rendered in the same way as before. > They are loaded in an iframe in a box added to the dashboard grid. > This is also to ensure existing apps can still work in the new Dashboards > app. > > As for distinguishing between a full screen and a "widget" app, there > isn't anything in place as far as I know. > > One way is to use a responsive layout in your app, to ensure the > content fits and is usable in both full screen and the small widget > box. > > I didn't work with widget apps, so hopefully someone in the community > who has done that can help. > > Cheers, > > On Thu, Apr 26, 2018 at 10:35 AM, Martin Van Aken > wrote: > > Hi! > > We've been working with DHIS2 Apps for a while now, and found the general > > experience (as developers) pretty good with the d2 + React combo. > Something > > I could not find info about is how the different kind of apps change, > > especially the DASHBOARD_WIDGET one - does that means that an app of this > > kind will be rendered as a box in the main view? If so, how to specify > the > > part that should go there vs for example a full sized page after once > > clicked? > > > > Any doc or example on this would be great. > > > > As I'm there - thanks to the team there to provide a nice to use > extension > > point in the form of webapps - much appreciated! > > > > Martin > > > > -- > > Martin Van Aken - Freelance Enthusiast Developer > > > > Mobile : +32 486 899 652 > > > > Follow me on Twitter : @martinvanaken > > Call me on Skype : vanakenm > > Hang out with me : mar...@joyouscoding.com > > Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken > > Company website : www.joyouscoding.com > > > > ___ > > 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 > > -- > Edoardo Sabadelli > DHIS 2 > University of Oslo > edoa...@dhis2.org > http://www.dhis2.org > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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 Dashboard Apps
Hi! We've been working with DHIS2 Apps for a while now, and found the general experience (as developers) pretty good with the d2 + React combo. Something I could not find info about is how the different kind of apps change, especially the DASHBOARD_WIDGET one - does that means that an app of this kind will be rendered as a box in the main view? If so, how to specify the part that should go there vs for example a full sized page after once clicked? Any doc or example on this would be great. As I'm there - thanks to the team there to provide a nice to use extension point in the form of webapps - much appreciated! Martin -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] [d2 lib] - API call failing with "Server connection failed for API request"
Hi, Thanks, looks like our mails passed each other. You are right, but the "new" was missing from the doc too hence my mistake - my thanks again for your followup! Martin On Wed, Feb 28, 2018 at 4:03 PM, Edoardo Sabadelli wrote: > Hi Martin > > I don't see the "new" in the code you posted. > > It should be: > const req = new d2.analytics.request() ... > > -- > Edoardo Sabadelli > Software developer, DHIS 2 > University of Oslo > edoa...@dhis2.org > http://www.dhis2.org > > On Feb 28, 2018 3:21 PM, "Martin Van Aken" > wrote: > > Hello again Edoardo & d2 team, > I just tested the d2 29x version for the analytics. My problem is I don't > manage to make the simplest example work. I took an analytics query working > in the REST API and tried to convert it to d2: > > getAnalytics() { > return getInstance().then(d2 => { > const req = d2.analytics.request() > .withProgram('jqKm7VLgdzL') > .addDataDimension(['fyKddt8DF3P', 'RH9knJBq3gv', 'GbtVi9hJhl1', > 'pCU50gRMGQh', 'el1mbPDIDSD', 'sn3PEvqjGPp', 'jsZgVNf1fuR']) > .addPeriodDimension([2016, 2017, 2018]) > .addOrgUnitDimension(['UpjTv540YGw']); > > d2.analytics.events.getQuery(req).then(console.log) > }); > } > > > (this is closely following the example here: > http://dhis2.github.io/d2/module-analytics.AnalyticsEvents.html) > > This fails with a "Cannot call a class as a function AnalyticsRequest.js > :25 > <http://localhost:3000/home/martin/code/dhis2/unicef-va-reports/node_modules/d2/lib/analytics/AnalyticsRequest.js>" > message, on the very first line about the request (looks like request() is > not returning what it expect). Any clue? > > Martin > > On Fri, Feb 23, 2018 at 12:31 PM, Edoardo Sabadelli > wrote: > >> On Thu, Feb 22, 2018 at 10:14 AM, Edoardo Sabadelli >> wrote: >> >> > Still it will be much easier to build analytics requests with >> d2.analytics. >> >> Support for analytics and geofeatures requests in d2 is out! >> >> d2@29.0.2 >> >> Check it out! >> -- >> Edoardo Sabadelli >> DHIS 2 >> University of Oslo >> edoa...@dhis2.org >> http://www.dhis2.org >> > > > > -- > *Martin Van Aken - **Freelance Enthusiast Developer* > > Mobile : +32 486 899 652 > > Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> > Call me on Skype : vanakenm > Hang out with me : mar...@joyouscoding.com > Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken > Company website : www.joyouscoding.com > > > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] [d2 lib] - API call failing with "Server connection failed for API request"
Ok, sorry, figure it out, just require a "new" as Request is a class: const req = new d2.analytics.request() .withProgram('jqKm7VLgdzL') .addDataDimension(['fyKddt8DF3P', 'RH9knJBq3gv', 'GbtVi9hJhl1', 'pCU50gRMGQh', 'el1mbPDIDSD', 'sn3PEvqjGPp', 'jsZgVNf1fuR']) .addPeriodDimension([2016, 2017, 2018]) .addOrgUnitDimension(['UpjTv540YGw']); But this falls back to the same problem as before - getting a server error ("uncaught exception: Server connection failed for API request:") - despite the exact same request working as a REST call. Martin On Wed, Feb 28, 2018 at 3:20 PM, Martin Van Aken wrote: > Hello again Edoardo & d2 team, > I just tested the d2 29x version for the analytics. My problem is I don't > manage to make the simplest example work. I took an analytics query working > in the REST API and tried to convert it to d2: > > getAnalytics() { > return getInstance().then(d2 => { > const req = d2.analytics.request() > .withProgram('jqKm7VLgdzL') > .addDataDimension(['fyKddt8DF3P', 'RH9knJBq3gv', 'GbtVi9hJhl1', > 'pCU50gRMGQh', 'el1mbPDIDSD', 'sn3PEvqjGPp', 'jsZgVNf1fuR']) > .addPeriodDimension([2016, 2017, 2018]) > .addOrgUnitDimension(['UpjTv540YGw']); > > d2.analytics.events.getQuery(req).then(console.log) > }); > } > > > (this is closely following the example here: http://dhis2.github.io/d2/ > module-analytics.AnalyticsEvents.html) > > This fails with a "Cannot call a class as a function AnalyticsRequest.js > :25 > <http://localhost:3000/home/martin/code/dhis2/unicef-va-reports/node_modules/d2/lib/analytics/AnalyticsRequest.js>" > message, on the very first line about the request (looks like request() is > not returning what it expect). Any clue? > > Martin > > On Fri, Feb 23, 2018 at 12:31 PM, Edoardo Sabadelli > wrote: > >> On Thu, Feb 22, 2018 at 10:14 AM, Edoardo Sabadelli >> wrote: >> >> > Still it will be much easier to build analytics requests with >> d2.analytics. >> >> Support for analytics and geofeatures requests in d2 is out! >> >> d2@29.0.2 >> >> Check it out! >> -- >> Edoardo Sabadelli >> DHIS 2 >> University of Oslo >> edoa...@dhis2.org >> http://www.dhis2.org >> > > > > -- > *Martin Van Aken - **Freelance Enthusiast Developer* > > Mobile : +32 486 899 652 > > Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> > Call me on Skype : vanakenm > Hang out with me : mar...@joyouscoding.com > Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken > Company website : www.joyouscoding.com > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] [d2 lib] - API call failing with "Server connection failed for API request"
Hello again Edoardo & d2 team, I just tested the d2 29x version for the analytics. My problem is I don't manage to make the simplest example work. I took an analytics query working in the REST API and tried to convert it to d2: getAnalytics() { return getInstance().then(d2 => { const req = d2.analytics.request() .withProgram('jqKm7VLgdzL') .addDataDimension(['fyKddt8DF3P', 'RH9knJBq3gv', 'GbtVi9hJhl1', 'pCU50gRMGQh', 'el1mbPDIDSD', 'sn3PEvqjGPp', 'jsZgVNf1fuR']) .addPeriodDimension([2016, 2017, 2018]) .addOrgUnitDimension(['UpjTv540YGw']); d2.analytics.events.getQuery(req).then(console.log) }); } (this is closely following the example here: http://dhis2.github.io/d2/module-analytics.AnalyticsEvents.html) This fails with a "Cannot call a class as a function AnalyticsRequest.js:25 <http://localhost:3000/home/martin/code/dhis2/unicef-va-reports/node_modules/d2/lib/analytics/AnalyticsRequest.js>" message, on the very first line about the request (looks like request() is not returning what it expect). Any clue? Martin On Fri, Feb 23, 2018 at 12:31 PM, Edoardo Sabadelli wrote: > On Thu, Feb 22, 2018 at 10:14 AM, Edoardo Sabadelli > wrote: > > > Still it will be much easier to build analytics requests with > d2.analytics. > > Support for analytics and geofeatures requests in d2 is out! > > d2@29.0.2 > > Check it out! > -- > Edoardo Sabadelli > DHIS 2 > University of Oslo > edoa...@dhis2.org > http://www.dhis2.org > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] [d2 lib] - API call failing with "Server connection failed for API request"
Great! Not sure I'll be able to upgrade there this being said. What DHIS2 version are supported by this D2 version? Martin On Fri, Feb 23, 2018 at 12:31 PM, Edoardo Sabadelli wrote: > On Thu, Feb 22, 2018 at 10:14 AM, Edoardo Sabadelli > wrote: > > > Still it will be much easier to build analytics requests with > d2.analytics. > > Support for analytics and geofeatures requests in d2 is out! > > d2@29.0.2 > > Check it out! > -- > Edoardo Sabadelli > DHIS 2 > University of Oslo > edoa...@dhis2.org > http://www.dhis2.org > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] [d2 lib] - API call failing with "Server connection failed for API request"
You are correct for the error message - now putting back a period means having multiple dimension's - is there any way to put multiple dimension parameters through the object params? I agree this is much better than using a long query string, but just using an array as value does not work - I tried something like: return getInstance().then(d2 => d2.Api.getApi().get('analytics/events/query/jqKm7VLgdzL', { stage: 'tbLC6IHktf0', dimension: ['ou:VAPI4p81HAz;LEVEL-6','xxx'], displayProperty: 'NAME' })); but this is not working. Any clues? Martin On Wed, Feb 21, 2018 at 2:40 PM, Edoardo Sabadelli wrote: > On Wed, Feb 21, 2018 at 11:31 AM, Martin Van Aken > wrote: > > Now I'm trying a event analytics query: > > > > return getInstance().then(d2 => > > d2.Api.getApi().get("/25/analytics/events/query/ > jqKm7VLgdzL?stage=tbLC6IHktf0&dimension:ou:VAPI4p81HAz; > LEVEL-6&displayProperty=NAME")); > > > > And this show an error in the console with "Server connection failed for > > API request" > > > > I've ran the query through the browser & Postman without any problems. > I've > > debugged, the authorization header is correct. > > > > Any clue what could go wrong there? > > Martin, I found one problem, possibly 2 with your code. > The first one is with the dimension parameter you're passing. > > It should be: > > dimension=ou:VAPI4p81HAz;LEVEL-6 > > instead of: > > dimension:ou:VAPI4p81HAz;LEVEL-6 > > The second problem is URL encoding, specifically the ou dimension > query parameter. > The response I get in this case is "409: Dimension ou is present in > query without any valid dimension options." > > It's better to pass the query parameters as a object in the 2nd > parameter of the get, so that the Api class takes care of all the URL > encoding, like this: > > d2.Api.getApi().get('analytics/events/query/jqKm7VLgdzL', { > stage: 'tbLC6IHktf0', > dimension: 'ou:VAPI4p81HAz;LEVEL-6', > displayProperty: 'NAME' > }); > > Once I do this, I get a different error about missing start and end > date, which is ok since this endpoint requires those parameters: > https://docs.dhis2.org/master/en/developer/html/webapi_ > event_analytics.html#webapi_event_analytics_request_query_parameters > > Hope this helps, > -- > Edoardo Sabadelli > DHIS 2 > University of Oslo > edoa...@dhis2.org > http://www.dhis2.org > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] ProgramIndicators questions
Ok - that's not what I wanted to hear but that's quite logical - so probably better in the end. Thanks, Martin On Wed, Feb 21, 2018 at 12:18 PM, Lars Helge Øverland wrote: > > > On 21 February 2018 at 12:12, Martin Van Aken > wrote: > >> Hi Markus & Lars, >> Thanks both for your answers. >> >> Ok so: programIndicators have a more powerful evaluation engine (with the >> d2:condition for example), but indicators can use other indicators. >> What I'm not 100% is the consequence of using a (aggregate) indicator to >> compose program indicators - is it still possible in this case to compute >> values "per event" or will it only work for aggregated values per org unit >> per period? >> >> > No unfortunately not per event. > > > > > >> Martin >> >> On Wed, Feb 21, 2018 at 11:56 AM, Markus Bekken wrote: >> >>> Hey Martin! >>> - You can make composite indicators that consists of other program >>> indicators, but program indicators can not be nested within each other >>> directly. >>> - Yes- program indicator values are always based on the data in the >>> analytics_* tables. >>> >>> Markus >>> >>> 21. feb. 2018 kl. 11:03 skrev Martin Van Aken : >>> >>> Hi DHIS2 dev team! >>> >>> I'm working on a decently large tracker program, and got some questions >>> regarding ProgramIndicators: >>> >>> - It looks like ProgramIndicator can only refer to DataElements, not >>> other ProgramIndicators (like "aggregate" Indicators can) - is there any >>> specific reason for this? Will this constraint be left at some point in the >>> future? Building indicators on top of other indicators is quite handy >>> - Are the programIndicator results linked to running the analytics (when >>> viewing them in the Event Manager app)? I tried to test that one, but was >>> not totally sure of my results (as the pivot table & browser are doing a >>> lot of caching too) >>> >>> Thanks! >>> >>> Martin >>> >>> -- >>> *Martin Van Aken - **Freelance Enthusiast Developer* >>> >>> Mobile : +32 486 899 652 >>> >>> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> >>> Call me on Skype : vanakenm >>> Hang out with me : mar...@joyouscoding.com >>> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >>> Company website : www.joyouscoding.com >>> ___ >>> 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 >>> >>> >>> >> >> >> -- >> *Martin Van Aken - **Freelance Enthusiast Developer* >> >> Mobile : +32 486 899 652 >> >> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> >> Call me on Skype : vanakenm >> Hang out with me : mar...@joyouscoding.com >> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >> Company website : www.joyouscoding.com >> >> ___ >> 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/> > > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] ProgramIndicators questions
Hi Markus & Lars, Thanks both for your answers. Ok so: programIndicators have a more powerful evaluation engine (with the d2:condition for example), but indicators can use other indicators. What I'm not 100% is the consequence of using a (aggregate) indicator to compose program indicators - is it still possible in this case to compute values "per event" or will it only work for aggregated values per org unit per period? Martin On Wed, Feb 21, 2018 at 11:56 AM, Markus Bekken wrote: > Hey Martin! > - You can make composite indicators that consists of other program > indicators, but program indicators can not be nested within each other > directly. > - Yes- program indicator values are always based on the data in the > analytics_* tables. > > Markus > > 21. feb. 2018 kl. 11:03 skrev Martin Van Aken : > > Hi DHIS2 dev team! > > I'm working on a decently large tracker program, and got some questions > regarding ProgramIndicators: > > - It looks like ProgramIndicator can only refer to DataElements, not other > ProgramIndicators (like "aggregate" Indicators can) - is there any specific > reason for this? Will this constraint be left at some point in the future? > Building indicators on top of other indicators is quite handy > - Are the programIndicator results linked to running the analytics (when > viewing them in the Event Manager app)? I tried to test that one, but was > not totally sure of my results (as the pivot table & browser are doing a > lot of caching too) > > Thanks! > > Martin > > -- > *Martin Van Aken - **Freelance Enthusiast Developer* > > Mobile : +32 486 899 652 > > Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> > Call me on Skype : vanakenm > Hang out with me : mar...@joyouscoding.com > Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken > Company website : www.joyouscoding.com > ___ > 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 > > > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] [d2 lib] - API call failing with "Server connection failed for API request"
Hi, I'm using d2 to fetch some data inside a DHIS2 app. Everything looks to be working well, until I have a query using event analytics. As the d2 lib don't have models yet (I think) for this, I'm making direct calls using get, for example: return getInstance().then(d2 => d2.Api.getApi().get("events?program=jqKm7VLgdzL")) This works perfectly, I see the query go through the network view, and the values get back Now I'm trying a event analytics query: return getInstance().then(d2 => d2.Api.getApi().get("/25/analytics/events/query/jqKm7VLgdzL?stage=tbLC6IHktf0&dimension:ou:VAPI4p81HAz;LEVEL-6&displayProperty=NAME")); And this show an error in the console with "Server connection failed for API request" I've ran the query through the browser & Postman without any problems. I've debugged, the authorization header is correct. Any clue what could go wrong there? Thanks! Martin -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] ProgramIndicators questions
Hi DHIS2 dev team! I'm working on a decently large tracker program, and got some questions regarding ProgramIndicators: - It looks like ProgramIndicator can only refer to DataElements, not other ProgramIndicators (like "aggregate" Indicators can) - is there any specific reason for this? Will this constraint be left at some point in the future? Building indicators on top of other indicators is quite handy - Are the programIndicator results linked to running the analytics (when viewing them in the Event Manager app)? I tried to test that one, but was not totally sure of my results (as the pivot table & browser are doing a lot of caching too) Thanks! Martin -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Program Indicator using data from multiple event stages to find TEA
Ok, thanks for the clarification. I'll check our concrete situation and see what are our options there. Martin On Wed, Feb 14, 2018 at 10:39 AM, Markus Bekken wrote: > Hi Martin, > to my knowledge the parenthesis work in general, with the exception of > passing parenthesis into the d2:condition() function: DHIS2-2813 > <https://jira.dhis2.org/browse/DHIS2-2813> > > You would be able to write parenthesis in program indicators expressions > and filters. What is not supported is nested d2: function calls. > > Please report if you experience problems with parenthesis outside the > known issue above. > > Markus > > 14. feb. 2018 kl. 08:30 skrev Martin Van Aken : > > Hi everyone. > > Thanks Lars for the answer - we face problems with priorities (hence > needing parenthesis) there too. Glad to know this will be solved, but what > would be the possible workarounds in the meantime? I wanted to decompose in > different indicators, but programIndicators can't use other > programIndicators (like the "aggregate" indicators does), correct? Any > other way we would apply our proper priorities ? > > Thanks, > > Martin > > On Wed, Feb 14, 2018 at 8:18 AM, Lars Helge Øverland > wrote: > >> HI Aaron, >> >> that sounds good, glad to hear you got cross-stage calculations to work. >> >> Unfortunately program indicator expressions do not support nested >> parentheses/functions - we plan to develop a new version of our program >> indicator parser which will be more flexible in this regard. >> >> regards, >> >> Lars >> >> >> On 13 February 2018 at 20:56, Aaron C White >> wrote: >> >>> Thanks, Lars and Preeti. I checked the indicator formulation and found >>> a problem with a d2:condition() statement using a text option set value. I >>> converted it to an integer and was able to see the calculated data across >>> stages. I think it might be related to the parentheses issue inside the >>> condition as a few other recent emails have suggested. How should the >>> condition be formulated if you also need to check a text option inside that >>> condition? Using double quotes on the outside of the formulation does not >>> seem to work properly. i.e. d2:condition("my_de == '3'", true, false) >>> >>> Aaron >>> >>> >>> -- >>> Aaron C. White >>> 919.522.5585 <(919)%20522-5585> >>> >>> On Mon, Feb 12, 2018 at 1:34 AM, Lars Helge Øverland >>> wrote: >>> >>>> Hi Aaron, >>>> >>>> from your description I think enrollment type program indicators will >>>> be appropriate. Can you tell us a bit more about your usecase? I am >>>> assuming you want information from two different stages in the *same* >>>> program. Do you have multiple enrollments per person (TEI) in your program? >>>> If not I think enrollment indicators will do the job. >>>> >>>> regards, >>>> >>>> Lars >>>> >>>> >>>> On 8 February 2018 at 21:49, Aaron C White >>>> wrote: >>>> >>>>> Hi all, >>>>> >>>>> I'm trying to create a program indicator (or just query to the API >>>>> directly) that evaluates conditions on data elements from two different >>>>> event stages and then be used to find a relevant tracked entity attribute. >>>>> >>>>> From the docs, it seems that a program indicator type of enrollment >>>>> would be most appropriate, but this only works at the aggregate level and >>>>> not at an individual tracked entity instance level. When I use an event >>>>> type indicator, I don't receive any values back because the indicator >>>>> definition contains data from two stages. >>>>> >>>>> Am I correct in this assessment? Any thoughts on how to get around >>>>> this? >>>>> >>>>> I've been testing on a v2.28 instance. A similar reference example >>>>> from the demo server would be the "Weight gain(in g) between birth and >>>>> last >>>>> postnatal for Child Programme" program indicator. The one change would be >>>>> that I want to see the weight gain for individual TEIs and view a TEA >>>>> based >>>>> on the weight gain amount instead of the average over all tracked entity >>>>> instances. >>>>&g
Re: [Dhis2-devs] Program Indicator using data from multiple event stages to find TEA
Hi everyone. Thanks Lars for the answer - we face problems with priorities (hence needing parenthesis) there too. Glad to know this will be solved, but what would be the possible workarounds in the meantime? I wanted to decompose in different indicators, but programIndicators can't use other programIndicators (like the "aggregate" indicators does), correct? Any other way we would apply our proper priorities ? Thanks, Martin On Wed, Feb 14, 2018 at 8:18 AM, Lars Helge Øverland wrote: > HI Aaron, > > that sounds good, glad to hear you got cross-stage calculations to work. > > Unfortunately program indicator expressions do not support nested > parentheses/functions - we plan to develop a new version of our program > indicator parser which will be more flexible in this regard. > > regards, > > Lars > > > On 13 February 2018 at 20:56, Aaron C White wrote: > >> Thanks, Lars and Preeti. I checked the indicator formulation and found a >> problem with a d2:condition() statement using a text option set value. I >> converted it to an integer and was able to see the calculated data across >> stages. I think it might be related to the parentheses issue inside the >> condition as a few other recent emails have suggested. How should the >> condition be formulated if you also need to check a text option inside that >> condition? Using double quotes on the outside of the formulation does not >> seem to work properly. i.e. d2:condition("my_de == '3'", true, false) >> >> Aaron >> >> >> -- >> Aaron C. White >> 919.522.5585 <(919)%20522-5585> >> >> On Mon, Feb 12, 2018 at 1:34 AM, Lars Helge Øverland >> wrote: >> >>> Hi Aaron, >>> >>> from your description I think enrollment type program indicators will be >>> appropriate. Can you tell us a bit more about your usecase? I am assuming >>> you want information from two different stages in the *same* program. >>> Do you have multiple enrollments per person (TEI) in your program? If not I >>> think enrollment indicators will do the job. >>> >>> regards, >>> >>> Lars >>> >>> >>> On 8 February 2018 at 21:49, Aaron C White >>> wrote: >>> >>>> Hi all, >>>> >>>> I'm trying to create a program indicator (or just query to the API >>>> directly) that evaluates conditions on data elements from two different >>>> event stages and then be used to find a relevant tracked entity attribute. >>>> >>>> From the docs, it seems that a program indicator type of enrollment >>>> would be most appropriate, but this only works at the aggregate level and >>>> not at an individual tracked entity instance level. When I use an event >>>> type indicator, I don't receive any values back because the indicator >>>> definition contains data from two stages. >>>> >>>> Am I correct in this assessment? Any thoughts on how to get around >>>> this? >>>> >>>> I've been testing on a v2.28 instance. A similar reference example >>>> from the demo server would be the "Weight gain(in g) between birth and last >>>> postnatal for Child Programme" program indicator. The one change would be >>>> that I want to see the weight gain for individual TEIs and view a TEA based >>>> on the weight gain amount instead of the average over all tracked entity >>>> instances. >>>> >>>> Thanks in advance, >>>> >>>> Aaron >>>> >>>> -- >>>> Aaron C. White >>>> 919.522.5585 <(919)%20522-5585> >>>> >>>> ___ >>>> 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/> >>> >>> >> > > > -- > 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 > > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Inconsistency between schema and api ?
BTW, I did the test with the collectionName & it works, thanks! On Sun, Jan 7, 2018 at 2:06 PM, Martin Van Aken wrote: > Hello, > Thanks for the clarification. So, I can rely on the fact that the schema > property "collectionName" will be consistent with the actual object field, > correct? > > Just for my curiosity/understanding - while I'm all for API stability (and > not breaking stuff or let say break it carefully), I fail to see how > updating the schema to be consistent would actually break anything ? > > Matin > > On Sat, Jan 6, 2018 at 2:55 PM, Lars Helge Øverland > wrote: > >> Hi Martin, >> >> this is correct and a good observation. >> >> If you look in the source code you can see that we have specified a JSON >> field name directly on the get method: >> >> @JsonProperty( "organisationUnits" ) >> >> https://github.com/dhis2/dhis2-core/blob/master/dhis-2/dhis- >> api/src/main/java/org/hisp/dhis/organisationunit/Organisa >> tionUnitGroup.java >> >> This was done to improve on a bad naming choice ("members") in the past >> and to expose a more sensible name in the API. This is then reflected in >> the schemas API as you observed. We hope to change the Java property name >> in the future but it requires a bit of refactoring. >> >> You can get the name of collections as they are actually rendered in the >> API through the "collectionName" schema property in the mean time. You >> could say that we should have a dedicated consistent schema property for >> the "API field", we could perhaps work on that. >> >> best, >> >> Lars >> >> >> >> >> >> >> >> >> >> On 6 January 2018 at 14:26, Martin Van Aken >> wrote: >> >>> Hello! >>> >>> I'm making a new DHIS2 App and so make use of the API through d2. I >>> think I found an inconsistency between the schema as exposed under >>> api/schemas and the real field returned. >>> >>> Having access to the schema is very handy to directly know for example >>> which field to show & how (as we have access to their property types). >>> >>> - When using organisationUnitGroups, for example >>> https://play.dhis2.org/demo/api/organisationUnitGroups/RXL3lPSK8oG.json >>> we get a field named "organisationUnits" with a list of ids of the linked >>> unit. >>> - But on the schema (https://play.dhis2.org/demo/a >>> pi/schemas/organisationUnitGroup) the link to organisationUnit is >>> actually referenced under the field name "members" >>> >>> There are similar situation for OU (organisationUnitGroups vs just >>> "groups") and probably other. >>> >>> Is it something I'm missing or is that a mistake? If this is a bug, let >>> me know if I can fill a PR (with some direction from the team). >>> >>> Thanks, >>> >>> Martin >>> >>> >>> -- >>> *Martin Van Aken - **Freelance Enthusiast Developer* >>> >>> Mobile : +32 486 899 652 >>> >>> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> >>> Call me on Skype : vanakenm >>> Hang out with me : mar...@joyouscoding.com >>> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >>> Company website : www.joyouscoding.com >>> >>> ___ >>> 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/> >> >> > > > -- > *Martin Van Aken - **Freelance Enthusiast Developer* > > Mobile : +32 486 899 652 > > Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> > Call me on Skype : vanakenm > Hang out with me : mar...@joyouscoding.com > Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken > Company website : www.joyouscoding.com > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Inconsistency between schema and api ?
Hello, Thanks for the clarification. So, I can rely on the fact that the schema property "collectionName" will be consistent with the actual object field, correct? Just for my curiosity/understanding - while I'm all for API stability (and not breaking stuff or let say break it carefully), I fail to see how updating the schema to be consistent would actually break anything ? Matin On Sat, Jan 6, 2018 at 2:55 PM, Lars Helge Øverland wrote: > Hi Martin, > > this is correct and a good observation. > > If you look in the source code you can see that we have specified a JSON > field name directly on the get method: > > @JsonProperty( "organisationUnits" ) > > https://github.com/dhis2/dhis2-core/blob/master/dhis-2/ > dhis-api/src/main/java/org/hisp/dhis/organisationunit/ > OrganisationUnitGroup.java > > This was done to improve on a bad naming choice ("members") in the past > and to expose a more sensible name in the API. This is then reflected in > the schemas API as you observed. We hope to change the Java property name > in the future but it requires a bit of refactoring. > > You can get the name of collections as they are actually rendered in the > API through the "collectionName" schema property in the mean time. You > could say that we should have a dedicated consistent schema property for > the "API field", we could perhaps work on that. > > best, > > Lars > > > > > > > > > > On 6 January 2018 at 14:26, Martin Van Aken > wrote: > >> Hello! >> >> I'm making a new DHIS2 App and so make use of the API through d2. I think >> I found an inconsistency between the schema as exposed under api/schemas >> and the real field returned. >> >> Having access to the schema is very handy to directly know for example >> which field to show & how (as we have access to their property types). >> >> - When using organisationUnitGroups, for example >> https://play.dhis2.org/demo/api/organisationUnitGroups/RXL3lPSK8oG.json >> we get a field named "organisationUnits" with a list of ids of the linked >> unit. >> - But on the schema (https://play.dhis2.org/demo/a >> pi/schemas/organisationUnitGroup) the link to organisationUnit is >> actually referenced under the field name "members" >> >> There are similar situation for OU (organisationUnitGroups vs just >> "groups") and probably other. >> >> Is it something I'm missing or is that a mistake? If this is a bug, let >> me know if I can fill a PR (with some direction from the team). >> >> Thanks, >> >> Martin >> >> >> -- >> *Martin Van Aken - **Freelance Enthusiast Developer* >> >> Mobile : +32 486 899 652 >> >> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> >> Call me on Skype : vanakenm >> Hang out with me : mar...@joyouscoding.com >> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >> Company website : www.joyouscoding.com >> >> ___ >> 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/> > > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Inconsistency between schema and api ?
Hello! I'm making a new DHIS2 App and so make use of the API through d2. I think I found an inconsistency between the schema as exposed under api/schemas and the real field returned. Having access to the schema is very handy to directly know for example which field to show & how (as we have access to their property types). - When using organisationUnitGroups, for example https://play.dhis2.org/demo/api/organisationUnitGroups/RXL3lPSK8oG.json we get a field named "organisationUnits" with a list of ids of the linked unit. - But on the schema ( https://play.dhis2.org/demo/api/schemas/organisationUnitGroup) the link to organisationUnit is actually referenced under the field name "members" There are similar situation for OU (organisationUnitGroups vs just "groups") and probably other. Is it something I'm missing or is that a mistake? If this is a bug, let me know if I can fill a PR (with some direction from the team). Thanks, Martin -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Remove a full level from the pyramid
Thanks a lot, that clarify it. When you say the level should be regenerated, is this some kind of SQL trigger or it is a check/update the app does itself on start ? I was thinking to update those manually too (does not looks like a lot). Your script is actually handy to already check any link between the org unit to be deleted and the rest of the application - I suppose your list of delete should be all links there, so I can use it as a check. Martin On Mon, Sep 18, 2017 at 3:35 PM, Jason Pickering < jason.p.picker...@gmail.com> wrote: > Don't worry about the level. This should be regenerated when you > regenerate the path, but you better check. Otherwise, it should be pretty > simple to assign this with SQL. > > Where the delete_orgunit_with_data function comes in may be more apparent > from the following example which should move all children of Badjia > chiefdom up a level and then deletes Badjia (from the Sierra Leone DB). I > did not include the loop here. > > > Loop over all leaf nodes and move them up a level. > > UPDATE organisationunit > SET parentid = (SELECT organisationunitid from organisationunit > WHERE path = '/ImspTQPwCqd/O6uvpzGd5pu') > WHERE path ~('/ImspTQPwCqd/O6uvpzGd5pu/YuQRtpLP10I') > AND hierarchylevel = 4; > > . Delete the Badjia which no longer has any children. > > sierra-leone=# SELECT * FROM delete_orgunit_with_data('YuQRtpLP10I'); > delete_orgunit_with_data > -- > 1 > (1 row) > > > That SQL would need to be tweaked a bit I think, but maybe its a bit > clearer? > > Regards, > Jason > > > On Sep 18, 2017 15:10, "Martin Van Aken" wrote: > >> Thanks. What I don't know is how the OrgUnitLevel would react - we'll >> need to update those too. I think they are linked through a simple number >> (and not a foreign key to the level table), but I may be wrong. >> >> The script you shared is about deleting all data linked to a specific org >> unit, right ? Not sure how it related to levels. >> >> Martin >> >> On Mon, Sep 18, 2017 at 2:37 PM, Jason Pickering < >> jason.p.picker...@gmail.com> wrote: >> >>> Hi Martin, >>> >>> I do not think we have anything specifically for that, but I think you >>> could write a short script >>> >>> 1) Reassign the direct descendants of the level you want to remove to >>> the desired level. This could be done through the API or SQL I guess. >>> 2) Use this script >>> <https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/delete_orgunit_with_data.sql> >>> to >>> remove the level. You would need to loop through all of the levels to >>> remove of course. >>> 3) Clear the cache and rebuild the orgunit paths. >>> >>> Regards, >>> Jason >>> >>> >>> On Mon, Sep 18, 2017 at 1:22 PM, Martin Van Aken < >>> mar...@joyouscoding.com> wrote: >>> >>>> Hello, >>>> We have a DHIS2 instance we support that already has data (Health >>>> Pyramid, Data Elements, DataValues). The system takes into account a level >>>> that is actually not used by most people and more importantly not by >>>> systems we need to integrate with. >>>> >>>> On a business side, it make sense removing it altogether - I'm >>>> wondering if someone already did something like that and how ? >>>> >>>> I can imagine something such as (supposing last level is 4 and we >>>> remove level 3): >>>> >>>> - Check any data linked to Org Unit of level 3 and backup/delete >>>> - Reattach all org unit of level 4 to their grand parent (level 2) >>>> - Delete level 3 entities >>>> - Regenerate or update the level 4 to 3 >>>> >>>> I suppose this would be easier done in the DB than with the API. >>>> >>>> Anyone with experience or advice on a process like that ? >>>> >>>> Thanks, >>>> >>>> Martin >>>> >>>> -- >>>> *Martin Van Aken - **Freelance Enthusiast Developer* >>>> >>>> Mobile : +32 486 899 652 >>>> >>>> Follow me on Twitter : @martinvanaken >>>> <http://twitter.com/martinvanaken> >>>> Call me on Skype : vanakenm >>>> Hang out with me : mar...@joyouscoding.com >>>> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >>>> Company website : www.joyous
Re: [Dhis2-devs] Remove a full level from the pyramid
Thanks. What I don't know is how the OrgUnitLevel would react - we'll need to update those too. I think they are linked through a simple number (and not a foreign key to the level table), but I may be wrong. The script you shared is about deleting all data linked to a specific org unit, right ? Not sure how it related to levels. Martin On Mon, Sep 18, 2017 at 2:37 PM, Jason Pickering < jason.p.picker...@gmail.com> wrote: > Hi Martin, > > I do not think we have anything specifically for that, but I think you > could write a short script > > 1) Reassign the direct descendants of the level you want to remove to the > desired level. This could be done through the API or SQL I guess. > 2) Use this script > <https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/delete_orgunit_with_data.sql> > to > remove the level. You would need to loop through all of the levels to > remove of course. > 3) Clear the cache and rebuild the orgunit paths. > > Regards, > Jason > > > On Mon, Sep 18, 2017 at 1:22 PM, Martin Van Aken > wrote: > >> Hello, >> We have a DHIS2 instance we support that already has data (Health >> Pyramid, Data Elements, DataValues). The system takes into account a level >> that is actually not used by most people and more importantly not by >> systems we need to integrate with. >> >> On a business side, it make sense removing it altogether - I'm wondering >> if someone already did something like that and how ? >> >> I can imagine something such as (supposing last level is 4 and we remove >> level 3): >> >> - Check any data linked to Org Unit of level 3 and backup/delete >> - Reattach all org unit of level 4 to their grand parent (level 2) >> - Delete level 3 entities >> - Regenerate or update the level 4 to 3 >> >> I suppose this would be easier done in the DB than with the API. >> >> Anyone with experience or advice on a process like that ? >> >> Thanks, >> >> Martin >> >> -- >> *Martin Van Aken - **Freelance Enthusiast Developer* >> >> Mobile : +32 486 899 652 >> >> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> >> Call me on Skype : vanakenm >> Hang out with me : mar...@joyouscoding.com >> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >> Company website : www.joyouscoding.com >> >> ___ >> Mailing list: https://launchpad.net/~dhis2-devs >> Post to : dhis2-devs@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~dhis2-devs >> More help : https://help.launchpad.net/ListHelp >> >> > > > -- > Jason P. Pickering > email: jason.p.picker...@gmail.com > tel:+46764147049 <+46%2076%20414%2070%2049> > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Remove a full level from the pyramid
Hello, We have a DHIS2 instance we support that already has data (Health Pyramid, Data Elements, DataValues). The system takes into account a level that is actually not used by most people and more importantly not by systems we need to integrate with. On a business side, it make sense removing it altogether - I'm wondering if someone already did something like that and how ? I can imagine something such as (supposing last level is 4 and we remove level 3): - Check any data linked to Org Unit of level 3 and backup/delete - Reattach all org unit of level 4 to their grand parent (level 2) - Delete level 3 entities - Regenerate or update the level 4 to 3 I suppose this would be easier done in the DB than with the API. Anyone with experience or advice on a process like that ? Thanks, Martin -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp
Re: [Dhis2-devs] [Dhis2-users] DHIS 2 to support PostgreSQL only?
Hi Lars, Make a lot of sense, and would free time in your team to provide more value (seems you are not lacking ideas). I would say go for it, with maybe dedicated documentation about how to move (even if it's basically using the import/export feature "as is", may be worth a couple of hours to write a step by step guide). Martin On Fri, Sep 8, 2017 at 10:26 AM, Lars Helge Øverland wrote: > Hi all, > > I want to bring up the idea of solely support PostgreSQL for DHIS 2 for > production use to get feedback from the community. > > The DHIS 2 team is seeing clear benefits of moving to PostgreSQL-only. The > main ones are: > > 1. Supporting and testing for more than one database platform is > time-consuming. The majority of DHIS 2 implementations is using PostgreSQL > already. > > 2. PostgreSQL supports advanced geospatial features through PostGIS. We > are already depending on these for the GIS module to work optimally (i.e. > for event clustering in GIS). There are no direct equivalent in e.g. MySQL. > We are also considering using PostGIS data types in main data model. > > 3. PostgreSQL will provide some impressive features which will become very > useful for us in version 10 > <https://wiki.postgresql.org/wiki/New_in_postgres_10> and 11. E.g. native > partitioning, parallel queries, logical replication, foreign tables and > improved query performance will be useful and allow us to develop the next > DHIS 2 analytics solution. > > > We are aware this will be inconvenient for users of other databases such > as MySQL, but there is the option of migrating your database through the > DHIS 2 metadata and data value import-export feature. > > On a technical note, we will keep the Hibernate development framework and > keep supporting the H2 database for unit testing purposes. > > Please let us know your thoughts on this. > > regards, > > Lars > > > > > -- > 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-users > Post to : dhis2-us...@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-users > More help : https://help.launchpad.net/ListHelp > > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Interoperability of ODK & DHIS2
Interesting, thanks! Martin On Fri, Sep 1, 2017 at 10:23 AM, Knut Staring wrote: > Hi Carlos, > > You can also have a look here: > https://github.com/hispindia/dhis-odk-integration > > Knut > > On Wed, Aug 30, 2017 at 11:47 AM, Martin Van Aken > wrote: > >> Hi Carlos, >> We (bluesquarehub.com) have been doing this for several of our customers >> as part as a (commercial) product. While I can't share the code, I'll be >> happy to discuss about the lessons learned, and to better understand your >> needs to see if our cases are similar. >> >> Don't hesitate to contact me if interested. >> >> Regards, >> >> Martin >> >> On Tue, Aug 29, 2017 at 3:24 PM, Carlos Nyembwe >> wrote: >> >>> Hello All >>> >>> I'm starting to do that, now I need a help about the main points what I >>> must set up before using this >>> >>> Regards >>> >>> -- >>> *Carlos Nyembwe* >>> *I'm just a Computer Scientist* >>> >>> *Skype: carloscnk1* >>> *Cell: (+243)813166381 <+243%20813%20166%20381>* >>> *Find me in: | Google Plus <https://plus.google.com/+CarlosNyembwe> | >>> **Linkedin >>> <http://www.linkedin.com/in/carloscnk> | Facebook >>> <https://www.facebook.com/carloscnksys> | Twitter >>> <https://twitter.com/Carlos_CNK> |* >>> >>> ___ >>> 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 >>> >>> >> >> >> -- >> *Martin Van Aken - **Freelance Enthusiast Developer* >> >> Mobile : +32 486 899 652 >> >> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> >> Call me on Skype : vanakenm >> Hang out with me : mar...@joyouscoding.com >> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >> Company website : www.joyouscoding.com >> >> ___ >> 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 <+47%20918%2080%20522> > Skype: knutstar > http://dhis2.org > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Embed chart - 2.24
Thanks Jan & Pooben. I tried to work with the existing JS and managed to get a bit further: http://mydhis2.com/dhis-web-commons\javascripts\ext\ext-all.js"</a>; > http://mydhis2.com/dhis-web-commons/javascripts/plugin/chart.js</a> "> Ext.onReady(function() { DHIS.getChart({ "url": "<a rel="nofollow" href="http://mydhis2.com"">http://mydhis2.com"</a>;, "user": "admin", "password": "password", "id": "pNxjHhHRy6Y" }); }); The problem is now that the calls are being redirected to the login page which of course don't go well. Is there a better way to authenticate? (my CORS exceptions are OK). When i test the individual API calls, they are working (provided I authenticate properly of course). I'll try to use the 2.25 advce from Jan. Martin On Wed, Aug 30, 2017 at 3:02 PM, Jan Henrik Øverland wrote: > Hi Martin, > > Sorry for not offering a complete set of plugins. > > There is a chance that the one for 2.25 will work with 2.24. > > Please follow this example: https://github.com/ > dhis2/pivot-tables-app/blob/v25/plugin.html > > Just replace the link to reporttable.js with http://dhis2-cdn.org/ > v225-1/plugin/reporttable.js > > Then refer to your own pivot table favorites (the "id" param in the > config). > > Hope that helps, if not maybe we could find some time to generate plugins > for 2.24 as well. > > Jan > > On 30 August 2017 at 14:55, Pooben Dass wrote: > >> Hi Martin >> >> I see so what you looking for is the CDN for 2.24? >> >> Do you have a DHIS2.24 version running because then you can access it >> from your dhis server in these location >> ../dhis-web-commons\javascripts\ext\ext-all.js >> ../dhis-web-commons\javascripts\plugin/chart.js >> ../dhis-web-commons\javascripts\ext\resources\css\ext-plugin-gray.css >> >> so something like >> >> >> Regards >> Pooben >> >> On Wed, Aug 30, 2017 at 2:34 PM, Martin Van Aken > > wrote: >> >>> Hi Pooben, >>> Thanks for you answer. The problem is when i click "embed" on a given >>> graph I get something like this: >>> >>> >>> >>> http://dhis2-cdn.org/v22 >>> 4/ext/resources/css/ext-plugin-gray.css" /> >>> http://dhis2-cdn.org/v224/ext/ext-all.js"</a>;> >>> http://dhis2-cdn.org/v224/plugin/chart.js"</a>;> >>> >>> >>> >>> >>> >>> >>> >>> Ext.onReady(function() { >>> >>> DHIS.getChart({ >>> "id": "pNxjHhHRy6Y" >>> }); >>> >>> }); >>> >>> >>> >>> >>> >>> >>> First problem is none of the referenced JS or CSS file exists at the >>> given url, and I'm not sure what to replace them with. The closest thing I >>> can find API wise looks to be the 2.22 file ( >>> http://dhis2-cdn.org/v222/plugin/chart.js) >>> >>> I also suppose I need to send a user password somewhere ? >>> >>> Your code looks like what is needed to generate a "new/custom" chart - I >>> just want to embed an existing one. >>> >>> Martin >>> >>> On Wed, Aug 30, 2017 at 8:40 AM, Pooben Dass wrote: >>> >>>> Hi Martin >>>> >>>> What error are you seeing in the browser console? >>>> >>>> can you try this ? >>>> >>>> DV.plugin.getChart({ >>>> url : base, >>>> el : 'chart1', >>>> type : 'bar', >>>> columns : [ {dimension : 'in',items : [ {id : '?? } ] } ], >>>> rows : [{dimension : 'ou',items : x } ], >>>> filters : [ {dimension : 'pe',items : [ {id : period} ]} ], >>>> showData : true, >>>> }); >>>> >>>> Regards >>>> Pooben >>>> >>>> On Mon, Aug 28, 2017 at 4:32 PM, Martin Van Aken < >>>> mar...@joyouscoding.com> wrote: >>>> >>>>> Hi, >>>>> I'm trying to embed chart using a 2.24 version. Jan did help me a >>>>> while ago with a 2.22 version, but when I go to the doc for the 2.24 it >>>>> does not look up to date - https://docs.dhis2.org/2.24/ >>>>> en/developer/html/dhis2_developer_manual_full.html#d7652e7049. From >>>>> the CDN it looks like there is no J
Re: [Dhis2-devs] Embed chart - 2.24
Hi Pooben, Thanks for you answer. The problem is when i click "embed" on a given graph I get something like this: http://dhis2-cdn.org/v224/ext/resources/css/ext-plugin-gray.css"; /> http://dhis2-cdn.org/v224/ext/ext-all.js"</a>;> http://dhis2-cdn.org/v224/plugin/chart.js"</a>;> Ext.onReady(function() { DHIS.getChart({ "id": "pNxjHhHRy6Y" }); }); First problem is none of the referenced JS or CSS file exists at the given url, and I'm not sure what to replace them with. The closest thing I can find API wise looks to be the 2.22 file ( http://dhis2-cdn.org/v222/plugin/chart.js) I also suppose I need to send a user password somewhere ? Your code looks like what is needed to generate a "new/custom" chart - I just want to embed an existing one. Martin On Wed, Aug 30, 2017 at 8:40 AM, Pooben Dass wrote: > Hi Martin > > What error are you seeing in the browser console? > > can you try this ? > > DV.plugin.getChart({ > url : base, > el : 'chart1', > type : 'bar', > columns : [ {dimension : 'in',items : [ {id : '?? } ] } ], > rows : [{dimension : 'ou',items : x } ], > filters : [ {dimension : 'pe',items : [ {id : period} ]} ], > showData : true, > }); > > Regards > Pooben > > On Mon, Aug 28, 2017 at 4:32 PM, Martin Van Aken > wrote: > >> Hi, >> I'm trying to embed chart using a 2.24 version. Jan did help me a while >> ago with a 2.22 version, but when I go to the doc for the 2.24 it does not >> look up to date - https://docs.dhis2.org/2.24/ >> en/developer/html/dhis2_developer_manual_full.html#d7652e7049. From the >> CDN it looks like there is no JS package there for 2.24 - >> https://dhis2-cdn.org/ >> >> Is the JS code the same than for 2.25 or 2.22 (the two closest versions >> where there is something on the CDN?). Has anyone a running example of an >> embed on 2.24 ? >> >> Thanks, >> >> Martin >> >> -- >> *Martin Van Aken - **Freelance Enthusiast Developer* >> >> Mobile : +32 486 899 652 >> >> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> >> Call me on Skype : vanakenm >> Hang out with me : mar...@joyouscoding.com >> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >> Company website : www.joyouscoding.com >> >> ___ >> 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 >> >> > > *This message and any attachments are subject to a disclaimer published at > http://www.hisp.org/policies.html#comms_disclaimer > <http://www.hisp.org/policies.html#comms_disclaimer>. Please read the > disclaimer before opening any attachment or taking any other action in > terms of this electronic transmission. If you cannot access the > disclaimer, kindly send an email to disclai...@hisp.org > and a copy will be provided to you. By replying to > this e-mail or opening any attachment you agree to be bound by the > provisions of the disclaimer.* > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Interoperability of ODK & DHIS2
Hi Carlos, We (bluesquarehub.com) have been doing this for several of our customers as part as a (commercial) product. While I can't share the code, I'll be happy to discuss about the lessons learned, and to better understand your needs to see if our cases are similar. Don't hesitate to contact me if interested. Regards, Martin On Tue, Aug 29, 2017 at 3:24 PM, Carlos Nyembwe wrote: > Hello All > > I'm starting to do that, now I need a help about the main points what I > must set up before using this > > Regards > > -- > *Carlos Nyembwe* > *I'm just a Computer Scientist* > > *Skype: carloscnk1* > *Cell: (+243)813166381 <+243%20813%20166%20381>* > *Find me in: | Google Plus <https://plus.google.com/+CarlosNyembwe> | > **Linkedin > <http://www.linkedin.com/in/carloscnk> | Facebook > <https://www.facebook.com/carloscnksys> | Twitter > <https://twitter.com/Carlos_CNK> |* > > ___ > 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 > > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp
Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large organisation unit group in large instance (2.23)
Ok, that's good to know, could be one more argument to push my upgrade agenda. I'll play with the cache and try, thanks. Martin On Tue, Aug 29, 2017 at 9:06 AM, Morten Olav Hansen wrote: > Sorry, but the metadata importer was quite slow before ;-) it has been > greatly improved in 224 and going forward... > > Did you try and enable the preheat parameter? preheatCache=true > > -- > Morten Olav Hansen > Senior Engineer, DHIS 2 > University of Oslo > http://www.dhis2.org > > On Tue, Aug 29, 2017 at 2:00 PM, Martin Van Aken > wrote: > >> Not sure I understand what you mean? Agree that the logical path is the >> upgrade. >> >> Martin >> >> On Mon, Aug 28, 2017 at 10:20 PM, Morten Olav Hansen >> wrote: >> >>> Sure, but if you are on 2.23... dot dot dot... some concessions has to >>> be made >>> >>> -- >>> Morten Olav Hansen >>> Senior Engineer, DHIS 2 >>> University of Oslo >>> http://www.dhis2.org >>> >>> On Tue, Aug 29, 2017 at 2:07 AM, Martin Van Aken < >>> mar...@joyouscoding.com> wrote: >>> >>>> Agree on the upgrade but not every system we support is ours - ie >>>> decision not 100% in our hands. We manage with the API for now, but that's >>>> not practical for end users. >>>> >>>> Martin >>>> >>>> On Mon, Aug 28, 2017 at 8:47 PM, Morten Olav Hansen >>>> wrote: >>>> >>>>> If you are willing to do manual import (using the command line), in >>>>> 223 you can use /api/23/metadata I think... it will use the "new" >>>>> importer.. which should be quicker, please be aware that 223 is not >>>>> supported anymore, so please update ASAP if you can.. >>>>> >>>>> -- >>>>> Morten Olav Hansen >>>>> Senior Engineer, DHIS 2 >>>>> University of Oslo >>>>> http://www.dhis2.org >>>>> >>>>> On Tue, Aug 29, 2017 at 1:09 AM, Martin Van Aken < >>>>> mar...@joyouscoding.com> wrote: >>>>> >>>>>> Hi Morten, >>>>>> This is on 2.23 - I tried to manipulate big groups on the play demo >>>>>> instance and it goes well there. >>>>>> >>>>>> I'll try to get some logs. >>>>>> >>>>>> Martin >>>>>> >>>>>> On Mon, Aug 28, 2017 at 5:27 PM, Morten Olav Hansen >>>>> > wrote: >>>>>> >>>>>>> Hi Martin >>>>>>> >>>>>>> What version of DHIS2 are you on? if you are on 227 there is >>>>>>> currently a bug that has lowered performance in 227 vs the older >>>>>>> versions >>>>>>> (226, 225, etc..) >>>>>>> >>>>>>> If you are not, if you could.. please file a JIRA issue and either >>>>>>> attach the org units, or email me directly >>>>>>> >>>>>>> -- >>>>>>> Morten Olav Hansen >>>>>>> Senior Engineer, DHIS 2 >>>>>>> University of Oslo >>>>>>> http://www.dhis2.org >>>>>>> >>>>>>> On Mon, Aug 28, 2017 at 10:14 PM, Martin Van Aken < >>>>>>> mar...@joyouscoding.com> wrote: >>>>>>> >>>>>>>> Hello Joseph, >>>>>>>> Thanks for the feedback. I'll try rh >>>>>>>> >>>>>>>> On Mon, Aug 28, 2017 at 5:13 PM, Joseph K. Osborn < >>>>>>>> osbornlegr...@hotmail.fr> wrote: >>>>>>>> >>>>>>>>> Hello Martin, >>>>>>>>> >>>>>>>>> We had this problem with 2.22 or 2.23, the solution was to perform >>>>>>>>> these updates during off-peak hours, times when the server was not too >>>>>>>>> busy, so after 10pm, and it worked. >>>>>>>>> >>>>>>>>> But with 2.26 which has improved the analytic time and executions >>>>>>>>> of several queries, we do our updates even during the day. >>>>>>>>> >>>>>>>>> Regards. >>>>>>>>> >>>>>>>>> >>>>>>>>> Osborn &
Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large organisation unit group in large instance (2.23)
Not sure I understand what you mean? Agree that the logical path is the upgrade. Martin On Mon, Aug 28, 2017 at 10:20 PM, Morten Olav Hansen wrote: > Sure, but if you are on 2.23... dot dot dot... some concessions has to be > made > > -- > Morten Olav Hansen > Senior Engineer, DHIS 2 > University of Oslo > http://www.dhis2.org > > On Tue, Aug 29, 2017 at 2:07 AM, Martin Van Aken > wrote: > >> Agree on the upgrade but not every system we support is ours - ie >> decision not 100% in our hands. We manage with the API for now, but that's >> not practical for end users. >> >> Martin >> >> On Mon, Aug 28, 2017 at 8:47 PM, Morten Olav Hansen >> wrote: >> >>> If you are willing to do manual import (using the command line), in 223 >>> you can use /api/23/metadata I think... it will use the "new" importer.. >>> which should be quicker, please be aware that 223 is not supported anymore, >>> so please update ASAP if you can.. >>> >>> -- >>> Morten Olav Hansen >>> Senior Engineer, DHIS 2 >>> University of Oslo >>> http://www.dhis2.org >>> >>> On Tue, Aug 29, 2017 at 1:09 AM, Martin Van Aken < >>> mar...@joyouscoding.com> wrote: >>> >>>> Hi Morten, >>>> This is on 2.23 - I tried to manipulate big groups on the play demo >>>> instance and it goes well there. >>>> >>>> I'll try to get some logs. >>>> >>>> Martin >>>> >>>> On Mon, Aug 28, 2017 at 5:27 PM, Morten Olav Hansen >>>> wrote: >>>> >>>>> Hi Martin >>>>> >>>>> What version of DHIS2 are you on? if you are on 227 there is currently >>>>> a bug that has lowered performance in 227 vs the older versions (226, 225, >>>>> etc..) >>>>> >>>>> If you are not, if you could.. please file a JIRA issue and either >>>>> attach the org units, or email me directly >>>>> >>>>> -- >>>>> Morten Olav Hansen >>>>> Senior Engineer, DHIS 2 >>>>> University of Oslo >>>>> http://www.dhis2.org >>>>> >>>>> On Mon, Aug 28, 2017 at 10:14 PM, Martin Van Aken < >>>>> mar...@joyouscoding.com> wrote: >>>>> >>>>>> Hello Joseph, >>>>>> Thanks for the feedback. I'll try rh >>>>>> >>>>>> On Mon, Aug 28, 2017 at 5:13 PM, Joseph K. Osborn < >>>>>> osbornlegr...@hotmail.fr> wrote: >>>>>> >>>>>>> Hello Martin, >>>>>>> >>>>>>> We had this problem with 2.22 or 2.23, the solution was to perform >>>>>>> these updates during off-peak hours, times when the server was not too >>>>>>> busy, so after 10pm, and it worked. >>>>>>> >>>>>>> But with 2.26 which has improved the analytic time and executions of >>>>>>> several queries, we do our updates even during the day. >>>>>>> >>>>>>> Regards. >>>>>>> >>>>>>> >>>>>>> Osborn >>>>>>> -- >>>>>>> *De :* Dhis2-devs >>>>>> hotmail...@lists.launchpad.net> de la part de Martin Van Aken < >>>>>>> mar...@joyouscoding.com> >>>>>>> *Envoyé :* lundi 28 août 2017 15:34:53 >>>>>>> *À :* Michael Mwebaze >>>>>>> *Cc :* dhis2-users; DHIS 2 Developers list >>>>>>> *Objet :* Re: [Dhis2-devs] [Dhis2-users] Timeout when updating >>>>>>> large organisation unit group in large instance (2.23) >>>>>>> >>>>>>> Got nothing until now but I'm investigating in that direction right >>>>>>> now. >>>>>>> >>>>>>> Thanks already for the pointer! >>>>>>> >>>>>>> Martin >>>>>>> >>>>>>> On Mon, Aug 28, 2017 at 4:12 PM, Michael Mwebaze < >>>>>>> michael.mweb...@gmail.com> wrote: >>>>>>> >>>>>>>> Hi Martin, >>>>>>>> >>>>>>>> do you have access to the Tomcat logs? If an exception is being >>>>>>>> thrown that would also be h
Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large organisation unit group in large instance (2.23)
Agree on the upgrade but not every system we support is ours - ie decision not 100% in our hands. We manage with the API for now, but that's not practical for end users. Martin On Mon, Aug 28, 2017 at 8:47 PM, Morten Olav Hansen wrote: > If you are willing to do manual import (using the command line), in 223 > you can use /api/23/metadata I think... it will use the "new" importer.. > which should be quicker, please be aware that 223 is not supported anymore, > so please update ASAP if you can.. > > -- > Morten Olav Hansen > Senior Engineer, DHIS 2 > University of Oslo > http://www.dhis2.org > > On Tue, Aug 29, 2017 at 1:09 AM, Martin Van Aken > wrote: > >> Hi Morten, >> This is on 2.23 - I tried to manipulate big groups on the play demo >> instance and it goes well there. >> >> I'll try to get some logs. >> >> Martin >> >> On Mon, Aug 28, 2017 at 5:27 PM, Morten Olav Hansen >> wrote: >> >>> Hi Martin >>> >>> What version of DHIS2 are you on? if you are on 227 there is currently a >>> bug that has lowered performance in 227 vs the older versions (226, 225, >>> etc..) >>> >>> If you are not, if you could.. please file a JIRA issue and either >>> attach the org units, or email me directly >>> >>> -- >>> Morten Olav Hansen >>> Senior Engineer, DHIS 2 >>> University of Oslo >>> http://www.dhis2.org >>> >>> On Mon, Aug 28, 2017 at 10:14 PM, Martin Van Aken < >>> mar...@joyouscoding.com> wrote: >>> >>>> Hello Joseph, >>>> Thanks for the feedback. I'll try rh >>>> >>>> On Mon, Aug 28, 2017 at 5:13 PM, Joseph K. Osborn < >>>> osbornlegr...@hotmail.fr> wrote: >>>> >>>>> Hello Martin, >>>>> >>>>> We had this problem with 2.22 or 2.23, the solution was to perform >>>>> these updates during off-peak hours, times when the server was not too >>>>> busy, so after 10pm, and it worked. >>>>> >>>>> But with 2.26 which has improved the analytic time and executions of >>>>> several queries, we do our updates even during the day. >>>>> >>>>> Regards. >>>>> >>>>> >>>>> Osborn >>>>> -- >>>>> *De :* Dhis2-devs >>>> hotmail...@lists.launchpad.net> de la part de Martin Van Aken < >>>>> mar...@joyouscoding.com> >>>>> *Envoyé :* lundi 28 août 2017 15:34:53 >>>>> *À :* Michael Mwebaze >>>>> *Cc :* dhis2-users; DHIS 2 Developers list >>>>> *Objet :* Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large >>>>> organisation unit group in large instance (2.23) >>>>> >>>>> Got nothing until now but I'm investigating in that direction right >>>>> now. >>>>> >>>>> Thanks already for the pointer! >>>>> >>>>> Martin >>>>> >>>>> On Mon, Aug 28, 2017 at 4:12 PM, Michael Mwebaze < >>>>> michael.mweb...@gmail.com> wrote: >>>>> >>>>>> Hi Martin, >>>>>> >>>>>> do you have access to the Tomcat logs? If an exception is being >>>>>> thrown that would also be helpful to figure out what is happening. >>>>>> >>>>>> Regards, >>>>>> >>>>>> Michael >>>>>> >>>>>> On 28 August 2017 at 10:04, Martin Van Aken >>>>>> wrote: >>>>>> >>>>>>> Hi DHIS2 users & developers, >>>>>>> We have a relatively large instance of DHIS2 (30 000 org units) >>>>>>> where we have several groups that can make up to 3 000 org unit each. >>>>>>> >>>>>>> When trying to update them through the UX, our server get a timeout >>>>>>> (looking in the console for the network calls). >>>>>>> >>>>>>> The call is like this: >>>>>>> >>>>>>> /api/organisationUnitGroups/RZYPaa6gxq8?mergeMode=REPLACE >>>>>>> >>>>>>> When using the API, we get no problem but we typically add/remove >>>>>>> relations one by one (so the call is very different). >>>>>>> >>>>>>
Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large organisation unit group in large instance (2.23)
Hi Morten, This is on 2.23 - I tried to manipulate big groups on the play demo instance and it goes well there. I'll try to get some logs. Martin On Mon, Aug 28, 2017 at 5:27 PM, Morten Olav Hansen wrote: > Hi Martin > > What version of DHIS2 are you on? if you are on 227 there is currently a > bug that has lowered performance in 227 vs the older versions (226, 225, > etc..) > > If you are not, if you could.. please file a JIRA issue and either attach > the org units, or email me directly > > -- > Morten Olav Hansen > Senior Engineer, DHIS 2 > University of Oslo > http://www.dhis2.org > > On Mon, Aug 28, 2017 at 10:14 PM, Martin Van Aken > wrote: > >> Hello Joseph, >> Thanks for the feedback. I'll try rh >> >> On Mon, Aug 28, 2017 at 5:13 PM, Joseph K. Osborn < >> osbornlegr...@hotmail.fr> wrote: >> >>> Hello Martin, >>> >>> We had this problem with 2.22 or 2.23, the solution was to perform these >>> updates during off-peak hours, times when the server was not too busy, so >>> after 10pm, and it worked. >>> >>> But with 2.26 which has improved the analytic time and executions of >>> several queries, we do our updates even during the day. >>> >>> Regards. >>> >>> >>> Osborn >>> -- >>> *De :* Dhis2-devs >> hotmail...@lists.launchpad.net> de la part de Martin Van Aken < >>> mar...@joyouscoding.com> >>> *Envoyé :* lundi 28 août 2017 15:34:53 >>> *À :* Michael Mwebaze >>> *Cc :* dhis2-users; DHIS 2 Developers list >>> *Objet :* Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large >>> organisation unit group in large instance (2.23) >>> >>> Got nothing until now but I'm investigating in that direction right now. >>> >>> Thanks already for the pointer! >>> >>> Martin >>> >>> On Mon, Aug 28, 2017 at 4:12 PM, Michael Mwebaze < >>> michael.mweb...@gmail.com> wrote: >>> >>>> Hi Martin, >>>> >>>> do you have access to the Tomcat logs? If an exception is being thrown >>>> that would also be helpful to figure out what is happening. >>>> >>>> Regards, >>>> >>>> Michael >>>> >>>> On 28 August 2017 at 10:04, Martin Van Aken >>>> wrote: >>>> >>>>> Hi DHIS2 users & developers, >>>>> We have a relatively large instance of DHIS2 (30 000 org units) where >>>>> we have several groups that can make up to 3 000 org unit each. >>>>> >>>>> When trying to update them through the UX, our server get a timeout >>>>> (looking in the console for the network calls). >>>>> >>>>> The call is like this: >>>>> >>>>> /api/organisationUnitGroups/RZYPaa6gxq8?mergeMode=REPLACE >>>>> >>>>> When using the API, we get no problem but we typically add/remove >>>>> relations one by one (so the call is very different). >>>>> >>>>> I tested on the last version on play and everything is working there, >>>>> but the version is quite different too. >>>>> >>>>> Is this something someone encountered already? Anything we could do to >>>>> avoid this ? >>>>> >>>>> Thanks, >>>>> >>>>> Martin >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> *Martin Van Aken - **Freelance Enthusiast Developer* >>>>> >>>>> Mobile : +32 486 899 652 >>>>> >>>>> Follow me on Twitter : @martinvanaken >>>>> <http://twitter.com/martinvanaken> >>>>> Call me on Skype : vanakenm >>>>> Hang out with me : mar...@joyouscoding.com >>>>> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >>>>> Company website : www.joyouscoding.com >>>>> >>>>> ___ >>>>> Mailing list: https://launchpad.net/~dhis2-users >>>>> Post to : dhis2-us...@lists.launchpad.net >>>>> Unsubscribe : https://launchpad.net/~dhis2-users >>>>> More help : https://help.launchpad.net/ListHelp >>>>> >>>>> >>>> >>> >>> >>> -- >>> *Martin Van Aken - **Freelance
Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large organisation unit group in large instance (2.23)
Hello Joseph, Thanks for the feedback. I'll try rh On Mon, Aug 28, 2017 at 5:13 PM, Joseph K. Osborn wrote: > Hello Martin, > > We had this problem with 2.22 or 2.23, the solution was to perform these > updates during off-peak hours, times when the server was not too busy, so > after 10pm, and it worked. > > But with 2.26 which has improved the analytic time and executions of > several queries, we do our updates even during the day. > > Regards. > > > Osborn > -- > *De :* Dhis2-devs lists.launchpad.net> de la part de Martin Van Aken < > mar...@joyouscoding.com> > *Envoyé :* lundi 28 août 2017 15:34:53 > *À :* Michael Mwebaze > *Cc :* dhis2-users; DHIS 2 Developers list > *Objet :* Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large > organisation unit group in large instance (2.23) > > Got nothing until now but I'm investigating in that direction right now. > > Thanks already for the pointer! > > Martin > > On Mon, Aug 28, 2017 at 4:12 PM, Michael Mwebaze < > michael.mweb...@gmail.com> wrote: > >> Hi Martin, >> >> do you have access to the Tomcat logs? If an exception is being thrown >> that would also be helpful to figure out what is happening. >> >> Regards, >> >> Michael >> >> On 28 August 2017 at 10:04, Martin Van Aken >> wrote: >> >>> Hi DHIS2 users & developers, >>> We have a relatively large instance of DHIS2 (30 000 org units) where we >>> have several groups that can make up to 3 000 org unit each. >>> >>> When trying to update them through the UX, our server get a timeout >>> (looking in the console for the network calls). >>> >>> The call is like this: >>> >>> /api/organisationUnitGroups/RZYPaa6gxq8?mergeMode=REPLACE >>> >>> When using the API, we get no problem but we typically add/remove >>> relations one by one (so the call is very different). >>> >>> I tested on the last version on play and everything is working there, >>> but the version is quite different too. >>> >>> Is this something someone encountered already? Anything we could do to >>> avoid this ? >>> >>> Thanks, >>> >>> Martin >>> >>> >>> >>> >>> -- >>> *Martin Van Aken - **Freelance Enthusiast Developer* >>> >>> Mobile : +32 486 899 652 >>> >>> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> >>> Call me on Skype : vanakenm >>> Hang out with me : mar...@joyouscoding.com >>> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >>> Company website : www.joyouscoding.com >>> >>> ___ >>> Mailing list: https://launchpad.net/~dhis2-users >>> Post to : dhis2-us...@lists.launchpad.net >>> Unsubscribe : https://launchpad.net/~dhis2-users >>> More help : https://help.launchpad.net/ListHelp >>> >>> >> > > > -- > *Martin Van Aken - **Freelance Enthusiast Developer* > > Mobile : +32 486 899 652 > > Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> > Call me on Skype : vanakenm > Hang out with me : mar...@joyouscoding.com > Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken > Company website : www.joyouscoding.com > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp
Re: [Dhis2-devs] [Dhis2-users] Timeout when updating large organisation unit group in large instance (2.23)
Got nothing until now but I'm investigating in that direction right now. Thanks already for the pointer! Martin On Mon, Aug 28, 2017 at 4:12 PM, Michael Mwebaze wrote: > Hi Martin, > > do you have access to the Tomcat logs? If an exception is being thrown > that would also be helpful to figure out what is happening. > > Regards, > > Michael > > On 28 August 2017 at 10:04, Martin Van Aken > wrote: > >> Hi DHIS2 users & developers, >> We have a relatively large instance of DHIS2 (30 000 org units) where we >> have several groups that can make up to 3 000 org unit each. >> >> When trying to update them through the UX, our server get a timeout >> (looking in the console for the network calls). >> >> The call is like this: >> >> /api/organisationUnitGroups/RZYPaa6gxq8?mergeMode=REPLACE >> >> When using the API, we get no problem but we typically add/remove >> relations one by one (so the call is very different). >> >> I tested on the last version on play and everything is working there, >> but the version is quite different too. >> >> Is this something someone encountered already? Anything we could do to >> avoid this ? >> >> Thanks, >> >> Martin >> >> >> >> >> -- >> *Martin Van Aken - **Freelance Enthusiast Developer* >> >> Mobile : +32 486 899 652 >> >> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> >> Call me on Skype : vanakenm >> Hang out with me : mar...@joyouscoding.com >> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >> Company website : www.joyouscoding.com >> >> ___ >> Mailing list: https://launchpad.net/~dhis2-users >> Post to : dhis2-us...@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~dhis2-users >> More help : https://help.launchpad.net/ListHelp >> >> > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Embed chart - 2.24
Hi, I'm trying to embed chart using a 2.24 version. Jan did help me a while ago with a 2.22 version, but when I go to the doc for the 2.24 it does not look up to date - https://docs.dhis2.org/2.24/en/developer/html/dhis2_developer_manual_full.html#d7652e7049. >From the CDN it looks like there is no JS package there for 2.24 - https://dhis2-cdn.org/ Is the JS code the same than for 2.25 or 2.22 (the two closest versions where there is something on the CDN?). Has anyone a running example of an embed on 2.24 ? Thanks, Martin -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Timeout when updating large organisation unit group in large instance (2.23)
Hi DHIS2 users & developers, We have a relatively large instance of DHIS2 (30 000 org units) where we have several groups that can make up to 3 000 org unit each. When trying to update them through the UX, our server get a timeout (looking in the console for the network calls). The call is like this: /api/organisationUnitGroups/RZYPaa6gxq8?mergeMode=REPLACE When using the API, we get no problem but we typically add/remove relations one by one (so the call is very different). I tested on the last version on play and everything is working there, but the version is quite different too. Is this something someone encountered already? Anything we could do to avoid this ? Thanks, Martin -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Org Units visible in API but not in UX
Ok, thanks a lot. I understood the "multiple" root, but this explains why I have two different situation. Regards, Martin On Mon, Feb 6, 2017 at 2:28 PM, Lars Helge Øverland wrote: > Hi Martin, > > the problem is usually that the user you are logged in as (the "current > user") is assigned to a single root org unit. You can check that through > the API (user -> organisationUnit) and the user app. > > After this user was created, I guess someone has created additional org > units through the API but got the "parent" org unit element wrong or simply > omitted it. When an org unit has a null/missing parent, it effectively > becomes a root org unit. Now since your user is assigned the original root, > you cannot see those other root org units. > > The solution is to move the "fake" root org units to their appropriate > place in the hierarchy by modifying the org unit parent element. > > Also, if you log in with a user with the ALL authority and go to the user > app -> create new user, you should be able to see those extra root org > units. > > regards, > > Lars > > > > > > > > On Mon, Feb 6, 2017 at 2:21 PM, Martin Van Aken > wrote: > >> Hello, >> In one of our customers' DHIS2 that we are integrating through the API we >> have a weird situation: we have org units we see through the API but not >> using the UX. >> >> Specifically, there seems to be a lot of org units at the level 1 (top) >> while there should be only one (the country). The UI seems good, so I'm >> wondering if there is any sort of filtering by default on the UI and if so >> which one? >> >> At this time, this means we can't locate the "main/country" org unit >> through the API (we expect to find only one at the root level, which is not >> the case). >> >> Any leads? >> >> Thanks, >> >> Martin >> >> -- >> *Martin Van Aken - **Freelance Enthusiast Developer* >> >> Mobile : +32 486 899 652 >> >> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> >> Call me on Skype : vanakenm >> Hang out with me : mar...@joyouscoding.com >> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken >> Company website : www.joyouscoding.com >> >> ___ >> 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/> > > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Org Units visible in API but not in UX
Hello, In one of our customers' DHIS2 that we are integrating through the API we have a weird situation: we have org units we see through the API but not using the UX. Specifically, there seems to be a lot of org units at the level 1 (top) while there should be only one (the country). The UI seems good, so I'm wondering if there is any sort of filtering by default on the UI and if so which one? At this time, this means we can't locate the "main/country" org unit through the API (we expect to find only one at the root level, which is not the case). Any leads? Thanks, Martin -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Deployment Advice to Developers
Hi. We are deploying DHIS2 to heroku on a regular basis. I can have a look with my colleagues for more detailed info. The basics is that it's not as good for Java as for PHP or Ruby, but it works (DHIS2 is huge and Java is memory intensive, so you'll need a relatively big/costly instance to make it run). Martin On Tue, Nov 15, 2016 at 7:41 PM, Knut Staring wrote: > Copying to the dev list. > > On Tue, Nov 15, 2016 at 7:40 PM, Knut Staring wrote: > >> Hi Joe, >> >> I would recommend taking a look at DHIS2 Tools: >> https://www.google.ch/search?q=DHIS2+Tools+Guide >> >> Regards, >> Knut >> >> On Tue, Nov 15, 2016 at 6:55 PM, Joe Flack wrote: >> >>> Hello there, >>> >>> >>> >>> My organization has just recently decided that we may move forward with >>> implementing DHIS2 (which I’ve found phenomenal). I’ve perused the >>> documentation (also very good) and several other resources, but I am still >>> looking for a straightforward guide for deployment to the cloud. >>> >>> >>> >>> So far the best thing I’ve found is this blog post, which appears more >>> like a copy paste of personal notes: https://sites.google.com/site/ >>> caovannhan2002/hc-tp/build-and-run-dhis2 >>> >>> >>> >>> However so far, so good. I’m hoping to deploy to Heroku. But I am >>> anticipating many of the usual snags, especially since I’m unfamiliar with >>> the Java ecosystem. >>> >>> >>> >>> If there’s a guide that could be linked, or otherwise guidance that >>> could be extended, my organization would be very interested. >>> >>> >>> >>> Best wishes, >>> >>> Joe Flack >>> >>> Programmer Analyst, PMA2020 >>> >>> *Bill & Melinda Gates Institute for Population and Reproductive Health* >>> >>> *Department of Population, Family, and Reproductive Health* >>> >>> *Johns Hopkins Bloomberg School of Public Health* >>> >>> 615 N. Wolfe St., E4037, Baltimore, MD 21205 >>> >>> Office: +1 410 502 7264 | Mobile: +1 850 982 7871 | Fax: +1 410 955 0792 >>> >>> Skype/KakaoTalk: joeflack4 | Blog: joeflack.net | LinkedIn: >>> in/joeflack4 | Github: joeflack4 >>> >>> www.pma2020.org |www.gatesinstitute.org Follow us on Twitter >>> <https://twitter.com/PMA2020JHU> | ‘Like’ Us on Facebook >>> <https://www.facebook.com/GATES.PMA2020> >>> >> >> >> >> -- >> Knut Staring >> Dept. of Informatics, University of Oslo >> Norway: +4791880522 >> Skype: knutstar >> http://dhis2.org >> > > > > -- > 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 > > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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 API feedback
Hi, Thanks for the "report mode", I'll try that out. Regarding my question re: user rights through the API, maybe I was mistaken. Just to be sure: if I connect with a specific user using the API, I should get exactly the same access as I get through the UI with the same user, correct? Martin On Mon, Oct 24, 2016 at 4:44 AM, Morten Olav Hansen wrote: > >>- *Return IDs of created items:* when we create a meta data (org >>unit, data element, etc), the API should return the newly created object >> id >>(or ids if multiple ones). Failed to do so require us to make a second >> call >>using a field to fetch the object back, this being a risky thing when >>fields are not always unique. Same thing when a batch process occurs, >>having something such "2 updated, 2 ignored" does not help me - I need to >>know which have been updated and which not so that my app can react >>accordingly. >> >> > Yes, this can be done using the new `importReportMode` in 225 (you > probably want to set it to full) > > https://dhis2.github.io/dhis2-docs/master/en/developer/html/ > webapi_metadata_import.html > > >> >>- *Respect user rights management:* if I can only access some object >>using the app with a given user/password, I should have exactly the same >>rights throught the API - the way I access the app should not impact what >> I >>can see/do >> >> > Not exactly sure what you mean here. Where do you see these issues? > > >> >>- >> >> Cf my previous mail, the additionnal point is to have a lot of thought >> before altering the API in a backward incompatible change - this can break >> a lot of software, and at minimum to document those closely. >> >> I'll be happy to discuss more on those topics, and to contribute any help >> that can be useful. >> >> Martin >> >> >> _______ >> 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 >> >> > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] API changes with 2.25 release
Hi ! Good job with the release. By testing our API against the demo version, we just noticed that the status info looks to have changed quite a bit: - status is now "OK" instead of "SUCCESS" when good - "import_type_summaries" have disappeared in favor of a "stats" object I could not find this on the upgrade notes - do you have some place where the API changes are detailed at that level? While it may looks like a small change, it is breaking several of our cases. Do you have any advice on how to maintain an API client through various DHIS2 versions? Thanks, Martin (sorry if double post, I'm not sure this passed the first time) -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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 API feedback
Hi DHIS2 devs! We've been using your API for a while now, and if the experience has been mostly pleasant, there are some aspects which are making our work more difficult, so I wanted to let you know what would make our life easier: - *Return IDs of created items:* when we create a meta data (org unit, data element, etc), the API should return the newly created object id (or ids if multiple ones). Failed to do so require us to make a second call using a field to fetch the object back, this being a risky thing when fields are not always unique. Same thing when a batch process occurs, having something such "2 updated, 2 ignored" does not help me - I need to know which have been updated and which not so that my app can react accordingly. - *Respect user rights management:* if I can only access some object using the app with a given user/password, I should have exactly the same rights throught the API - the way I access the app should not impact what I can see/do Cf my previous mail, the additionnal point is to have a lot of thought before altering the API in a backward incompatible change - this can break a lot of software, and at minimum to document those closely. I'll be happy to discuss more on those topics, and to contribute any help that can be useful. Martin ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp
[Dhis2-devs] (no subject)
een > completed more than 7 days ago can no longer be edited. > > Docs > <https://dhis2.github.io/dhis2-docs/master/en/user/html/manage_tracker_programs.html> > > > Event locking per program: In the Event Capture and Tracker Capture apps, > time periods can be locked in order to prevent new events to be added. This > is configurable through the expiry days and expiry period type > properties, which controls the number of days after a period of a specific > period type for which events can still be added. For example: if expiry > days is 7 and expiry period type is monthly; new events can be added for a > month up to 7 days after the end date of that month. > > Docs > <https://dhis2.github.io/dhis2-docs/master/en/user/html/manage_tracker_programs.html> > > > Configurable columns: In the Tracker Capture app, the columns to display > in the list of tracked entity instances can be selected and remembered per > user. In the Event Capture app, the columns to display in the list of > events can be selected. > > Docs <https://dhis2.github.io/dhis2-docs/master/en/user/html/ch23s08.html> > | Screenshot 1 > <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/25/tracker-configurable-columns.png> > | Sc 2 > <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/25/event-capture-configurable-columns.png> > > > > HOSTING FEATURES > > --- > > Web server clustering: This release allows for deploying DHIS2 in a web > server cluster. When configured appropriately, each node in the cluster > will ensure that the application caches of the other nodes are kept in > sync. Up to 5 nodes can be configured, allowing for web server horizontal > scalability. For each node, the hostname of the other nodes must be > configured. > > Docs > <https://dhis2.github.io/dhis2-docs/master/en/implementer/html/install_web_server_cluster_configuration.html> > > > Database read replication: DHIS2 now allows for configuring up to 5 read > replicas of the master database. When set up, the application will > automatically offload read-only database queries to the read replicas, > allowing for horizontal scalability of the database read operation > capacity. Each read replica must be specified in the dhis.conf > configuration file. > > Docs > <https://dhis2.github.io/dhis2-docs/master/en/implementer/html/install_read_replica_configuration.html> > > > > WEB API FEATURES > > --- > > API versioning: The Web API is now versioned. The versioning is defined > through the request URL with a version number. For example > /api/25/dataElements will return version 25 of the data elements > resource. If you omit the version part of the URL, the system will use the > current API version. The last three versions of the API will be supported. > > Docs > <http://dhis2.github.io/dhis2-docs/master/en/developer/html/webapi_browsing_the_web_api.html#webapi_api_versions> > > > Indicator analytics: The numerator, denominator and factor components of > indicator values can be included separately in analytics responses by > setting the includeNumDen parameter to true. > > Docs > <http://dhis2.github.io/dhis2-docs/master/en/developer/html/webapi_analytics.html#webapi_analytics_query_parameters> > > > Translation in metadata export: Object translations can now be included > in the metadata export payload by setting the translate parameter to true. > > Docs > <https://dhis2.github.io/dhis2-docs/master/en/developer/html/webapi_metadata_export.html> > > > Async metadata import: Metadata imports can now be performed > asynchronously by setting the async parameter to true, which is useful > for large metadata imports. > > Docs > <https://dhis2.github.io/dhis2-docs/master/en/developer/html/webapi_metadata_import.html> > > > Logical operators: You can now specify whether to use the AND or OR > logical operators for filters while using the metadata export resources. > > Docs > <https://dhis2.github.io/dhis2-docs/master/en/developer/html/webapi_metadata_object_filter.html#webapi_metadata_logical_operator> > > > > > RELEASE INFO > > > > You can download Live package, WAR file, sample data and source code here: > > https://www.dhis2.org/downloads > > > You will find documentation and Javadocs here: > > https://www.dhis2.org/documentation > > > You can read the upgrade notes and find upgrade script here: > > https://www.dhis2.org/225-upgrade > > > You can find the *source code* on Github here: > > https://github.com/dhis2 > > > The demo application can be found here: > > https://play.dhis2.org/demo > > > Full list of features can be found at the Launchpad page: > > https://launchpad.net/dhis2/+milestone/2.25 > > > Instructions for signing up for the DHIS 2 mailing lists here: > > https://www.dhis2.org/contact > > > > TESTIMONIALS > --- > > Thanks goes to EyeSeeTea <http://eyeseetea.com/> for contribution to this > release. > > > > > best regards, > > > the DHIS 2 development team > > > > > > > ___ > 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 > > -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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] Ruby client for DHIS2 API available
Hello, We're using DHIS2 REST API a lot from our Ruby applications so we've created a simple Ruby wrapper around the API to make its usage easier. It's available on rubygems under the name "dhis2". The code is available on GitHub (https://github.com/blsq/dhis2), under a MIT licence. If anyone here is working with Ruby, I hope this can be useful to you and I encourage you to have a look. Feedback is much appreciated. Martin -- *Martin Van Aken - **Freelance Enthusiast Developer* Mobile : +32 486 899 652 Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken> Call me on Skype : vanakenm Hang out with me : mar...@joyouscoding.com Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken Company website : www.joyouscoding.com ___ 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