Deleted WIKI pages
Added by Paul Quirk over 15 years ago
Hi,
I've just discovered that deleting a wiki page that is marked as the parent page of others, causes all its children to be deleted as well, or at least that is what seems to have happened.
What I did was:- I was working on a new structure for a particular project wiki, so I'd started a new Wiki page off the main wiki to act as the root node for the eventual new wiki. I had many wiki pages linked directly or via generational links to this new page.
- Once I was happy with the new structure and that all content was in place, I deleted the root wiki page, thinking that I could then just rename the "new" wiki page, or at least set the project wiki to point to this page.
- I got a single "Are you sure?" message and then ... everything other than a handful of pages I'd forgotten to link to parent pages DISAPPEARED
Now, I'm pretty sure there is no way out of this. Unfortunately it was a bad time to discover that our nightly backup of the Redmine DB was not working.
Having gone into browse the database, it seems that every page, as well as contents and version histories has been physically deleted from the DB, based on cascading from the parent page.
If anyone knows of a "trick" I might have overlooked to recover the situation, I'd be very appreciative.
I guess this may serve as a warning to others. But also, maybe the authors/committers can advise whether this was an unintended (undesirable) side-effect? I like the idea of parent-child relationships, simply so that breadcrumbs can appear at the top of the page. Perhaps we need a secondary prompt re "Do you want to delete all child pages as well?"
Thanks
Paul
Replies (4)
RE: Deleted WIKI pages - Added by Mischa The Evil over 15 years ago
Paul Quirk wrote:
[...]I've just discovered that deleting a wiki page that is marked as the parent page of others, causes all its children to be deleted as well[...]
I can confirm the described issue using current trunk...
Paul Quirk wrote:
[...]Now, I'm pretty sure there is no way out of this[...]
Sadly for you I can confirm this also... :evil:
Paul Quirk wrote:
[...]maybe the authors/committers can advise whether this was an unintended (undesirable) side-effect?[...]
I'm not an author/committer but I guess this is something that definately needs a change... If not already available (AFAIR this == true) open a new issue to report this behaviour referring to this forum-thread...
Paul Quirk wrote:
[...]Perhaps we need a secondary prompt re "Do you want to delete all child pages as well?"[...]
That seems a good solution to me if answering no indeed actually prevents the deletion of the childs...
Kind regards,
Mischa.
RE: Deleted WIKI pages - Added by Paul Quirk over 15 years ago
Ok thanks Mischa, I will add the issue.
Is there a way in markup to refer to a thread topic, other than just copying the http link location?
Paul
RE: Deleted WIKI pages - Added by Mischa The Evil over 15 years ago
Paul Quirk wrote:
Is there a way in markup to refer to a thread topic, other than just copying the http link location?
Yes, you can use the message-id like documented on source:trunk/app/helpers/application_helper.rb#L444:
message#xxxx -> Link to message with id xxxx
E.g. this message can be linked to using:
message # 5498(added spaces to prevent unwanted link parsing), which renders as follows:
HTH...
Mischa.
RE: Deleted WIKI pages - Added by Paul Quirk over 15 years ago
Thanks Mischa,
Issue #3202 has been created.
cheers
Paul