Re: [xwiki-users] Import confusion

2011-07-01 Thread Marius Dumitru Florea
Hi Paul,

On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,

 I wanted to delete all the packages I had uploaded for Import.

 If I go through the XWikiPreferences --  Import, I can't see any packages...
 the link is:

 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

 I can see a dozen packages that I uploaded.

 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via the
 Document Index and scanning hundreds of docs in the XWiki space)

XWiki.Import page is not part of the standard XAR. I don't have it on a 
fresh XE 3.1. Moreover, the XARs I import are attached to 
XWiki.XWikiPreferences page so for me the Import administration section 
is synchronized with 
http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

XWiki.Import page is either from your previous XE 2.6 (which you said 
you upgraded to 3.1) or was created by an application (extension) that 
you have installed on top of 3.1.

Hope this helps,
Marius


 cheers
 Paul
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import confusion

2011-07-01 Thread Paul Harris
On 1 July 2011 14:36, Marius Dumitru Florea
mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
  Hi again,
 
  I wanted to delete all the packages I had uploaded for Import.
 
  If I go through the XWikiPreferences --  Import, I can't see any
 packages...
  the link is:
 
 
 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import
 
  However, if I go to this page (which I can't remember how I got there):
  http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import
 
  I can see a dozen packages that I uploaded.
 
  Whats the difference between these two imports, and how do I get to the
  second one without knowing the link beforehand?  (I think I found it via
 the
  Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius


I started with a blank web folder and extracted 3.1...

 How can I find out where it came from?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import confusion

2011-07-01 Thread Vincent Massol

On Jul 1, 2011, at 8:41 AM, Paul Harris wrote:

 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:
 
 Hi Paul,
 
 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,
 
 I wanted to delete all the packages I had uploaded for Import.
 
 If I go through the XWikiPreferences --  Import, I can't see any
 packages...
 the link is:
 
 
 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import
 
 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import
 
 I can see a dozen packages that I uploaded.
 
 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via
 the
 Document Index and scanning hundreds of docs in the XWiki space)
 
 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments
 
 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.
 
 Hope this helps,
 Marius
 
 
 I started with a blank web folder and extracted 3.1...
 
 How can I find out where it came from?

The pages are not saved on the file system but in the database. So if you 
haven't modified your DB when you upgraded you still have the same data there.

You could just delete the XWiki.Import page IMO.

Thanks
-Vincent


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import confusion

2011-07-01 Thread Marius Dumitru Florea
On 07/01/2011 09:41 AM, Paul Harris wrote:
 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,

 I wanted to delete all the packages I had uploaded for Import.

 If I go through the XWikiPreferences --   Import, I can't see any
 packages...
 the link is:


 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

 I can see a dozen packages that I uploaded.

 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via
 the
 Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius



 I started with a blank web folder and extracted 3.1...

Wiki pages are stored in the database not on the file system and I 
suppose you connected the clean 3.1 to the database used by your 
previous 2.6.



   How can I find out where it came from?

You can check its history and if the creation date is before the upgrade 
of after.

Hope this helps,
Marius

 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import confusion

2011-07-01 Thread Paul Harris
On 1 July 2011 14:59, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 8:41 AM, Paul Harris wrote:

 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,

 I wanted to delete all the packages I had uploaded for Import.

 If I go through the XWikiPreferences --  Import, I can't see any
 packages...
 the link is:


 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

 I can see a dozen packages that I uploaded.

 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via
 the
 Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius


 I started with a blank web folder and extracted 3.1...

 How can I find out where it came from?

 The pages are not saved on the file system but in the database. So if you 
 haven't modified your DB when you upgraded you still have the same data there.

 You could just delete the XWiki.Import page IMO.



Shouldn't this have been handled by the Migration thing?

How can I find other pages are lingering?

And, more importantly, next time I upgrade xwiki, what is the correct
procedure to ensure that:

1) I do not have to reconfigure all my appearance configuration
2) I do not have to reconfigure my rights
3) I do not leave crufty old pages around

?

I do not understand how everyone else upgrades their xwiki... its
taken me 2 days and I'm still discovering things that shouldn't be
there (like this Import page)
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import confusion

2011-07-01 Thread Paul Harris
On 1 July 2011 15:03, Marius Dumitru Florea
mariusdumitru.flo...@xwiki.com wrote:
 On 07/01/2011 09:41 AM, Paul Harris wrote:
 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,

 I wanted to delete all the packages I had uploaded for Import.

 If I go through the XWikiPreferences --   Import, I can't see any
 packages...
 the link is:


 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

 I can see a dozen packages that I uploaded.

 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via
 the
 Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius



 I started with a blank web folder and extracted 3.1...

 Wiki pages are stored in the database not on the file system and I
 suppose you connected the clean 3.1 to the database used by your
 previous 2.6.



   How can I find out where it came from?

 You can check its history and if the creation date is before the upgrade
 of after.

 Hope this helps,
 Marius


