Re: [Dhis2-devs] [Dhis2-users] Digit group separator in pivot table - what should the default value be?

2016-05-03 Thread Morten Olav Hansen
In Vietnam it's also comma, so a system wide solution would be good (not for output only, but only for input would be good.. if possible) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, May 4, 2016 at 12:56 PM, ramaso hasina wrote: > Su

Re: [Dhis2-devs] Support of "IN" clauses in SQL Views / Queries?

2016-05-04 Thread Morten Olav Hansen
@Lars: possibly, at least the parsing logic.. that said, most of the object filter stuff does automatic translation of properties etc.. so it is only allowed to work on exposed properties, which I think is not good enough for SQLViews.. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of

Re: [Dhis2-devs] Null pointer exception calling .../api/me/programs

2016-05-09 Thread Morten Olav Hansen
urself, or is it coming from another system? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchp

Re: [Dhis2-devs] Null pointer exception calling .../api/me/programs

2016-05-09 Thread Morten Olav Hansen
And yes, we don't allow null in the categoryCombo field from 2.23 and upwards -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Mon, May 9, 2016 at 2:15 PM, Morten Olav Hansen wrote: > > On Mon, May 9, 2016 at 1:47 PM, Lars Helge Øverla

Re: [Dhis2-devs] Fwd: An issue in the GIS map plug-in - legendSet id

2016-05-09 Thread Morten Olav Hansen
Hi Seems you are getting a 404.. which means that the object UID is not correct, maybe you need to double check it? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Mon, May 9, 2016 at 3:21 PM, Chameera Mirihella wrote: > please see the forwar

Re: [Dhis2-devs] Fwd: An issue in the GIS map plug-in - legendSet id

2016-05-09 Thread Morten Olav Hansen
Hm, ok.. Yes, they are currently named LegendSet, so maybe there was a rename at some point. Btw, did you try to use v221 ? or did you use the default old version that it says in docs? the version must match your dhis 2 version -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo

Re: [Dhis2-devs] [Dhis2-users] Error Deleting TEI with WebAPI in 2.22

2016-05-09 Thread Morten Olav Hansen
Hi Sam Just had a look, the parameter should be strategy=X not importStrategy=X, I will update the docs -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Mon, May 9, 2016 at 12:51 PM, Sam Kasozi wrote: > The confusion in adding the trackedEntity

Re: [Dhis2-devs] Pushing events through the API without the eventdate

2016-05-09 Thread Morten Olav Hansen
Hi Jose Yes, I see that we actually allow null for eventDates (and we don't default to anything). Maybe it would make sense to default to current date? we do that for dueDate, Abyot you agree? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Tue, M

Re: [Dhis2-devs] Pushing events through the API without the eventdate

2016-05-10 Thread Morten Olav Hansen
Hi, I haven't done this fix yet, but I think until we have a better solution I will set it to current date, saving it as null in the database is not a good option. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, May 11, 2016 at 10:37 AM,

Re: [Dhis2-devs] Pushing events through the API without the eventdate

2016-05-10 Thread Morten Olav Hansen
This is now fixed and backported down to 2.21, please give our servers some time to build new WAR files. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, May 11, 2016 at 10:39 AM, Morten Olav Hansen wrote: > Hi, > > I haven't done thi

Re: [Dhis2-devs] Pushing events through the API without the eventdate

2016-05-10 Thread Morten Olav Hansen
Hi Jose Sorry, had to revert this for now, according to Markus we have some hardcoded logic around this in our TC/EC clients, which might cause issues. Markus will fix it, and the re-apply the patch when he can. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2

Re: [Dhis2-devs] DHIS2 Docs

2016-05-11 Thread Morten Olav Hansen
lvdan answer that. We already have a filestore abstraction internally (which allows for adding files to data elements), but I'm not sure if the plans is to have this as a more generic functionality. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On T

Re: [Dhis2-devs] Status of ImportSummaries in /api/events

2016-05-11 Thread Morten Olav Hansen
art is not started yet, so let's see). @Abyot: are you using this returned status for anything in your EC/TC apps? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, May 12, 2016 at 12:52 PM, Aamer Mohammed wrote: > Hi > > We are using /

Re: [Dhis2-devs] Status of ImportSummaries in /api/events

2016-05-11 Thread Morten Olav Hansen
No, I mean for the new DXF2 importer, I'm sorry (I assume you are also working on the metadata sync importer). The event importer has not had any changes done. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, May 12, 2016 at 1:44 PM, Aamer Moh

Re: [Dhis2-devs] [Dhis2-users] Status of ImportSummaries in /api/events

2016-05-12 Thread Morten Olav Hansen
Hi Vanya Yes, I agree it's not correct. I just want to wait for feedback from Abyot or Markus before I change anything, so it won't break EC/TC. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, May 12, 2016 at 4:51 PM, henri claude moun

Re: [Dhis2-devs] Pushing events through the API without the eventdate

2016-05-12 Thread Morten Olav Hansen
Hi Jose Could you pinpoint where in the TC app this is required? according to Markus, it shouldn't be.. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, May 12, 2016 at 4:59 PM, Jose Garcia Muñoz wrote: > > Ok, thanks Morten, > >

Re: [Dhis2-devs] Pushing events through the API without the eventdate

2016-05-12 Thread Morten Olav Hansen
Oh ok, because nulls should be allowed from what I heard, but I will allow Markus to fill in the blanks. :) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, May 12, 2016 at 5:17 PM, Jose Garcia Muñoz wrote: > > Hi Morten, > > the pr

