xp
xp copied to clipboard
Move command must be able to rename node
Currently MoveCommand allows only to change parent path. But often rename happens together with move. Currently it is implemented in two steps. Sometimes even in more steps (rename, move, rename again - to avoid name collisions)
Extend move command to support full path (including new name). parentPath parameter must be deprecated and retrofitted, so it is never in use.
NB! Make sure any node-level event handling also considers that node may now also be renamed. I.e. caching/indexing etc?
What about audit logs, do we log both move and rename?
Internally rename and move are implemented in one "Command". Only node-service API has different methods. All code which handles events has to listen for both mobe and rename because in both cases the node is "gone" from its location and appears somewhere else