Re: [Dhis2-devs-core] tracker apps

2014-02-11 Thread Morten Olav Hansen
, for now.. nothing will break (hopefully) ;-) -- Morten On Tue, Feb 11, 2014 at 3:23 PM, Long Ngo Thanh long.hispviet...@gmail.comwrote: Ok, thanks Morten Long On Tue, Feb 11, 2014 at 3:00 PM, Morten Olav Hansen morte...@gmail.comwrote: The tracker services will stay as they are, the web-api

Re: [Dhis2-devs-core] data element patient to tracker domain type

2014-06-12 Thread Morten Olav Hansen
Could I suggest using a enum for this. I want us to move that way going forward, since it makes it easier to auto-generate lists of possible choices for a certain property (which is more or less impossible using these final constants). -- Morten On Thu, Jun 12, 2014 at 7:58 PM, Lars Helge

Re: [Dhis2-devs-core] release

2014-07-25 Thread Morten Olav Hansen
Thanks Lars, and thanks for your continues hard work to manage this volatile team. Please, going forward, let's try and get started on the weekly/bi-weekly developer meetings we have talked about, I know we have some challenges with tz, but let's try and work it out. On Jul 25, 2014 11:04 PM,

[Dhis2-devs-core] D2 app init

2014-10-04 Thread Morten Olav Hansen
Hi everyone Just wanted to quickly share to link [1]. It shows an example off how to run one or more async request before your main module is initialized. This is very useful in d2 app development, since you probably want to get /api/system/info and /api/me etc and provide them as constants in

[Dhis2-devs-core] JSDoc

2014-10-09 Thread Morten Olav Hansen
Hi everyone Just wanted to tell you about JSDoc [1], its a documentation format for documenting JavaScript code, I'm already using it in dhis2.period.js, and it has many benefits. The most obvious benefit is proper autocompletion and also type handling, as an example, please consider this:

Re: [Dhis2-devs-core] JSDoc

2014-10-09 Thread Morten Olav Hansen
...@ifi.uio.no +47 970 36 752 On 09 Oct 2014, at 16:13, Morten Olav Hansen morte...@gmail.com wrote: I'm not convinced we should limit ourselves to AngularJS in D2js. We should definetely have d2.anguar.js, but should we only rely on AJS, I'm not sure.. This is why i tried to push a D2js on our

[Dhis2-devs-core] 2.18 branch

2015-01-21 Thread Morten Olav Hansen
Hi guys I have branched 2.18 now, and tagged 2.19-SNAPSHOT, you can find 2.18 branch at http://code.launchpad.net/~dhis2-devs-core/dhis2/2.18 2.18 CI can be found here https://apps.dhis2.org/ci/job/dhis-2.18/ -- Morten -- Mailing list: https://launchpad.net/~dhis2-devs-core Post to :

Re: [Dhis2-devs-core] Paging total being wrong on empty result?

2015-01-15 Thread Morten Olav Hansen
Hi Mark I think it has been like this since the first time we introduced the pager element.. I agree its a bit weird Total should be 0 of course, do we still want to see pageCount = 1 ? even if there is no results? or would that be pagecount = 0 ? On Thu Jan 15 2015 at 10:44:43 PM Mark Polak

Re: [Dhis2-devs-core] Paging total being wrong on empty result?

2015-01-16 Thread Morten Olav Hansen
Yes, setting it to 0 will have this effect On Fri Jan 16 2015 at 11:31:53 AM Morten Olav Hansen morte...@gmail.com wrote: Hi Mark I think it has been like this since the first time we introduced the pager element.. I agree its a bit weird Total should be 0 of course, do we still want

Re: [Dhis2-devs-core] Paging total being wrong on empty result?

2015-01-16 Thread Morten Olav Hansen
, Mark Polak m...@thedutchies.com mar...@ifi.uio.no +47 970 36 752 On 16 Jan 2015, at 05:31, Morten Olav Hansen morte...@gmail.com wrote: Hi Mark I think it has been like this since the first time we introduced the pager element.. I agree its a bit weird Total should be 0 of course, do we