Re: [Dhis2-devs] [Dhis2-users] Status of ImportSummaries in /api/events

2016-05-12 Thread Morten Olav Hansen
in our new reporting classes. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis

Re: [Dhis2-devs] [Dhis2-users] Status of ImportSummaries in /api/events

2016-05-13 Thread Morten Olav Hansen
Sure, sounds fine Vanya. Will you be able to provide a patch? :) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, May 13, 2016 at 2:30 PM, Vanya Seth wrote: > Hi Morten > > So, I am hoping, if its a conflict you will send the ImportSumma

[Dhis2-devs] [Bug 1581170] Re: add existing locale results in 500

2016-05-17 Thread Morten Olav Hansen
Hi Jason Which version is this? I'm not getting that error.. ** Attachment added: "Screen Shot 2016-05-18 at 12.14.10.png" https://bugs.launchpad.net/dhis2/+bug/1581170/+attachment/4665120/+files/Screen%20Shot%202016-05-18%20at%2012.14.10.png -- You received this bug notification because yo

Re: [Dhis2-devs] Default password to Demo server has been changed

2016-05-18 Thread Morten Olav Hansen
It's District1 (someone has changed it), will be reset by midnight -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, May 18, 2016 at 2:49 PM, Sam Kasozi wrote: > FYI > > Sam Kasozi > +256 788-993-565 >

[Dhis2-devs] [Bug 1583507] Re: [api] Validating a payload against /api/schemas

2016-05-19 Thread Morten Olav Hansen
** Changed in: dhis2 Importance: Undecided => High ** Changed in: dhis2 Milestone: None => 2.24 ** Changed in: dhis2 Status: New => Confirmed ** Changed in: dhis2 Assignee: (unassigned) => Morten Olav Hansen (mortenoh) -- You received this bug notification becau

[Dhis2-devs] [Bug 1583507] Re: [api] Validating a payload against /api/schemas

2016-05-19 Thread Morten Olav Hansen
Fixed now in trunk, the @Property annotation now allows to override required settings from the HBM files. ** Changed in: dhis2 Status: Confirmed => Fix Committed -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.

Re: [Dhis2-devs] Patch review for api change to support fields filter in GET completeDataSetRegistrations and dataApprovals/status

2016-05-19 Thread Morten Olav Hansen
Hi Thanks for the patch, I have applied it now, I ended up change 2.22/2.23 to be equal, and applied your trunk patch to trunk only. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, May 19, 2016 at 7:07 PM, jhansi wrote: > Hello Dhis-D

Re: [Dhis2-devs] openid configuration for MS Azure AD

