Ticket #72 (new enhancement)

Opened 3 years ago

Last modified 16 months ago

Node renaming tool

Reported by: earle Owned by: Nobody
Priority: normal Milestone:
Component: openguides Version:
Severity: normal Keywords: utilities, database, admin
Cc:

Description

There should be a tool for admins to rename nodes. As I see it the steps of doing so are:

  1. Pick node, new node name.
  2. Get error if new name exists. Otherwise, confirm rename yes/no.
  3. All node data, metadata gets copied with new name.
  4. For each node in the metadata shown as linking to the old node, copy the content, replace the old name with new in the content and save it.
  5. Replace occurrences of old name with new in link metadata just mentioned.
  6. Delete all node data for old node.
  7. Display confirmation.

Change History

Changed 3 years ago by earle

I forgot to mention "update indices", which should go between items 6 & 7 on the list above.

Changed 3 years ago by ivorw

What about the node's version history?

One option would be to leave this against the old node.

An alternative is that renaming drags across the history as well.

We could possibly get the best of both worlds by copying the history to the new node and leaving it in the old one as well.

Thoughts please.

Changed 3 years ago by dom

This can be done more efficiently by the CGI::Wiki changes yet to be released.

Changed 2 years ago by dom

There's a command-line node renaming tool in Wiki::Toolkit (wiki-toolkit-rename-node) which uses rename_node in Wiki::Toolkit. Might be nice to use that in Openguides.

Changed 22 months ago by earle

The node renaming tool does indeed work very well. I'd like to extend my original description above with "creates a new node with the old name that redirects to the new one", so this ticket now relies on #164 being done first.

Changed 16 months ago by dom

  • owner changed from dom to Nobody
Note: See TracTickets for help on using tickets.