botpress / studio

The studio is the main interface you'll use to build and edit your chatbot.
https://botpress.com/docs/quickstart#conversation-studio
38 stars 38 forks source link

fix(copy): copying skill makes clone but uses same cms content #225

Closed rob-gordon closed 2 years ago

rob-gordon commented 2 years ago

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.

linear[bot] commented 2 years ago
DEV-2099 Semi-Deep Skills Copy

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.

rob-gordon commented 2 years ago

@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)