You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Florian Holeczek (JIRA)" <ji...@apache.org> on 2007/12/18 08:02:43 UTC
[jira] Created: (JSPWIKI-110) time machine
time machine
------------
Key: JSPWIKI-110
URL: https://issues.apache.org/jira/browse/JSPWIKI-110
Project: JSPWiki
Issue Type: Improvement
Environment: n/a
Reporter: Florian Holeczek
Priority: Minor
Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Created: (JSPWIKI-110) time machine
Posted by Janne Jalkanen <Ja...@ecyrd.com>.
> This would then permit the addition of a "time machine" that would put
> together a catalog of the pages based on their versions as of that
> Date.
> I.e., the time machine would simply create an alternative set of wiki
> pages as of a given date.
May be. With JCR you need to first fetch the version history, and
then perform a "checkout" for each version you want to manage. It
also supports things like forks, which may be a tad too complicated
for us. One option would be to have a separate "wiki:versions" tree,
where we would just move() the old pages. Or maybe, have the version
history available as a subnode of a particular page.
e.g. path /wiki:pages/RecentChanges/wiki:content would give the text
of a page,
/wiki:pages/RecentChanges/wiki:versions/23/wiki:content would give
the text of page at version 23.
(Of course, the regular user would not see the full JCR paths; just
shortcuts.)
/Janne
Re: [jira] Created: (JSPWIKI-110) time machine
Posted by Murray Altheim <mu...@altheim.com>.
Janne Jalkanen wrote:
>> I haven't been looking at Java Content Repository (JSR-170/283) in
>> depth (will do this soon), but I guess with underlying JCR support
>> this feature won't be a big thing to implement.
>
> Might be. I have a nagging feeling that the versioning support of JCR
> is not what we want. The check-in/check-out process is not really
> designed for this kind of an usecase.
With the existing WikiPageProvider API I was thinking of something akin
to adding a single method to support this (which is after all a pretty
common archiving feature):
/**
* Returns the most recent version number of the wiki page
* as of the Date <tt>date</tt>. If the page did not exist
* at that time, returns -1.
*/
public int getVersionAsOfDate( String page, Date date )
throws ProviderException;
This would then permit the addition of a "time machine" that would put
together a catalog of the pages based on their versions as of that Date.
I.e., the time machine would simply create an alternative set of wiki
pages as of a given date.
Murray
...........................................................................
Murray Altheim <murray07 at altheim.com> === = =
http://www.altheim.com/murray/ = = ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = =
Boundless wind and moon - the eye within eyes,
Inexhaustible heaven and earth - the light beyond light,
The willow dark, the flower bright - ten thousand houses,
Knock at any door - there's one who will respond.
-- The Blue Cliff Record
Re: Re[2]: [jira] Created: (JSPWIKI-110) time machine
Posted by Janne Jalkanen <Ja...@ecyrd.com>.
> I haven't been looking at Java Content Repository (JSR-170/283) in
> depth (will do this soon), but I guess with underlying JCR support
> this feature won't be a big thing to implement.
Might be. I have a nagging feeling that the versioning support of
JCR is not what we want. The check-in/check-out process is not
really designed for this kind of an usecase.
/Janne
Re[2]: [jira] Created: (JSPWIKI-110) time machine
Posted by Florian Holeczek <fl...@holeczek.de>.
>> Versioning and viewing the history is limited to one single page. If
>> you want to see the whole wiki state as of timestamp X, you have to
>> manually open the corresponding history entry of each page. Therefore,
>> a time machine may be an interesting feature.
> I've been looking into something like this as a feature addition to the
> wiki provider API, as one of the projects I am working on has a hazy
> requirement for some kind of ability to pull a snapshot of the wiki as
> of a given timestamp.
> Will keep in mind for the future...
I haven't been looking at Java Content Repository (JSR-170/283) in
depth (will do this soon), but I guess with underlying JCR support
this feature won't be a big thing to implement.
Regards,
Florian
Re: [jira] Created: (JSPWIKI-110) time machine
Posted by Murray Altheim <mu...@altheim.com>.
Florian Holeczek (JIRA) wrote:
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
>
> Versioning and viewing the history is limited to one single page. If
> you want to see the whole wiki state as of timestamp X, you have to
> manually open the corresponding history entry of each page. Therefore,
> a time machine may be an interesting feature.
I've been looking into something like this as a feature addition to the
wiki provider API, as one of the projects I am working on has a hazy
requirement for some kind of ability to pull a snapshot of the wiki as
of a given timestamp.
Will keep in mind for the future...
Murray
...........................................................................
Murray Altheim <murray07 at altheim.com> === = =
http://www.altheim.com/murray/ = = ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = =
Boundless wind and moon - the eye within eyes,
Inexhaustible heaven and earth - the light beyond light,
The willow dark, the flower bright - ten thousand houses,
Knock at any door - there's one who will respond.
-- The Blue Cliff Record
[jira] Commented: (JSPWIKI-110) time machine
Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588255#action_12588255 ]
Janne Jalkanen commented on JSPWIKI-110:
----------------------------------------
I wonder could this be solved by having a /wiki:timemachine/ -path in the repo, then put in a Node for each date, and put in a lot of properties with UUID links to the particular pages/version instances.
Or, you could somehow use a separate workspace for each date - workspaces can share Nodes in different paths as long as the UUID is the same.
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-110) time machine
Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588283#action_12588283 ]
Janne Jalkanen commented on JSPWIKI-110:
----------------------------------------
Well, it would be done as a batch job daily or weekly, so I don't think it would be that expensive.
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-110) time machine
Posted by "Florian Holeczek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588308#action_12588308 ]
Florian Holeczek commented on JSPWIKI-110:
------------------------------------------
Well, on the OS level this is a nice feature, but on the application level, I think one can and should separate a backup from a time machine feature.
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-110) time machine
Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588310#action_12588310 ]
Janne Jalkanen commented on JSPWIKI-110:
----------------------------------------
I think this particular issue *was* about a time machine feature ;-)
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-110) time machine
Posted by "Florian Holeczek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588316#action_12588316 ]
Florian Holeczek commented on JSPWIKI-110:
------------------------------------------
Sure ;-)
But look:
* OS X time machine = automatic backup at predefined points in time with possibility to switch back to these system states.
* time machine in general = go back (or forward - which is however not part of this issue ;-)) to any user-defined point in time
What I mean is the general concept and not the special one from OS X.
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Commented: (JSPWIKI-110) time machine
Posted by Murray Altheim <mu...@altheim.com>.
FWIW, this is likely a feature/requirement of a system I'm planning,
since we'll be doing regular archiving of a wiki to a "heritage"
archive, with the requirement that a snapshot of the wiki for a given
timestamp be retrievable from the archive on demand. So in the next
6-9 months this will be something I'll be building if it's not
already available (though I may build it on top of the XNodeProvider
or whatever results from a cross between the XNodeProvider and priha).
Murray
Florian Holeczek (JIRA) wrote:
> [ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588322#action_12588322 ]
>
> Florian Holeczek commented on JSPWIKI-110:
> ------------------------------------------
>
> Take a look at the issue's description:
> {quote}
> Versioning and viewing the history is limited to one single page.
> {quote}
>
> Imagine a bunch of pages which change frequently: their content, but also links and page names. Typically, at timestamp x, if there's a link from one page to another, their contents are related to one another in some way.
>
> Now you're a user who wants to have a look at these pages as of timestamp x. The status quo is:
> * you've got to manually select the suiting version for each page repeatedly
> * if a page got renamed or deleted in the meantime, it's simply bad luck
>
> With a time machine, you'd select the desired time once, and from then on the whole wiki is presented as of this timestamp.
>
> PS: Well, ok, the renaming case is a problem, since the identifier changes... This would have to be taken care of, too, when modeling the repository.
>
>> time machine
>> ------------
>>
>> Key: JSPWIKI-110
>> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
>> Project: JSPWiki
>> Issue Type: Improvement
>> Environment: n/a
>> Reporter: Florian Holeczek
>> Priority: Minor
>>
>> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
>
--
...........................................................................
Murray Altheim <murray07 at altheim.com> === = =
http://www.altheim.com/murray/ = = ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = =
Boundless wind and moon - the eye within eyes,
Inexhaustible heaven and earth - the light beyond light,
The willow dark, the flower bright - ten thousand houses,
Knock at any door - there's one who will respond.
-- The Blue Cliff Record
[jira] Commented: (JSPWIKI-110) time machine
Posted by "Florian Holeczek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588322#action_12588322 ]
Florian Holeczek commented on JSPWIKI-110:
------------------------------------------
Take a look at the issue's description:
{quote}
Versioning and viewing the history is limited to one single page.
{quote}
Imagine a bunch of pages which change frequently: their content, but also links and page names. Typically, at timestamp x, if there's a link from one page to another, their contents are related to one another in some way.
Now you're a user who wants to have a look at these pages as of timestamp x. The status quo is:
* you've got to manually select the suiting version for each page repeatedly
* if a page got renamed or deleted in the meantime, it's simply bad luck
With a time machine, you'd select the desired time once, and from then on the whole wiki is presented as of this timestamp.
PS: Well, ok, the renaming case is a problem, since the identifier changes... This would have to be taken care of, too, when modeling the repository.
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-110) time machine
Posted by "Florian Holeczek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588270#action_12588270 ]
Florian Holeczek commented on JSPWIKI-110:
------------------------------------------
{quote}
I wonder could this be solved by having a /wiki:timemachine/ -path in the repo, then put in a Node for each date, and put in a lot of properties with UUID links to the particular pages/version instances.
{quote}
I wonder if I understood this right... doesn't this imply creating such an node each time _any_ page is changed, while this node contains uuids of all valid page versions as of timestamp x?
If so, you'll run into severe performance problems.
{quote}
Or, you could somehow use a separate workspace for each date - workspaces can share Nodes in different paths as long as the UUID is the same.
{quote}
That would be even worse!? Creating a new workspace every time a page is changed?
I think saving any states is the wrong way here. The operation is too expensive and infrequently needed.
It's a bit comparable to creating indices in databases: Sure you can create an index for anything that's ever searched for, but this makes inserts and updates very slow, since not only the data itself, but also the indices have to be updated.
This is why I think this should be part of the application logic, which has to search the repository on demand. What has to be modeled in the repository is that deleted pages aren't removed upon deletion.
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-110) time machine
Posted by "Florian Holeczek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588273#action_12588273 ]
Florian Holeczek commented on JSPWIKI-110:
------------------------------------------
{quote}
This is why I think this should be part of the application logic, which has to search the repository on demand. What has to be modeled in the repository is that deleted pages aren't removed upon deletion.
{quote}
To be precise: An existing getPage() function would simply get another parameter "timestamp".
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-110) time machine
Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12555173 ]
Janne Jalkanen commented on JSPWIKI-110:
----------------------------------------
Yes, it would... But this is probably something beyond 3.0 (we need to make sure though that the repo can handle that).
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-110) time machine
Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588318#action_12588318 ]
Janne Jalkanen commented on JSPWIKI-110:
----------------------------------------
OK, well, now I see what you meant. What is the use case then?
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-110) time machine
Posted by "Florian Holeczek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588299#action_12588299 ]
Florian Holeczek commented on JSPWIKI-110:
------------------------------------------
Ah now I know what you mean. Well, assuming such a coarse granularity of time, this makes sense.
It's a kind of an auto-backup feature then. However, I've been thinking of being able to switch back to any (user-)given timestamp, and not just predefined ones.
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-110) time machine
Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588306#action_12588306 ]
Janne Jalkanen commented on JSPWIKI-110:
----------------------------------------
Yes, something similar to OSX 10.5 Time Machine: http://www.apple.com/macosx/features/timemachine.html
> time machine
> ------------
>
> Key: JSPWIKI-110
> URL: https://issues.apache.org/jira/browse/JSPWIKI-110
> Project: JSPWiki
> Issue Type: Improvement
> Environment: n/a
> Reporter: Florian Holeczek
> Priority: Minor
>
> Versioning and viewing the history is limited to one single page. If you want to see the whole wiki state as of timestamp X, you have to manually open the corresponding history entry of each page. Therefore, a time machine may be an interesting feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.