DXF Imports in 2.6 (Concepts and Constants)

Hi there. I am having big problems importing from 2.6 to 2.6 systems. Impor=
ting from 2.5 to 2.6 seems to work OK, with some caveats. However, import b=
etween 2.6 systems is broken . There seem to be several issues which I have=
discussed off list with both Bob and Hieu, but there are some design issue=
s around these objects which I wanted to raise to the group. First, there a=
re a number of objects which thrown UnsupportedOperationExceptions if there=
is a match=0A
=A0 =A0 @Override=A0 =A0 protected void importMatching( Concept object, Con=
cept match )=A0 =A0 {=A0 =A0 =A0 =A0 throw new UnsupportedOperationExceptio=
n( "Concept can only be unique or duplicate" );=0A=A0 =A0 }
for instance.=A0
What is the intention with this? If the concept matches, shouldn't we simpl=
y ignore it? Perhaps I am misunderstanding something here.=A0=0A
Regardless, for the case of constants, I am of the opinion that once they h=
ave been added to the system they should essentially by inviolable, meaning=
they should not be able to be updated from a DXF import. Otherwise, they a=
re not really a constant.=A0=0A
The workaround which I have for the moment is to change the minor version t=
o 1.2 and remove the entire block of DXF which contains the constants.=A0
Thoughts?
=0ARegards,Jason

=0A
-----Inline Attachment Follows-----

ยทยทยท

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to=A0 =A0=A0=A0: dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help=A0=A0=A0: https://help.launchpad.net/ListHelp

--1629084922-67923197-1328264416=:19570
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" ><tr><td valign=3D"=
top" style=3D"font: inherit;">Thanks Jason for this.<div><span style=3D"fon=
t-size: 10pt; ">There are other issues with dxf import in 2.6.</span></div>=
<div>We just reported an issue...</div><div><br></div><div>Ime<br><br>--- O=
n <b>Fri, 2/3/12, Jason Pickering <i>&lt;jason.p.pickering@gmail.com&gt;</i=

</b> wrote:<br><blockquote style=3D"border-left: 2px solid rgb(16, 16, 255=

); margin-left: 5px; padding-left: 5px;"><br>From: Jason Pickering &lt;jaso=
n.p.pickering@gmail.com&gt;<br>Subject: [Dhis2-devs] DXF Imports in 2.6 (Co=
ncepts and Constants)<br>To: "dhis2-devs" &lt;dhis2-devs@lists.launchpad.ne=
t&gt;<br>Date: Friday, February 3, 2012, 9:34 AM<br><br><div id=3D"yiv53865=
0431">Hi there. I am having big problems importing from 2.6 to 2.6 systems.=
Importing from 2.5 to 2.6 seems to work OK, with some caveats. However, im=
port between 2.6 systems is broken . There seem to be several issues which =
I have
discussed off list with both Bob and Hieu, but there are some design issue=
s around these objects which I wanted to raise to the group. First, there a=
re a number of objects which thrown UnsupportedOperationExceptions if there=
is a match<div>=0A<br></div><div><div><div>&nbsp; &nbsp; @Override</div><d=

&nbsp; &nbsp; protected void importMatching( Concept object, Concept mat=

ch )</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; throw =
new UnsupportedOperationException( "Concept can only be unique or duplicate=
" );</div>=0A<div>&nbsp; &nbsp; }</div></div></div><div><br></div><div>for =
instance.&nbsp;</div><div><br></div><div>What is the intention with this? I=
f the concept matches, shouldn't we simply ignore it? Perhaps I am misunder=
standing something here.&nbsp;</div>=0A<div><br></div><div>Regardless, for =
the case of constants, I am of the opinion that once they have been added t=
o the system they should essentially by inviolable, meaning they should not=
be able to be updated from a DXF import. Otherwise, they are not really a =
constant.&nbsp;</div>=0A<div><br></div><div>The workaround which I have for=
the moment is to change the minor version to 1.2 and remove the entire blo=
ck of DXF which contains the constants.&nbsp;</div><div><br></div><div>Thou=
ghts?</div><div><br></div>=0A<div>Regards,</div><div>Jason</div><div><br></=

<div><br></div>=0A</div><br>-----Inline Attachment Follows-----<br><br>=

<div class=3D"plainMail">_______________________________________________<br=

Mailing list: <a href=3D"https://launchpad.net/~dhis2-devs&quot; target=3D"_bla=

nk">https://launchpad.net/~dhis2-devs&lt;/a&gt;&lt;br&gt;Post to&nbsp; &nbsp;&nbsp;&nbs=
p;: <a ymailto=3D"mailto:dhis2-devs@lists.launchpad.net" href=3D"/mc/compos=
e?to=3Ddhis2-devs@lists.launchpad.net">dhis2-devs@lists.launchpad.net</a><b=

Unsubscribe : <a href=3D"https://launchpad.net/~dhis2-devs&quot; target=3D"_bl=

ank">https://launchpad.net/~dhis2-devs&lt;/a&gt;&lt;br&gt;More help&nbsp;&nbsp;&nbsp;: =
<a href=3D"https://help.launchpad.net/ListHelp&quot; target=3D"_blank">https://h=
elp.launchpad.net/ListHelp</a><br></div></blockquote></div></td></tr></tabl=

--1629084922-67923197-1328264416=:19570--