atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

Clone / duplicate context action

Open joepio opened this issue 5 months ago • 0 comments

Being able to quickly make a copy of some resource from the context menu would be really useful.

Ideally, we can optionally set a target (which defaults to the current resource parent).

However, this poses a question: how do we deal with children?

  • Keep track of a Map that maps old subjects to new sones.
  • Keep track of all resources
  • Store the subject to the map together with a newly created subject.
  • Get all the children, iterate over the children, add these to the map. Recursive.
  • Iterate over all the resources, save

Browser or server

  • On the server is faster
  • Requires a new endpoint
  • Server will be signing the commits, not the user

joepio avatar Feb 29 '24 15:02 joepio