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exp;
branches;
next	1.11;

1.11
date	2001.05.11.19.38.56;	author leonardr;	state Exp;
branches;
next	1.10;

1.10
date	2001.05.01.21.47.22;	author leonardr;	state Exp;
branches;
next	1.9;

1.9
date	2001.04.05.00.32.59;	author leonardr;	state Exp;
branches;
next	1.8;

1.8
date	2001.01.04.22.50.05;	author jrobbins;	state Exp;
branches
	1.8.4.1;
next	1.7;

1.7
date	2000.12.21.07.36.40;	author jrobbins;	state Exp;
branches;
next	1.6;

1.6
date	2000.12.18.19.16.24;	author jrobbins;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2000.12.03.19.27.33;	author edk;	state Exp;
branches;
next	1.4;

1.4
date	2000.12.02.00.49.46;	author edk;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.22.08.46.58;	author jrobbins;	state Exp;
branches;
next	1.2;

1.2
date	2000.11.15.21.49.39;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.12.21.17.54;	author dlr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.17.54;	author dlr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.02.21.00.36.30;	author dlr;	state Exp;
branches;
next	;

1.6.2.1
date	2000.12.21.22.36.54;	author jrobbins;	state Exp;
branches;
next	1.6.2.2;

1.6.2.2
date	2001.01.04.22.51.22;	author jrobbins;	state Exp;
branches;
next	;

1.8.4.1
date	2001.04.05.00.46.41;	author jrobbins;	state Exp;
branches;
next	;


desc
@@


1.12
log
@Huge patch of the day: Got rid of redundant HELM_DOMAIN table. The project representation of the domain and the host is now the canonical one. Host and Domain now subclass ProjectGroup. The canonical representation of a project's membership in a domain group is now the corresponding mapping in HELM_PROJECT_PROJECTGROUP. Schema changes: No more HELM_DOMAIN table (obviously); no more DOMAIN_ID in HELM_PROJECT; HELM_USER and HELM_VC_VIEW now have foreign keys in HELM_PROJECT instead of HELM_DOMAIN.
@
text
@##############################################################################
# All regular projects go into the (assumed only) domain group.
# Note: If there is more than one domain group then projects will be
#       added to each one, and you don't want that.

insert into HELM_PROJECT_PROJECTGROUP (PROJECT_ID, PROJECT_GROUP_ID)
   select distinct Project.PROJECT_ID, G.PROJECT_ID
     from HELM_PROJECT as Project,
          HELM_PROJECT as G
     where (Project.TYPE = 'base' or Project.TYPE = 'category'
            or Project.TYPE = 'group')
       and G.TYPE = 'domain'
;

##############################################################################
# All domains go into the host group.

insert into HELM_PROJECT_PROJECTGROUP (PROJECT_ID, PROJECT_GROUP_ID)
   select distinct Project.PROJECT_ID, G.PROJECT_ID
     from HELM_PROJECT as Project,
          HELM_PROJECT as G	
     where Project.TYPE = 'domain'
       and G.TYPE = 'host'      
;

@


1.11
log
@A Heartbreaking Patch of Staggering Genius: adds capacity (but no interface) for deeply nested projects, categories, and project groups. As a side effect, gets rid of the hacky special 'all public projects in domain' group. There are probably bugs in this, and some of those bugs are probably security holes, so watch out.
@
text
@d2 3
a4 1
# All projects for a domain go into that domain's domain group.
d10 1
a10 2
     where Project.DOMAIN_ID = G.DOMAIN_ID
       and (Project.TYPE = 'base' or Project.TYPE = 'category'
@


1.10
log
@Big architecture and schema change: booleans in the HELM_ROLE table have been replaced by entries in the HELM_ROLE_ATTRIBUTE_VALUE table. Also, a new attribute has been added which controls which roles a user gets upon creation of a project.
@
text
@d2 1
a2 16
# All public projects for a domain go into that domain's public group.

insert into HELM_PROJECT_PROJECTGROUP (PROJECT_ID, PROJECT_GROUP_ID)
   select distinct Project.PROJECT_ID, G.PROJECT_ID
     from HELM_PROJECT as Project,
          HELM_PROJECT as G
     where Project.DOMAIN_ID = G.DOMAIN_ID
       and (Project.TYPE = 'base' or Project.TYPE = 'category' or
            Project.TYPE = 'group')
       and Project.IS_PUBLIC = 'Y'
       and G.TYPE = 'domain'
       and G.NAME = '*All public projects in domain'
;

##############################################################################
# All projects for a domain go into that domain's group.
d10 1
a10 2
            or Project.TYPE = 'group'
	    or Project.NAME='*All public projects in domain')
a11 1
       and G.NAME = '*All projects in domain'
d15 1
a15 1
# All projects for the host go into yet another group.
d20 2
a21 2
          HELM_PROJECT as G
     where Project.TYPE != 'host'
@