In /xwiki/SpaceIndex,
I have pages created in 2008 !   I only started using xwiki last year!

AdminProgrammingSheet  -- 2008
AdminGeneralSheet -- 2009
CopyDocument -- 2009
XWikiUserTemplate -- 2010
SearchSuggestSourceClass -- 2010

and a whole bunch owned by superuser, including
XWikiRights
TagClass

and about 20 more pages owned by either superuser or Administrator.

should I be deleting these?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import confusion

2011-07-01 Thread Vincent Massol

On Jul 1, 2011, at 9:14 AM, Paul Harris wrote:

 On 1 July 2011 14:59, Vincent Massol vinc...@massol.net wrote:
 
 On Jul 1, 2011, at 8:41 AM, Paul Harris wrote:
 
 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:
 
 Hi Paul,
 
 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,
 
 I wanted to delete all the packages I had uploaded for Import.
 
 If I go through the XWikiPreferences --  Import, I can't see any
 packages...
 the link is:
 
 
 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import
 
 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import
 
 I can see a dozen packages that I uploaded.
 
 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via
 the
 Document Index and scanning hundreds of docs in the XWiki space)
 
 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments
 
 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.
 
 Hope this helps,
 Marius
 
 
 I started with a blank web folder and extracted 3.1...
 
 How can I find out where it came from?
 
 The pages are not saved on the file system but in the database. So if you 
 haven't modified your DB when you upgraded you still have the same data 
 there.
 
 You could just delete the XWiki.Import page IMO.
 
 
 
 Shouldn't this have been handled by the Migration thing?

Ideally yes but that's not implemented at the moment.

We're introducing the notion of extension manager to manager extensions and as 
part of it there'll be a notion of an application (ie a set of pages) and when 
an app is installed or upgraded it'll have the ability to run some script.

 How can I find other pages are lingering?

You could compare the two XARs using either 
http://extensions.xwiki.org/xwiki/bin/view/Extension/XAR+Diff+Application or 
the Admin Tools which reuse this XAR Diff app code 
(http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools).

Note that at some point we wanted to list this in the Release Notes but we've 
not been doing it diligently. I'd like us to do that better in the future.

 And, more importantly, next time I upgrade xwiki, what is the correct
 procedure to ensure that:
 
 1) I do not have to reconfigure all my appearance configuration

You should not import XWikiPreferences, WebPreferences, etc. These are all 
indicated in the upgrade instructions.
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradinganXWikiInstallation

 2) I do not have to reconfigure my rights

Same

 3) I do not leave crufty old pages around

See above. Note that pages that are left won't impact the execution of your 
wiki. If they do they'd be mentioned in the release notes.
 
 ?
 
 I do not understand how everyone else upgrades their xwiki... its
 taken me 2 days and I'm still discovering things that shouldn't be
 there (like this Import page)

Upgrading is still not an easy process. We're tacking this with the Extension 
Manager, see
http://dev.xwiki.org/xwiki/bin/view/Design/ExtensionManager

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import confusion

2011-07-01 Thread Vincent Massol

On Jul 1, 2011, at 9:19 AM, Paul Harris wrote:

 On 1 July 2011 15:03, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.com wrote:
 On 07/01/2011 09:41 AM, Paul Harris wrote:
 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:
 
 Hi Paul,
 
 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,
 
 I wanted to delete all the packages I had uploaded for Import.
 
 If I go through the XWikiPreferences --   Import, I can't see any
 packages...
 the link is:
 
 
 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import
 
 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import
 
 I can see a dozen packages that I uploaded.
 
 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via
 the
 Document Index and scanning hundreds of docs in the XWiki space)
 
 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments
 
 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.
 
 Hope this helps,
 Marius
 
 
 
 I started with a blank web folder and extracted 3.1...
 
 Wiki pages are stored in the database not on the file system and I
 suppose you connected the clean 3.1 to the database used by your
 previous 2.6.
 
 
 
   How can I find out where it came from?
 
 You can check its history and if the creation date is before the upgrade
 of after.
 
 Hope this helps,
 Marius
 
 
 In /xwiki/SpaceIndex,
 I have pages created in 2008 !   I only started using xwiki last year!
 
 AdminProgrammingSheet  -- 2008
 AdminGeneralSheet -- 2009
 CopyDocument -- 2009
 XWikiUserTemplate -- 2010
 SearchSuggestSourceClass -- 2010
 
 and a whole bunch owned by superuser, including
 XWikiRights
 TagClass
 
 and about 20 more pages owned by either superuser or Administrator.
 
 should I be deleting these?