[Dhis2-devs-core] Translation in the Web-API

2015-02-15 Thread Morten Olav Hansen
Hi everyone DB Translation is now supported in the Web-API. Two new parameters were added to the web-api: translate=true/false Translates using default user locale locale=locale-tag Translate using a specified locale (great for testing etc, implies translate=true) I have

Re: [Dhis2-devs-core] Filtering API resources by viewClass param.

2015-03-16 Thread Morten Olav Hansen
Hi Araz The viewClass parameter is going away completely in the future have a look at field filtering [1] instead. [1] https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s07.html -- Morten On Mon, Mar 16, 2015 at 1:56 PM, Araz Abishov araz.abishov.g...@gmail.com wrote: Hello everyone,

Re: [Dhis2-devs-core] org unit association from TEI to enrollment

2015-03-04 Thread Morten Olav Hansen
We already have a blueprint on this [1], I can take on the job of changing the web-api (require orgUnit in enrollment, and remove orgUnit from trackedEntityInstance), if someone else can take care of SQL upgrade.. that would be good, since its not really what I'm good at.. I guess we should

[Dhis2-devs-core] AppCacheFilter

2015-02-26 Thread Morten Olav Hansen
Hi everyone I have now added a new global filter which might be useful is you care creating offline apps, for every request to *.appcache it will now add 3 lines to the end of that file: # Current user # DHIS rev # Current calendar if you need more variables, please tell me and i will add The

Re: [Dhis2-devs-core] Change from OR to AND in object filter queries

2015-06-03 Thread Morten Olav Hansen
Hi The [] syntax for now is only for the IN operator (which supports a list of values), I could see it working for like etc also, but then what would we do if we want an OR but with two different operators? -- Morten On Wed, Jun 3, 2015 at 4:07 PM, Mark Polak mar...@ifi.uio.no wrote: Hey

Re: [Dhis2-devs-core] Period conversion for ADX

2015-06-10 Thread Morten Olav Hansen
What about DateUtils? We already have DateUtils.parseDate which we use a lod, parseAdxDate? -- Morten On Wed, Jun 10, 2015 at 9:17 PM, Bob Jolliffe bobjolli...@gmail.com wrote: Hi I am just looking at the task of implementing adx data import and the first small thing to tackle is parsing

Re: [Dhis2-devs-core] TEI query

2015-07-03 Thread Morten Olav Hansen
Hi Is it ok that I commit this code now? did you update tracker* apps? -- Morten On Mon, Jun 29, 2015 at 3:23 PM, Abyot Gizaw aby...@gmail.com wrote: ok fine ... let's keep api/trackedEntiyInstances/query. On Mon, Jun 29, 2015 at 10:16 AM Morten Olav Hansen morte...@gmail.com wrote: Yes

Re: [Dhis2-devs-core] TEI query

2015-07-03 Thread Morten Olav Hansen
Great, thanks -- Morten On Fri, Jul 3, 2015 at 2:18 PM, Abyot Gizaw aby...@gmail.com wrote: Yes, tracker-capture in trunk is already update to /api/trackedEntityInstances/query On Fri, Jul 3, 2015 at 9:09 AM Morten Olav Hansen morte...@gmail.com wrote: Hi Is it ok that I commit

Re: [Dhis2-devs-core] TEI query

2015-06-29 Thread Morten Olav Hansen
- definitely tracker-capture. But what are the query parameters? Are you going to keep existing format? Thank you, Abyot. On Mon, Jun 29, 2015 at 5:58 AM Morten Olav Hansen morte...@gmail.com wrote: Hi guys As part of this [1] I have changed the TEI query endpoint a bit, for -now- it can

Re: [Dhis2-devs-core] Java 8

