grouper-dev - RE: [grouper-dev] improving db.init
Subject: Grouper Developers Forum
List archive
- From: Chris Hyzer <>
- To: Neil Matatall <>
- Cc: Grouper Dev <>
- Subject: RE: [grouper-dev] improving db.init
- Date: Fri, 12 Sep 2008 22:57:11 -0400
- Accept-language: en-US
- Acceptlanguage: en-US
There is now a setting in grouper.properties so that you dont have to
auto-init the registry.
#if grouper should auto init the registry if not initted (i.e. insert the
root stem, built in fields, etc)
#defaults to true
registry.autoinit = true
Also I added a GSH command to init the registry:
* registryInstall() will insert default Grouper data if not there, e.g.
root stem
This is documented in the gsh wiki and the help() command.
Regards,
Chris
> -----Original Message-----
> From: Neil Matatall
> [mailto:]
> Sent: Tuesday, September 02, 2008 4:37 PM
> Cc: Grouper Dev
> Subject: Re: [grouper-dev] improving db.init
>
> I would prefer the fatal error report. If I recall correctly, we can
> run the auto-init target whenever we want. Perhaps the fatal error
> report should have some message about running auto-init?
>
> Chris Hyzer wrote:
> > Sure, anyone let me know if they would prefer that... fyi the auto-
> init inserts the root stem if not there, several built in fields if not
> there, 2 built in types if not there... it doesn't do much.
> >
> > Chris
> >
> >> -----Original Message-----
> >> From: Tom Barton
> >> [mailto:]
> >> Sent: Tuesday, September 02, 2008 3:36 PM
> >> To: Grouper Dev
> >> Subject: Re: [grouper-dev] improving db.init
> >>
> >> Thanks Chris. I wonder if some sites would prefer a fatal error
> report
> >> rather than an auto-init upon detecting a corrupted database at
> >> startup.
> >> They might need the corrupted DB to aid in restoring normal
> operation.
> >>
> >> Tom
> >>
> >> Chris Hyzer wrote:
> >>> This is done:
> >>>
> >>>
> >>>
> >>> https://bugs.internet2.edu/jira/browse/GRP-159
> >>>
> >>>
> >>>
> >>> We briefly discussed this one, but trying to make it easier to get
> >>> going with grouper...
> >>>
> >>> Three db change tasks are confusing: schemaexport (ddl [and
> >> optionally
> >>> init data]), db.init (ddl then insert default data), db.reset
> (remove
> >>> all data, then init).
> >>>
> >>> Now, when grouper starts, it checks to see if the root stem is
> >>> missing, or if a builtin field is missing, or a builtin type type
> is
> >>> missing, and if so, will init the DB. The only time this isnt
> >>> sufficient is if some fields or types are there but not others (if
> >>> someone manually deleted some), in which case the user can set the
> >>> setting in the
> >>> grouper.properties: ddlutils.schemaexport.installGrouperData to
> true,
> >>> and do a schemaexport. I removed the ant tasks for db.init, db-
> init,
> >>> and db.init.test, since they are no longer needed...
> >>>
> >>> If there is a place where grouper is starting without initting,
> just
> >>> add this to the code before initted data is needed:
> >>>
> >>> GrouperStartup.startup();
> >>>
> >>> Let me know if anyone has comments, I can always undo or change...
> >>>
> >>> [ Show > <https://bugs.internet2.edu/jira/browse/GRP-159> ]
> >>>
> >>> Chris Hyzer
> >>>
> >>
> <https://bugs.internet2.edu/jira/secure/ViewProfile.jspa?name=mchyzer>
> >>> -
> >>> [24/Aug/08 09:24 PM - edited ] fixed Now, when grouper starts, it
> >>> checks to see if the root stem is missing, or if a builtin field is
> >>> missing, or a builtin type type is missing, and if so, will init
> the
> >>> DB. The only time this isnt sufficient is if some fields or types
> are
> >>> there but not others (if someone manually deleted some), in which
> >> case
> >>> the user can set the setting in the grouper.properties:
> >>> ddlutils.schemaexport.installGrouperData to true, and do a
> >> schemaexport.
> >>> I removed the ant tasks for db.init, db-init, and db.init.test,
> since
> >>> they are no longer needed... If there is a place where grouper is
> >>> starting without initting, just add this to the code before initted
> >> data
> >>> is needed: GrouperStartup.startup(); Let me know if anyone has
> >>> comments, I can always undo or change...
> >>>
> >>>
> >>> Chris
> >>>
> >
> >
- Re: [grouper-dev] improving db.init, Tom Barton, 09/02/2008
- RE: [grouper-dev] improving db.init, Chris Hyzer, 09/02/2008
- Re: [grouper-dev] improving db.init, Neil Matatall, 09/02/2008
- RE: [grouper-dev] improving db.init, Chris Hyzer, 09/12/2008
- Re: [grouper-dev] improving db.init, Neil Matatall, 09/02/2008
- RE: [grouper-dev] improving db.init, Chris Hyzer, 09/02/2008
Archive powered by MHonArc 2.6.16.