Re: module_id for global module

Johannes Höchstädter <[email protected]> Fri, 12 Feb 2010 10:04:04 +0100
Newsgroups gmane.comp.java.scarab.devel
Message-ID <[email protected]>
I created an issue for this: SCB3019

Am 10.02.2010 13:03, schrieb Johannes H=C3=B6chst=C3=A4dter:
> Hi everybody,
>
> As our efforts for releasing b22 are going on, we realized the following:
>
> The initial issue is, that the default data for "scarab_attribute_group"
> is not visible after a fresh install in the UI. I can create a new
> module, which  inherits the attribute groups correctly from the global
> definitions, but as said, I can't see the global attributegroups in the
> UI, and thus they can't be edited.
>
> As I found out, for module_id in "scarab_attribute_group" "null" values
> are supported since introduction for global issue types (e.g. see file
> scarab_schema.xml, revision 5670 line 282). In "scarab_attribute_group"
> "null" is used for attribute "module_id" for the global data if the
> attribute group is created via UI. But there is, historically(?), the id
> "0", which stands for the global module too?
> I found out that not in every case the global module id is handled as
> "null", in general scarab supports both, "0" and "null" depending on the
> scope (e.g. "scarab_attribute_group", "scarab_issue_type")
>
> In default data the value for the attribute groups is "0". That's what's
> causing the issue.
>
> Question: Should both 0 and "null" be supported, or is there a long term
> goal to unifiy this? Our preference would be "0".
>
> Possible current fixes will be
> 1. Change the default data to use "null" (see question above?) - not
> preferred
> 2. Implement the attribute_group uses "0" (see file IssueType.java,
> revision 8711, line 412) - preferred
> 3. Implement the attribute_group uses both "0" and "null" (see file
> IssueType.java, revision 8711, line 412) - not preferred, but maybe
> safer than 2.
>
> Additionally, 2 would need attention for the database update scripts, as
> it seems there are mixed value in the databases around/in use. Maybe
> some can check this on his installation.
>
> cheers
>
>   =20

--=20

Johannes H=C3=B6chst=C3=A4dter
www.memocomp.de

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3D455&dsMessageId=3D24=
47014

To unsubscribe from this discussion, e-mail: [[email protected]=
.org].