2015-08-11 Thread Morten Olav Hansen
I would say ASAP, but according to Lars there was some issues with the iReport library we are using (maybe its just a simple update)? -- Morten On Mon, Aug 3, 2015 at 6:29 PM, Halvdan Grelland halvda...@gmail.com wrote: As we're obviously not quite there yet: do we have an aproximate time as

[Dhis2-devs-core] setAutoFields() anti-pattern

2015-07-13 Thread Morten Olav Hansen
Hi guys After some extensive cpu profiling today I have discovered that we are using way too much time doing setAutoFields(), a few releases ago we started doing a anti-pattern where we were setting auto fields in the default constructor, which means that they are run by hibernate on every single

[Dhis2-devs-core] Update to like/ilike

2015-11-11 Thread Morten Olav Hansen
Hi everyone I just pushed some code that enables the new in-memory filter engine, in that I have also added a few new operators, and updated a few old ones. The new operators are documented here http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s07.html Please note that we now also

[Dhis2-devs-core] Email flood

2015-10-20 Thread Morten Olav Hansen
Sorry for the email flooding people, we were just hit by a launchpad bug when I was doing the branching for 2.21, they have confirmed it and are working on it.. at least they have purged the email queue, so it should have stopped now -- Morten -- Mailing list:

Re: [Dhis2-devs-core] Changed response payload in web-api

2015-07-09 Thread Morten Olav Hansen
This change have now been applied to all of the web-api, please if you see any weird { message: ... } error messages, report back to me. If you see it in your own apps, just to JSON.parse(responseText).message. -- Morten On Wed, Jul 8, 2015 at 12:07 PM, Morten Olav Hansen morte...@gmail.com

[Dhis2-devs-core] Changed response payload in web-api

2015-07-07 Thread Morten Olav Hansen
Hi everyone As part of the continued change to WebMessage based responses in the web-api, I have now more or less removed all old text based responses.. there might be a few more, but I will go through it today and remove all of it. If you have any code that assumes a text based payload, you will

Re: [Dhis2-devs-core] release preparations

2015-09-14 Thread Morten Olav Hansen
And please be aware that we have updated many constant strings to become enums, and will continue this work for at least one more week. If you see any strange issues, it might be because of this. The big one is the removal of data element type/number type/text type, which was replaced by a value

[Dhis2-devs-core] Small change in user/userCredentials API

2015-10-05 Thread Morten Olav Hansen
Hi everyone Just wanted to let you know that UserCredentials.user has been renamed to UserCredentials.userInfo (this is also reflected in JSON/XML payloads). UserCredentials.user will from now on be used to tell who created the UserCredentials (User) as it is elsewhere in the system -- Morten

Re: [Dhis2-devs-core] Audits Web-API

2015-12-03 Thread Morten Olav Hansen
in terms of > using this api for doing incremental data backups? > > On 1 December 2015 at 08:21, Morten Olav Hansen <morte...@gmail.com> > wrote: > > http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s21.html > > > > Basic docs are now available here.

Re: [Dhis2-devs-core] Default view of idObjects in field filter

2015-12-18 Thread Morten Olav Hansen
we should have in the first place) > > PS: Breaking change for when you're not using field filtering ;) > > Regards, > > Mark > > On Fri, Dec 18, 2015 at 10:31 AM, Morten Olav Hansen <morte...@gmail.com> > wrote: > >> Hi everyone >> >> As you probably

Re: [Dhis2-devs-core] Default view of idObjects in field filter

2015-12-18 Thread Morten Olav Hansen
use name. > > > --- > Thank you, > Abyot. > > On Fri, Dec 18, 2015 at 10:31 AM, Morten Olav Hansen <morte...@gmail.com> > wrote: > >> Hi everyone >> >> As you probably, if you do something like >> /api/organisationUnits.json?fields=* >> &g

Re: [Dhis2-devs-core] Default view of idObjects in field filter