1.9
log
@Added special case project group membership; this should have been in there from the beginning, but evidentally it wasn't.
@
text
@d11 1
a11 2
       and Project.LICENSE != 'Proprietary'
       and Project.NAME != 'www' and Project.NAME != 'look'
d38 2
a39 6
     where (Project.TYPE = 'base' or Project.TYPE = 'category'
	    or Project.TYPE = 'group'
	    or Project.NAME = "*All projects in domain" 
	    or Project.NAME = "*All public projects in domain")
       and G.NAME = "**All projects on host"
       
@


1.8
log
@removed unneeded condition that was breaking the placement of projects into the domain
@
text
@d12 1
d14 1
a14 2
       and G.Name = '*All public projects in domain'
       and Project.NAME != 'www' and Project.NAME != 'look'
d25 3
a27 2
       and (Project.TYPE = 'base' or Project.TYPE = 'category' or
            Project.TYPE = 'group')
d29 1
d39 4
a42 4
     where ((Project.TYPE = 'base' or Project.TYPE = 'category' or
             Project.TYPE = 'group')
	    or Project.Name = "*All projects in domain" 
	    or Project.Name = "*All public projects in domain")
@


1.8.4.1
log
@applying buddied change from leonardr from HEAD to branch
@
text
@d12 2
a14 2
       and G.TYPE = 'domain'
       and G.NAME = '*All public projects in domain'
d25 2
a26 3
       and (Project.TYPE = 'base' or Project.TYPE = 'category'
            or Project.TYPE = 'group'
	    or Project.NAME='*All public projects in domain')
a27 1
       and G.NAME = '*All projects in domain'
d37 4
a40 4
     where (Project.TYPE = 'base' or Project.TYPE = 'category'
	    or Project.TYPE = 'group'
	    or Project.NAME = "*All projects in domain" 
	    or Project.NAME = "*All public projects in domain")
@


1.7
log
@project groups made in instances are also part of the special project groups
"*all projects..."
@
text
@a27 1
       and G.IS_PROPRIETARY = 'Y'
@


1.6
log
@made poblic-ness depend on license, not IS_PRPIETARY
@
text
@d9 2
a10 1
       and (Project.TYPE = 'base' or Project.TYPE = 'category')
d25 2
a26 1
       and (Project.TYPE = 'base' or Project.TYPE = 'category')
d38 2
a39 1
     where ((Project.TYPE = 'base' or Project.TYPE = 'category')
@


1.6.2.1
log
@moved changes from HEAD
@
text
@d9 1
a9 2
       and (Project.TYPE = 'base' or Project.TYPE = 'category' or
            Project.TYPE = 'group')
d24 1
a24 2
       and (Project.TYPE = 'base' or Project.TYPE = 'category' or
            Project.TYPE = 'group')
d36 1
a36 2
     where ((Project.TYPE = 'base' or Project.TYPE = 'category' or
             Project.TYPE = 'group')
@


1.6.2.2
log
@moved change from head to branch
@
text
@d28 1
@


1.5
log
@* create look project (needed since site admin needs to be able to control
  access to it to change branding)
* add admin@@{domain} ( or admin@@www.{domain} ) mailing list
* change all default addresses to admin@@{domain}
* add webmaster, postmaster, and mailer-daemon addresses
@
text
@d10 1
a10 1
       and Project.IS_PROPRIETARY = 'N'
d12 1
a12 1
       and G.IS_PROPRIETARY = 'N'
@


1.4
log
@remove categories from helm -- they should be in each instanciation
@
text
@d13 1
a13 1
       and Project.NAME != 'www'
@


1.3
log
@put testproject in other category, since games was eliminated
@
text
@a42 11
##############################################################################
# Assign base projects to categories.

insert into HELM_PROJECT_PROJECTGROUP (PROJECT_ID, PROJECT_GROUP_ID)
   select distinct Project.PROJECT_ID, G.PROJECT_ID
     from HELM_PROJECT as Project,
          HELM_PROJECT as G
     where Project.Name = "testproject"
       and G.NAME = "other"
;

@


1.2
log
@Oops, other commit broke build.
@
text
@d51 1
a51 1
       and G.NAME = "games"
@


1.1
log
@Initial revision
@
text
@d13 1
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@@


1.1.1.2
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d9 2
a10 3
       and (Project.TYPE = 'base' or Project.TYPE = 'category' or
            Project.TYPE = 'group')
       and Project.LICENSE != 'Proprietary'
d12 1
a12 2
       and G.Name = '*All public projects in domain'
       and Project.NAME != 'www' and Project.NAME != 'look'
d23 1
a23 2
       and (Project.TYPE = 'base' or Project.TYPE = 'category' or
            Project.TYPE = 'group')
d25 1
d35 1
a35 2
     where ((Project.TYPE = 'base' or Project.TYPE = 'category' or
             Project.TYPE = 'group')
d40 11
@