2016-05-22 Thread Morten Olav Hansen
Hi We don't support OpenID Connect, only OpenID. Not sure if your software supports that? We also have LDAP support, did you look into that? http://dhis2.github.io/dhis2-docs/master/en/implementer/html/ch08s05.html -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo

Re: [Dhis2-devs] openid configuration for MS Azure AD

2016-05-22 Thread Morten Olav Hansen
I have added a blueprint for OpenID Connect support [1], but this will not be in 2.24, hopefully 2.25 if time allows it. [1] https://blueprints.launchpad.net/dhis2/+spec/security-openid-connect -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Mon, May 23

Re: [Dhis2-devs] [Dhis2-users] Missing app icons when upgrading to 2.21 and 2.22

2016-05-23 Thread Morten Olav Hansen
, they will not be able to use it. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https:/

Re: [Dhis2-devs] HighCharts usage in dhis

2016-05-24 Thread Morten Olav Hansen
Hi I think you can assume that HC is available (there are some licensing issues, but I think that has been resolved). As long as your app is "DHIS 2 Only" i think it's OK. Lars was part of that negotiation, so he will know details. -- Morten Olav Hansen Senior Engineer, DHIS

Re: [Dhis2-devs] HighCharts usage in dhis

2016-05-24 Thread Morten Olav Hansen
ed to use the library now...) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, May 25, 2016 at 1:39 AM, Morten Olav Hansen wrote: > Hi > > I think you can assume that HC is available (there are some licensing > issues, but I think that

Re: [Dhis2-devs] [Dhis2-users] thomas lindsjørn joins as android developer

2016-05-24 Thread Morten Olav Hansen
Welcome to the team! :) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, May 25, 2016 at 8:06 AM, Thuy Nguyen wrote: > Welcome Thomas! > > Thuy > > On Wed, May 25, 2016 at 2:08 AM, Bob Jolliffe > wrote: > >> welcome Tho

Re: [Dhis2-devs] Problem creating the parent org unit through the API

2016-05-25 Thread Morten Olav Hansen
Hi Sergio So you are creating a new root? Could it be that your user is attached to a different org unit, and so the problem is that you can't see them? Maybe you could verify in the database, or using the web-api? /api/organisationUnits.json?filter=name:like:abc -- Morten Olav Hansen S

Re: [Dhis2-devs] Problem creating the parent org unit through the API

2016-05-25 Thread Morten Olav Hansen
lt;http://www.ehas.org/>* > E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040 > Madrid - España > Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62 > > > > 2016-05-25 13:13 GMT+02:00 Morten Olav Hansen : > >> Hi Sergio >> >> So you ar

Re: [Dhis2-devs] Read fileResource data directly

2016-06-02 Thread Morten Olav Hansen
Did you have a look at the data store API? [1], you could also use the user setting API to store it (if its small enough) [2] [1] http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s67.html [2] http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s46.html -- Morten Olav

Re: [Dhis2-devs] Read fileResource data directly

2016-06-02 Thread Morten Olav Hansen
Ok, but why do you need to store it in the server at all? can't you just process it on the client? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 2, 2016 at 2:16 PM, chathura widanage < chathurawidan...@gmail.com> wrote:

Re: [Dhis2-devs] Read fileResource data directly

2016-06-02 Thread Morten Olav Hansen
Yeah, I think it's fairly recent.. if you don't have to support every single version of IE.. I think it's safe to use it :) (it also removes the need to store tmp files on the server) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, J

Re: [Dhis2-devs] WebApi failing Email, FileResources and

2016-06-02 Thread Morten Olav Hansen
Hi Mike I'm adding in the dev list, and Halvdan (who knows about file resource API). I will have a look at the start as app functionality. -- Morten On Thu, Jun 2, 2016 at 5:00 PM, Mike Nelushi wrote: > Hi Calle, > > Apologies, forgot to add you on this thread. > > Regards > Mike > On 2 Jun 20

Re: [Dhis2-devs] ouwt Tree

2016-06-02 Thread Morten Olav Hansen
Hi Eric Have you had a look at our d2-ui library? the ouwt widget is kinda flaky, and should probably not be used in new applications if you don't have to.. We have a new tree widget from 2.23 I believe it is, Mark can fill you in on the details -- Morten Olav Hansen Senior Engineer, D