No. The date simply indicates when the page was created.

Thanks
-Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import confusion

2011-07-01 Thread Paul Harris
On 1 July 2011 15:28, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 9:14 AM, Paul Harris wrote:

 On 1 July 2011 14:59, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 8:41 AM, Paul Harris wrote:

 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,

 I wanted to delete all the packages I had uploaded for Import.

 If I go through the XWikiPreferences --  Import, I can't see any
 packages...
 the link is:


 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

 I can see a dozen packages that I uploaded.

 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via
 the
 Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius


 I started with a blank web folder and extracted 3.1...

 How can I find out where it came from?

 The pages are not saved on the file system but in the database. So if you 
 haven't modified your DB when you upgraded you still have the same data 
 there.

 You could just delete the XWiki.Import page IMO.



 Shouldn't this have been handled by the Migration thing?

 Ideally yes but that's not implemented at the moment.

 We're introducing the notion of extension manager to manager extensions and 
 as part of it there'll be a notion of an application (ie a set of pages) and 
 when an app is installed or upgraded it'll have the ability to run some 
 script.


I am struggling with a similar design issue in one of my projects.  I
am currently thinking along the lines that:
* If there are a set of pages, keep them bundled together - don't
unwrap them.  The moment you unwrap them, and someone modifies a page,
then you can't upgrade the package without stomping on the changes.

* Allow pages to be extracted if the user really wants to hack.

* Don't store configuration within pages that are part of an upgrade.
Instead, separate structure and data, and put the data in a
configuration file (or a configuration page that is NOT EVER
overwritten during an upgrade).Then, if there is an upgrade, add a
mechanism to upgrade the configuration file IF REQUIRED.



 How can I find other pages are lingering?

 You could compare the two XARs using either 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/XAR+Diff+Application or 
 the Admin Tools which reuse this XAR Diff app code 
 (http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools).


urgh

 Note that at some point we wanted to list this in the Release Notes but we've 
 not been doing it diligently. I'd like us to do that better in the future.

 And, more importantly, next time I upgrade xwiki, what is the correct
 procedure to ensure that:

 1) I do not have to reconfigure all my appearance configuration

 You should not import XWikiPreferences, WebPreferences, etc. These are all 
 indicated in the upgrade instructions.
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradinganXWikiInstallation


No, it says you should be careful.

From my POV, that means - take a screenshot and then re-add all your
configuration later on.
Because, I'm sitting here thinking ... what if something in
XWikiPreferences has changed significantly (eg the layout looks
different from 2.6), and if I don't overwrite then something won't
work.

 2) I do not have to reconfigure my rights

 Same

 3) I do not leave crufty old pages around

 See above. Note that pages that are left won't impact the execution of your 
 wiki. If they do they'd be mentioned in the release notes.

 ?

 I do not understand how everyone else upgrades their xwiki... its
 taken me 2 days and I'm still discovering things that shouldn't be
 there (like this Import page)

 Upgrading is still not an easy process. We're tacking this with the Extension 
 Manager, see
 http://dev.xwiki.org/xwiki/bin/view/Design/ExtensionManager




The gallery2 website had a great upgrade system, with checks and
verifications and migrations that you could actually see the progress
of.

With xwiki, I am terrified of upgrading the system again... there is
no verification, no audit, no visible migration... I have no idea what
I'm missing and what pages are there that should not be.


For example, I turned 

Re: [xwiki-users] Import confusion

2011-07-01 Thread Paul Harris
On 1 July 2011 15:47, Paul Harris harris...@gmail.com wrote:
 On 1 July 2011 15:28, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 9:14 AM, Paul Harris wrote:

 On 1 July 2011 14:59, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 8:41 AM, Paul Harris wrote:

 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,

 I wanted to delete all the packages I had uploaded for Import.

 If I go through the XWikiPreferences --  Import, I can't see any
 packages...
 the link is:


 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

 I can see a dozen packages that I uploaded.

 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it via
 the
 Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius


 I started with a blank web folder and extracted 3.1...

 How can I find out where it came from?

 The pages are not saved on the file system but in the database. So if you 
 haven't modified your DB when you upgraded you still have the same data 
 there.

 You could just delete the XWiki.Import page IMO.



 Shouldn't this have been handled by the Migration thing?

 Ideally yes but that's not implemented at the moment.

 We're introducing the notion of extension manager to manager extensions and 
 as part of it there'll be a notion of an application (ie a set of pages) and 
 when an app is installed or upgraded it'll have the ability to run some 
 script.


 I am struggling with a similar design issue in one of my projects.  I
 am currently thinking along the lines that:
 * If there are a set of pages, keep them bundled together - don't
 unwrap them.  The moment you unwrap them, and someone modifies a page,
 then you can't upgrade the package without stomping on the changes.

 * Allow pages to be extracted if the user really wants to hack.

 * Don't store configuration within pages that are part of an upgrade.
 Instead, separate structure and data, and put the data in a
 configuration file (or a configuration page that is NOT EVER
 overwritten during an upgrade).    Then, if there is an upgrade, add a
 mechanism to upgrade the configuration file IF REQUIRED.



 How can I find other pages are lingering?

 You could compare the two XARs using either 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/XAR+Diff+Application or 
 the Admin Tools which reuse this XAR Diff app code 
 (http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools).


 urgh



