module_id for global module
Johannes Höchstädter <[email protected]> Wed, 10 Feb 2010 13:03:44 +0100
| Newsgroups | gmane.comp.java.scarab.devel |
|---|---|
| Message-ID | <[email protected]> |
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"=20 is not visible after a fresh install in the UI. I can create a new=20 module, which inherits the attribute groups correctly from the global=20 definitions, but as said, I can't see the global attributegroups in the=20 UI, and thus they can't be edited. As I found out, for module_id in "scarab_attribute_group" "null" values=20 are supported since introduction for global issue types (e.g. see file=20 scarab_schema.xml, revision 5670 line 282). In "scarab_attribute_group"=20 "null" is used for attribute "module_id" for the global data if the=20 attribute group is created via UI. But there is, historically(?), the id=20 "0", which stands for the global module too? I found out that not in every case the global module id is handled as=20 "null", in general scarab supports both, "0" and "null" depending on the=20 scope (e.g. "scarab_attribute_group", "scarab_issue_type") In default data the value for the attribute groups is "0". That's what's=20 causing the issue. Question: Should both 0 and "null" be supported, or is there a long term=20 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=20 preferred 2. Implement the attribute_group uses "0" (see file IssueType.java,=20 revision 8711, line 412) - preferred 3. Implement the attribute_group uses both "0" and "null" (see file=20 IssueType.java, revision 8711, line 412) - not preferred, but maybe=20 safer than 2. Additionally, 2 would need attention for the database update scripts, as=20 it seems there are mixed value in the databases around/in use. Maybe=20 some can check this on his installation. cheers --=20 Johannes H=C3=B6chst=C3=A4dter www.memocomp.de ------------------------------------------------------ http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3D455&dsMessageId=3D24= 46384 To unsubscribe from this discussion, e-mail: [[email protected]= .org].