Re: [Dhis2-devs] WebApi failing Email, FileResources and

2016-06-02 Thread Morten Olav Hansen
Hi Yes, there is an issue with start page as app, I have notified the developers of the settings app -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Jun 3, 2016 at 9:58 AM, Morten Olav Hansen wrote: > Hi Mike > > I'm adding in the

Re: [Dhis2-devs] WebApi failing Email, FileResources and

2016-06-03 Thread Morten Olav Hansen
need to select them manually... -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Jun 3, 2016 at 6:24 PM, Mike Nelushi wrote: > Hi Morten, > > The messageConversations web-api is still a big issue because we need to > send each user spec

Re: [Dhis2-devs] WebApi failing Email, FileResources and

2016-06-03 Thread Morten Olav Hansen
Before Lars answers Mike, can you provide us with a detailed bug report on launchpad? it will help us track this bug, I can have a look on Monday -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Jun 3, 2016 at 6:26 PM, Morten Olav Hansen wrote

Re: [Dhis2-devs] WebApi failing Email, FileResources and

2016-06-03 Thread Morten Olav Hansen
Hi Calle Out of curiosity... how can they login with this "PIN-code" is it simply the set password for their account? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Jun 3, 2016 at 6:52 PM, Calle Hedberg wrote: > Hi, > > Sin

Re: [Dhis2-devs] WebApi failing Email, FileResources and

2016-06-03 Thread Morten Olav Hansen
Ok, I just saw `Login using PIN-code for account`, maybe you are using a custom apps for this.. I saw you bug report, we will have a look at it -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Jun 3, 2016 at 7:18 PM, Mike Nelushi wrote: >

Re: [Dhis2-devs] WebApi failing Email, FileResources and

2016-06-03 Thread Morten Olav Hansen
Ok, Calle, thanks for the info :) so when you say custom app.. I guess it's Android? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Jun 3, 2016 at 7:52 PM, Calle Hedberg wrote: > Morten, > > Sorry if my brief wasn't 100% clear

Re: [Dhis2-devs] WebApi failing Email, FileResources and

2016-06-03 Thread Morten Olav Hansen
Hm ok, just trying to understand the workflow... to get to a d2 custom app.. they need to 1) login 2) enter pin ? is that right? so its double? all d2 apps are now covered by spring sec interceptors... -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri

Re: [Dhis2-devs] Error importing new user accounts

2016-06-05 Thread Morten Olav Hansen
Hi Juan Looks like you are using our old importer, could you try and send your payload to /api/23/metadata (if you are sending a single user, please wrap it in "user": []) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Sat, Jun 4, 2016 at 6:1

Re: [Dhis2-devs] Error importing new user accounts

2016-06-06 Thread Morten Olav Hansen
Hi Juan Yes, both XML and JSON should be supported (if you are using a recent 2.23). If it's not working, please send me the payload.. and I will create a unit test for it (our new importer is fully tested, including many many tests for user imports) -- Morten Olav Hansen Senior Engineer,

Re: [Dhis2-devs] Generating a word document in dhis

2016-06-06 Thread Morten Olav Hansen
cally be supporting `iReport` like reports, just with `.docx` as output instead of `.pdf` ? (so that would include, charts, text, etc) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Mon, Jun 6, 2016 at 12:54 PM, Vanya Seth wrote: > Hi Devs > > It wo

Re: [Dhis2-devs] Error importing new user accounts

2016-06-06 Thread Morten Olav Hansen
gards, > JM > > On Mon, 6 Jun 2016, 09:36 Morten Olav Hansen, > wrote: > >> Hi Juan >> >> Yes, both XML and JSON should be supported (if you are using a recent >> 2.23). If it's not working, please send me the payload.. and I will create >> a

[Dhis2-devs] [Bug 1589539] Re: Importing program tracked entity attributes fails on dimensionItem

2016-06-07 Thread Morten Olav Hansen
Fixed in trunk and 2.23 ** Changed in: dhis2 Status: New => Fix Committed ** Changed in: dhis2 Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/15