2015-12-22 Thread Morten Olav Hansen
This is now implemented. I tested most of the apps, and they seem to function as they should. If you see any issues in your apps, either select fields explicitly or just use the :identifiable preset. -- Morten On Fri, Dec 18, 2015 at 3:10 PM, Morten Olav Hansen <morte...@gmail.com>

Re: [Dhis2-devs-core] Audits Web-API

2015-11-29 Thread Morten Olav Hansen
On Mon, Nov 30, 2015 at 12:16 PM, Abyot Gizaw wrote: > nice. and per tracked entity instance for trackedEntityDatavalueAudit. > Sure. -- Morten -- Mailing list: https://launchpad.net/~dhis2-devs-core Post to : dhis2-devs-core@lists.launchpad.net Unsubscribe :

Re: [Dhis2-devs-core] ApiVersioning redux

2016-06-12 Thread Morten Olav Hansen
in this case -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Jun 10, 2016 at 9:24 AM, Morten Olav Hansen <mor...@dhis2.org> wrote: > Regarding 404 vs 405, that's up to Spring MVC, if there is at least one > method mapped at the endpoint, it will us

Re: [Dhis2-devs-core] ApiVersioning redux

2016-06-09 Thread Morten Olav Hansen
Regarding 404 vs 405, that's up to Spring MVC, if there is at least one method mapped at the endpoint, it will usually return 405, if not 404.. I'm looking into this, and adding a few new use-cases to the testing suite -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http

Re: [Dhis2-devs-core] documentation / learning portal

2016-02-10 Thread Morten Olav Hansen
Yeah, I agree that looks nice. I also like the idea of having several complete sample applications on github. Something we should aim for (more important that a general bootstrap app I think). On Wed, Feb 10, 2016 at 4:44 PM, Lars Helge Øverland wrote: > Hi, just a follow up on

Re: [Dhis2-devs-core] Default view of idObjects in field filter

2016-02-01 Thread Morten Olav Hansen
requests, so this should be the first place to start if you are seeing metadata related issues suddenly popping up -- Morten On Tue, Dec 22, 2015 at 5:49 PM, Lars Helge Øverland <larshe...@gmail.com> wrote: > Nice. > > On Tue, Dec 22, 2015 at 11:32 AM, Morten Olav Hansen <morte...@

Re: [Dhis2-devs-core] pageSize in web-api

2016-02-03 Thread Morten Olav Hansen
Should be fixed now -- Morten On Wed, Feb 3, 2016 at 6:22 PM, Morten Olav Hansen <morte...@gmail.com> wrote: > Oh, sorry.. I see you mean pageSize.. I was thinking total count, sorry.. > let me see what I can do > > -- > Morten > > On Wed, Feb 3, 2016 at 6:19 PM, Ab

Re: [Dhis2-devs-core] Apps menu Vs Maps in dashboard

2016-02-29 Thread Morten Olav Hansen
Yes, have seen that too.. Reported to Jan and Mark On Monday, 29 February 2016, Abyot Asalefew Gizaw wrote: > Hi dears, > > Seems maps displayed in dashboard have higher z-index than the apps menu. > Apps menu is hiding behind map dashboard item. > > --- > Thank you, > Abyot. >

Re: [Dhis2-devs-core] YourKit Java Profiler Open Source License Request

2016-02-18 Thread Morten Olav Hansen
Yes, but the license is individual On Friday, 19 February 2016, Jason Pickering <jason.p.picker...@gmail.com> wrote: > Hi Morten, > Did you ever get a license for this? > > Regards, > Jason > > > On Mon, Sep 8, 2014 at 3:11 PM, Morten Olav Hansen <morte...@gmail.

Re: [Dhis2-devs-core] No dev meeting today

2016-03-23 Thread Morten Olav Hansen
 Happy Easter everyone. On Wednesday, 23 March 2016, Lars Helge Øverland <l...@dhis2.org> wrote: > Hi, > > There will be no dev meeting today due to Easter. > > Lars > -- -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org

Re: [Dhis2-devs-core] No dev meeting today

