Hi Denis, devs,

Just for the record, I am going to reiterate what I mentioned on IRC about
this and generally about workspaces vs farm in XEM:

Normally, this should be covered in an "Upgrade Instructions" documentation
section for farm users that want to upgrade to the latest version of XEM.

While the old XEM (specifically the WikiManager module) did not really care
about the subwiki template and only offered the possibility to create one
for you should you need it, the new XEM (specifically the Workspace module)
depends on the existence of a workspace template which, for ease of setup
(and not the opposite :) ) is created automatically when accessing
WorkspaceManager.Install. This document is also included in the new
homepage so that, once you open XEM the first time, everything is up and
going and you can create a new workspace immediately.
This was done for simplicity and for eliminating one install step for
regular use cases.

If you want to do advanced setup, like specify your own base template
instead of the default XE, you can go to WorkspaceManager.Install and
change the attached template xar.

If you don`t want to use Workspaces, then you have 2 options:
1. Upgrade selectively and exclude Workspace related things from the
imported xar.
2. Don`t upgrade the XEM distribution, but upgrade only the farm related
modules (wikiManager component and application) either manually, or by
using the Extension Manager.

Now, coming back to the actual discussed issue, I`m -0 on Denis' proposal.

I see this implemented as a warning in the homepage that links to the
WorkspaceManager.Install page that tells the user to go there and click
there whether or not to install the workspace template. The Create
workspace page will also display this and will not work until the user
finishes the installation.

However, with this approach, we will be certain that on *every* first
startup of XEM, *any* user will see a warning. The existing approach
displays an error as Denis is mentioning *only* if the wikiManager plugin
fails to create the workspace template automatically, either because XEM is
started on HSQLDB or because the xwiki database user does not have create
database rights.

In any case, I`d like to see some other opinions on this. Waiting for the
results of the vote...

Thanks,
Eduard

On Wed, Dec 7, 2011 at 2:14 PM, Denis Gervalle <[email protected]> wrote:

> Hi devs,
>
> I have just installed the XEM distribution has an upgrade of an existing
> farm.
> I have discovered that the new distribution cause an new DB to be created
> without any confirmation on first access to Main.WebHome to contains the
> workspace template required by the new workspace feature. IMO, this does
> not follow the vote we have had before about this change, since existing
> user of XEM are immediately impacted by the new feature. I would have been
> -1 if I would have been aware of this.
>
> Creating the new database this way has for me some inconveniences:
>
>  - For new user, after having a possibly hard time setting up the
> server, there first successful access on the wiki could end in an error,
> since the creation of the new database could goes wrong.
>
>  - For existing user, a new database is created without there agreement on
> there farm. If they delete it, it will probably came back again and
> again... They really need to understand that the simple access to the home
> page cause the creation of a new database.
>
> IMO, these are not good first experiences with the new release. I propose
> that the creation of the new database requires at least a user
> confirmation, and that if the user do not confirm, it should not be tried
> anymore. This will have two advantage, the user is well aware that a other
> new database is under creation in case of error, and existing farm user
> will have an easy way out.
>
> WDYT ?
>
> --
> Denis Gervalle
> SOFTEC sa - CEO
> eGuilde sarl - CTO
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to