Re: [Dhis2-devs] [Dhis2-users] Creation of CategoryOptionCombinations

2016-06-07 Thread Morten Olav Hansen
#x27;d be very happy about comments. > > Thanks in advance, > > Uwe > > _______ > Mailing list: https://launchpad.net/~dhis2-users > Post to : dhis2-us...@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-users

Re: [Dhis2-devs] [Dhis2-users] Creation of CategoryOptionCombinations

2016-06-07 Thread Morten Olav Hansen
another utility.. the import part would be the same, but the UI in 2.23 can not be used, as it's hardcoded to legacy importer. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Tue, Jun 7, 2016 at 11:25 PM, Uwe Wahser wrote: > Hi Morten, > > no,

Re: [Dhis2-devs] [Dhis2-users] Creation of CategoryOptionCombinations

2016-06-07 Thread Morten Olav Hansen
more info about it in the release notes. And no, the UI is not switched to new importer yet (in 2.24), not 100% it will... > > Thanks for your replies at this time of the day :-) > > Regards, Uwe > > --- > > > > Morten Olav Hansen hat am 7. Juni 2016 um 19:28 > >

Re: [Dhis2-devs] Unique tracked entity attributes are now compulsory?

2016-06-08 Thread Morten Olav Hansen
Hi Sorry for late reply, but I have been looking into this, and from the backend this is not required. I'm adding in Abyot, hopefully he can answer why it is required in the UI part (I see it's marked with red star, and it will not allow it without a value) -- Morten Olav Hansen Senio

Re: [Dhis2-devs] Issue with import using the /api/24/metadata (trunk)

2016-06-09 Thread Morten Olav Hansen
to be 100% import compatible (a lot of stuff is now being validated on import, which does not have constraints in the database) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 9, 2016 at 6:03 PM, Vanya Seth wrote: > Hi Devs > > We have

Re: [Dhis2-devs] Issue with import using the /api/24/metadata (trunk)

2016-06-09 Thread Morten Olav Hansen
se who has it though? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 9, 2016 at 6:12 PM, Vanya Seth wrote: > Hi Morten > > Thanks for the response. But would it be possible to share some other DB > that DHIS uses for testing? >

Re: [Dhis2-devs] Export Metadata - Error with Content-Type header

2016-06-13 Thread Morten Olav Hansen
Hi Paulo Is there any reason you are doing this request? I assume you want XML back? you dont need to set input content-type as you are not sending anything, and some of our internal gets a bit confused because of this... removing content-type makes it work -- Morten Olav Hansen Senior Engineer

Re: [Dhis2-devs] Export Metadata - Error with Content-Type header

2016-06-13 Thread Morten Olav Hansen
No, that won't work right now, that endpoint is anyways getting deprecated (replaced by /api/23/metadata and /api/24/metadata) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Mon, Jun 13, 2016 at 4:11 PM, Paulo Grácio wrote: > Hi Morten,

Re: [Dhis2-devs] Export Metadata - Error with Content-Type header

2016-06-13 Thread Morten Olav Hansen
} there is a bigger risk that your app will break going forward. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Tue, Jun 14, 2016 at 12:18 AM, Jason Pickering < jason.p.picker...@gmail.com> wrote: > Hi Morten, > I am a bit confused by this. Wil

Re: [Dhis2-devs] multilingual DHIS2 API and SDK

2016-06-13 Thread Morten Olav Hansen
Hi Jose We have re-implemented the way translations work in 2.24, so this should not be a problem anymore, even nested field queries will be translated (as long as the app is using displayName and not name), it will require a bit more testing, but it should work fine -- Morten Olav Hansen

Re: [Dhis2-devs] multilingual DHIS2 API and SDK

2016-06-13 Thread Morten Olav Hansen
Hi again I'm not sure how this is handled in the SDK, but unless they are using translate=false, it should "just work". Of course they must be using `displayName` etc, but probably they are already doing that (I'm sure Araz can confirm if that's the case) -- Morten Ol

Re: [Dhis2-devs] Export Metadata - Error with Content-Type header

