Closed rob-gordon closed 2 years ago
Copying a skill node should create a new sub-flow, including copying the parameters within. **However(!)** it should keep the same references to any cms entities, such as the text options in a choice, etc.
@laurentlp
The only small "problem" I've is that if we update a content-element, it only refreshes the skill where we update the element, not the others.
This is a problem on master
that's out of scope for this ticket. (There's another ticket for it: https://linear.app/botpress/issue/DEV-2197/[feature]-choice-skill-content-elements-and-transitions)
Before
Copying a skill node does a shallow copy, creates a new node linked to same skill
After
Copying a skill node creates a clone of the skill, creates a new node linked to clone, but keeps shallow reference to CMS content in skill
This behavior was determined to be the most predictable for current users.