What I did was Imported and opened the latest 3.1.xar to see the contents.

What I found interesting is that there are a lot of pages (eg
Blog.BlogParameters) that are not listed in the Blog-Space-Index

Are these pages?  How does one see the hidden pages?

thanks
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import confusion

2011-07-01 Thread Paul Harris
On 1 July 2011 15:55, Paul Harris harris...@gmail.com wrote:
 On 1 July 2011 15:47, Paul Harris harris...@gmail.com wrote:
 On 1 July 2011 15:28, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 9:14 AM, Paul Harris wrote:

 On 1 July 2011 14:59, Vincent Massol vinc...@massol.net wrote:

 On Jul 1, 2011, at 8:41 AM, Paul Harris wrote:

 On 1 July 2011 14:36, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.comwrote:

 Hi Paul,

 On 07/01/2011 05:38 AM, Paul Harris wrote:
 Hi again,

 I wanted to delete all the packages I had uploaded for Import.

 If I go through the XWikiPreferences --  Import, I can't see any
 packages...
 the link is:


 http://HOST/xwiki/import/XWiki/XWikiPreferences?editor=globaladminsection=Import

 However, if I go to this page (which I can't remember how I got there):
 http://host/xwiki/import/XWiki/Import?editor=globaladminsection=Import

 I can see a dozen packages that I uploaded.

 Whats the difference between these two imports, and how do I get to the
 second one without knowing the link beforehand?  (I think I found it 
 via
 the
 Document Index and scanning hundreds of docs in the XWiki space)

 XWiki.Import page is not part of the standard XAR. I don't have it on a
 fresh XE 3.1. Moreover, the XARs I import are attached to
 XWiki.XWikiPreferences page so for me the Import administration section
 is synchronized with
 http://host/xwiki/bin/view/XWiki/XWikiPreferences?viewer=attachments

 XWiki.Import page is either from your previous XE 2.6 (which you said
 you upgraded to 3.1) or was created by an application (extension) that
 you have installed on top of 3.1.

 Hope this helps,
 Marius


 I started with a blank web folder and extracted 3.1...

 How can I find out where it came from?

 The pages are not saved on the file system but in the database. So if you 
 haven't modified your DB when you upgraded you still have the same data 
 there.

 You could just delete the XWiki.Import page IMO.



 Shouldn't this have been handled by the Migration thing?

 Ideally yes but that's not implemented at the moment.

 We're introducing the notion of extension manager to manager extensions and 
 as part of it there'll be a notion of an application (ie a set of pages) 
 and when an app is installed or upgraded it'll have the ability to run some 
 script.


 I am struggling with a similar design issue in one of my projects.  I
 am currently thinking along the lines that:
 * If there are a set of pages, keep them bundled together - don't
 unwrap them.  The moment you unwrap them, and someone modifies a page,
 then you can't upgrade the package without stomping on the changes.

 * Allow pages to be extracted if the user really wants to hack.

 * Don't store configuration within pages that are part of an upgrade.
 Instead, separate structure and data, and put the data in a
 configuration file (or a configuration page that is NOT EVER
 overwritten during an upgrade).    Then, if there is an upgrade, add a
 mechanism to upgrade the configuration file IF REQUIRED.



 How can I find other pages are lingering?

 You could compare the two XARs using either 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/XAR+Diff+Application 
 or the Admin Tools which reuse this XAR Diff app code 
 (http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools).


 urgh



 What I did was Imported and opened the latest 3.1.xar to see the contents.

 What I found interesting is that there are a lot of pages (eg
 Blog.BlogParameters) that are not listed in the Blog-Space-Index

 Are these pages?  How does one see the hidden pages?

 thanks
 Paul



I checked those diff tools... one of them says only for developers!!
you must modify your webhome page so I avoided that one.

I tried the AdminTools one, but both the Diff tools don't work.  The
velocity-based one fails with a StringIndex = -1 and the groovy one
just shows the code, it doesn't actually run.

I tried to put the code into a page to make it go, but that didn't
seem to work either.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users