2016-06-14 Thread Morten Olav Hansen
lements.json All works on latest trunk -- Morten > Thanks, > Paulo > > On Tue, Jun 14, 2016 at 4:35 AM Morten Olav Hansen > wrote: > >> Hi Jason >> >> Yes, the idea is that your app should target a specific API version. We >> are discussing lettin

Re: [Dhis2-devs] Export Metadata - Error with Content-Type header

2016-06-14 Thread Morten Olav Hansen
Ah, ok.. so in 2.23, only /api/23/metadata endpoint is versioned.. nothing else, everything will be part of 2.24 -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Tue, Jun 14, 2016 at 3:29 PM, Paulo Grácio wrote: > Version: > 2.23 > Build

Re: [Dhis2-devs] Export Metadata - Error with Content-Type header

2016-06-14 Thread Morten Olav Hansen
Yes, that should be fine -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Tue, Jun 14, 2016 at 3:36 PM, Paulo Grácio wrote: > Ok, thanks for the clarification. > > Can I use this war to build a docker image to run system tests? > https://w

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-14 Thread Morten Olav Hansen
Hi Paulo I have made a few changes to trunk and 2.23 which might help you. That said, there are still a few cases where deletion will not be allowed. You could also try to simple disable the user, so they are not allowed to login. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-14 Thread Morten Olav Hansen
internal error which doesn't really mean anything to the end user). -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Tue, Jun 14, 2016 at 4:42 PM, Jason Pickering < jason.p.picker...@gmail.com> wrote: > Hi Morten, > > As we continue wit

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-14 Thread Morten Olav Hansen
Hi We usually turn off most of that Jackson auto discovery magic, I see we haven't done that properly in Jackson*, I will add that now (so it follows JacksonUtils, RenderService etc) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Tue, Jun 14, 2016

Re: [Dhis2-devs] Export Metadata - Error with Content-Type header

2016-06-14 Thread Morten Olav Hansen
t DTOs are still going on. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Tue, Jun 14, 2016 at 7:48 PM, Vanya Seth wrote: > Hi Morten > > Supporting API versioning is great but why do we want to get rid of the > previous versions as you explained

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-14 Thread Morten Olav Hansen
Already done :) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, Jun 15, 2016 at 11:50 AM, Vanya Seth wrote: > Hi Morten > > That would be great. Please let us know when you commit the changes. We ll > take a merge from the trunk.

Re: [Dhis2-devs] Export Metadata - Error with Content-Type header

2016-06-14 Thread Morten Olav Hansen
versioning we definitely need to introduce the DTO abstraction, but let's see.. not for 2.24 at least -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, Jun 15, 2016 at 11:53 AM, Vanya Seth wrote: > Adding DTO layer makes sense :). It will

Re: [Dhis2-devs] Transfer Dataset from one server to another

2016-06-14 Thread Morten Olav Hansen
#d0e2525 Of course, if you export from 2.23, and import into 2.24.. you might still need some updates to your metadata. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, Jun 15, 2016 at 1:45 PM, Mohammad Ullah wrote: > Dear All, > > I was lo

Re: [Dhis2-devs] Metadata import from 2.18 to 2.23