2016-03-23 Thread Morten Olav Hansen
Holidays should always be celebrated I guess? I know in this part of the world, we already have a big party going on. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, Mar 23, 2016 at 2:03 PM, Mark Polak <m...@dhis2.org> wrote: > Hap

Re: [Dhis2-devs-core] gis event clustering on dev

2016-03-29 Thread Morten Olav Hansen
bernate Spatial: > http://www.hibernatespatial.org > We will be upgrading to hibernate 5 in 2.24, which includes hibernatespatial, so that should make it easier -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org -- Mailing list: https://launchpad.net/

Re: [Dhis2-devs-core] No dev meeting today

2016-03-23 Thread Morten Olav Hansen
Yes, please have a very long island tea vacation. :) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, Mar 23, 2016 at 2:26 PM, Zubair Asghar Raja <zub...@dhis2.org> wrote: > Have a happy, peaceful, and fun Easter filled with mar

[Dhis2-devs-core] API Versioning

2016-05-23 Thread Morten Olav Hansen
versions in the future). -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org -- Mailing list: https://launchpad.net/~dhis2-devs-core Post to : dhis2-devs-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs-core More help : https

Re: [Dhis2-devs-core] DHIS2 demo admin password

2016-05-24 Thread Morten Olav Hansen
There are at least 4-5 different ways of doing it though... /api/userAccount, /api/me, any kind of user import etc... -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Tue, May 24, 2016 at 2:39 PM, Jason Pickering < jason.p.picker...@gmail.com>

Re: [Dhis2-devs-core] this week

2016-05-09 Thread Morten Olav Hansen
Thanks On Tuesday, 10 May 2016, Lars Helge Øverland <l...@dhis2.org> wrote: > Sure. I have put "surveillance meeting" on the core dev calendar tomorrow > morning; click on the Hangout links in the meeting to join, will set it up. > > On Mon, May 9, 2016 at 8:40

[Dhis2-devs-core] Empty string as null

2016-07-26 Thread Morten Olav Hansen
JSON and XML payloads -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org -- Mailing list: https://launchpad.net/~dhis2-devs-core Post to : dhis2-devs-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs-core More help : https

[Dhis2-devs-core] Filtered metadata export / legacy importer

2016-08-02 Thread Morten Olav Hansen
for this functionality 2) The legacy importer endpoint (not internal code yet) has been removed, and /api/metadata is not pointing to the new importer -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org -- Mailing list: https://launchpad.net/~dhis2-devs-core Post

[Dhis2-devs-core] @JsonView deprecated

2016-08-02 Thread Morten Olav Hansen
Hi everyone All usage of @JsonView should now be considered deprecated, I have removed all usage of it, and the view classes have been removed. You should rely on field filters if you want to filter down a result from now on (most endpoints do already) -- Morten Olav Hansen Senior Engineer

[Dhis2-devs-core] Removing of Jackson XML/JSON view resolvers

2016-08-03 Thread Morten Olav Hansen
, or generally doing nothing to report back. The quickfix to this is to simply set: @ResponseStatus( HttpStatus.NO_CONTENT ) on the method, I will go through most of the controllers now and check.. but let me know if you see error similar to above -- Morten Olav Hansen Senior Engineer, DHIS 2

Re: [Dhis2-devs-core] 2.24 Branch

2016-07-07 Thread Morten Olav Hansen
Just want to add in that API V25 is now there ;) /api/25 so please update :) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jul 7, 2016 at 6:30 PM, Halvdan Hoem Grelland <halv...@dhis2.org> wrote: > Ok, it seems Mark's advice on branching

[Dhis2-devs-core] 2.24 Branch

2016-07-01 Thread Morten Olav Hansen
update both 2.24 branch and 2.25-SNAPSHOT if you have anything that needs to be in 2.24 release. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org -- Mailing list: https://launchpad.net/~dhis2-devs-core Post to : dhis2-devs-core@lists.launchpad.net Unsubscribe