2016-06-15 Thread Morten Olav Hansen
gon` to `POLYGON`, but if you are importing a large payload of metadata, you will probably see lots of other issues. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 12:28 AM, Juma Lungo wrote: > Hi > > Please advise how

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-15 Thread Morten Olav Hansen
the event you are sending. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, Jun 15, 2016 at 7:46 PM, Anilkumar Kodi wrote: > Hi Morten, > > This is still looking for other 2 properties to map while deserializing, > we are

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-15 Thread Morten Olav Hansen
x27;t think it will be fixed in time for 2.24, at least now our error message should be a bit more clear -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Tue, Jun 14, 2016 at 7:26 PM, Paulo Grácio wrote: > Hi, > > maybe I'm missing something

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Morten Olav Hansen
204? for which endpoint? that doesn't sound right :) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 2:22 PM, Paulo Grácio wrote: > Great, getting a 204. > > On Thu, Jun 16, 2016 at 8:39 AM Morten Olav H

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Morten Olav Hansen
Right, so the user was deleted? 204 is expected for that. It's only for server errors I have changed -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 2:26 PM, Paulo Grácio wrote: > http://localhost:8085/api/users/URq9lLcM8ID

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Morten Olav Hansen
It will return same status as before (500) but now it will return a web message payload with info (from hibernate) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 3:01 PM, Jason Pickering < jason.p.picker...@gmail.com> wrote

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Morten Olav Hansen
Right, but I don't see why you have valid in the payload to start with? normal event export will not include this -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 4:52 PM, Anilkumar Kodi wrote: > Hi Morten > > This is

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Morten Olav Hansen
On Thu, Jun 16, 2016 at 6:02 PM, Anilkumar Kodi wrote: > executeAnonymousEventPush What is that? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org ___ Mailing list: https://launchpad.net/~dhis2-devs Post

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Morten Olav Hansen
Hi If I was you I would use RenderService, this will have a properly pre-configured object mapper. When you just do new ObjectMapper() it uses all the defaults, which are incompatible with DHIS 2 (specifically it enabled auto-discovery) -- Morten Olav Hansen Senior Engineer, DHIS 2 University

Re: [Dhis2-devs] Sync Anonymous Event Data along with coordinates code fix

2016-06-16 Thread Morten Olav Hansen
Ok, great. We like to turn off some of this Jackson magic as most of the time you don't really want to expose all fields/getter (unless you have a very strict DTO) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 7:31 PM, Anil

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Morten Olav Hansen
Paulo, I think what you expect is that the user is deleted. That will not happen, maybe 2.27. Pleases make sure Jason is feeling you actual cases we can fix. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 16, 2016 at 11:44 PM, Paulo Grácio

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Morten Olav Hansen
Yeah, it should have rolled back.. so it partially deleting something? I don't think our `deletion handlers` does everything in the same transaction.. so it won't do a proper rollback.. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Jun 1

Re: [Dhis2-devs] [Bug 1538443] Re: Metadata import of users fails

2016-06-23 Thread Morten Olav Hansen
Hi Are you able to update to 2.23? in 2.23 we have a new importer at the /api/23/metadata endpoint which has much better support for (among other types) users -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jun 23, 2016 at 6:13 PM, Ifeanyi Okoye

Re: [Dhis2-devs] [Bug 1538443] Re: Metadata import of users fails

2016-06-23 Thread Morten Olav Hansen
t have access to cURL, you can install this package: https://github.com/bmatzelle/gow -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Jun 24, 2016 at 5:05 AM, wrote: > ‎Hello Morten, > > Would the upgrade to 2.23 allow me to do the import fr

Re: [Dhis2-devs] [Bug 1538443] Re: Metadata import of users fails

2016-06-23 Thread Morten Olav Hansen
orter in 2.25, so it seems like a good time to then switch over the UI also. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Jun 24, 2016 at 11:30 AM, Vanya Seth wrote: > Hi Morten > > The plan to move the UI as well to the new importer fun

Re: [Dhis2-devs] Bugs in DHIS new importer.

2016-06-24 Thread Morten Olav Hansen
Hi I will try and look into these issues, please be aware that I have done a lot of fixes to the importer in the last 2 days, so if this is from before that.. probably you need to re-test. Will go over them on Monday and see what can be fixed for release. -- Morten Olav Hansen Senior Engineer

Re: [Dhis2-devs] Bugs in DHIS new importer.

2016-06-24 Thread Morten Olav Hansen
Hi Alex Just to be clear, you are testing on /api/23/metadata or /api/24/metadata endpoints? TW testing does not apply to legacy importer (available on /api/metadata) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Jun 24, 2016 at 7:15 PM, Alex

Re: [Dhis2-devs] DHIS2 Documentation for Metadata Sync and Versioning

2016-06-27 Thread Morten Olav Hansen
Hi I'm not aware of any extra steps needed, I just built it fine here locally.. (mvn clean package), could be something local on your laptop? I see no complaints from our build server either -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Mon, J

Re: [Dhis2-devs] DHIS2 Documentation for Metadata Sync and Versioning

2016-06-27 Thread Morten Olav Hansen
Ok, good :) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Mon, Jun 27, 2016 at 4:13 PM, Aamer Mohammed wrote: > Yes Morten that was specific to my machine. The issue is identified and we > are able to build the package successfully. > >

Re: [Dhis2-devs] Bugs in DHIS new importer.

2016-06-28 Thread Morten Olav Hansen
> > - Sharing settings will sync only if you change any metadata of that > particular element along with change in sharing settings. > I'm not able to replicate this, was able to download objects, and change sharing settings (without changing anything else on the object), could you tell me more ab

Re: [Dhis2-devs] Bugs in DHIS new importer.

2016-06-28 Thread Morten Olav Hansen
> > @vanyas: Yes this was caught during the validation phase itself. The point > here would be to catch such issues during configuring metadata itself. The > use case was: We created some data set at HQ, synced to local. Then we > created a custom attribute for data set and made it mandatory. Then

Re: [Dhis2-devs] [Bug 1585883] Re: maintenance does not work in DHIS2 Live

2016-07-05 Thread Morten Olav Hansen
Hi I will update this tomorrow. That said, the war file extraction method should work (this is basically what we do when we make the live distribution). Please make sure you are testing in a incognito window. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org

Re: [Dhis2-devs] Question about uploading resources into DHIS2

2016-07-06 Thread Morten Olav Hansen
Hi Elmarie Just tried this, and in my case they are ending up in $DHIS2_HOME/documents, what is your home set to? are you sure the application can access that folder? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, Jul 6, 2016 at 11:23 PM, Elmarie

Re: [Dhis2-devs] [Dhis2-users] Format for date and time data entry fields

2016-07-06 Thread Morten Olav Hansen
://blueprints.launchpad.net/dhis2/+spec/tracker-support-datetime-value-type https://blueprints.launchpad.net/dhis2/+spec/data-entry-add-support-for-datetime -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jul 7, 2016 at 7:10 AM, Elmarie Claasen wrote: > Hi

Re: [Dhis2-devs] [Dhis2-users] WebAPI for register tracker instance

2016-07-06 Thread Morten Olav Hansen
s19.html -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jul 7, 2016 at 9:44 AM, channara rin wrote: > Hi all DHIS2, > do you know how can i use webAPI for register new tracker instance with > multiple e

Re: [Dhis2-devs] [Dhis2-users] WebAPI for register tracker instance

2016-07-06 Thread Morten Olav Hansen
ram stage.? > > On Thu, Jul 7, 2016 at 10:14 AM, Morten Olav Hansen > wrote: > >> Hi Channara >> >> You can follow the guides at [1] and then just add the >> "trackedEntityInstance" field to it to say the TEI it will add events for, >> and then th

Re: [Dhis2-devs] [Dhis2-users] WebAPI for register tracker instance

2016-07-07 Thread Morten Olav Hansen
In 2.24 we have added the ability to create TEI and enroll at same time which might be interesting for you On Thursday, 7 July 2016, channara rin wrote: > i see, thank alot for supporting... > > On Thu, Jul 7, 2016 at 11:56 AM, Morten Olav Hansen > wrote: > >> Ah yes, I

Re: [Dhis2-devs] Documentation for d2 library

2016-07-07 Thread Morten Olav Hansen
Hi Mark What is the plan regarding supporting multiple versions of D2js? will it follow DHIS 2 API versions, which means 3 versions always supported? (bugs mostly, but features if not too disruptive) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu

Re: [Dhis2-devs] Program export

2016-07-25 Thread Morten Olav Hansen
> > - is it intentional that optionSets are included, but not the options? > No, I will have a look and fix/backport > - is it intentional that custom forms are not included? > No, I will have a look and fix/backport > - even if the import succeeded (apart from missing options and custom > fo

Re: [Dhis2-devs] Program export

2016-07-25 Thread Morten Olav Hansen
The 2 issues should now be fixed and backported -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Mon, Jul 25, 2016 at 10:02 AM, Morten Olav Hansen wrote: > - is it intentional that optionSets are included, but not the options? >> > > No

  1   2   3   4   5   6   7   8   9   10   >