EmilySun621 commented on issue #5165:
URL: https://github.com/apache/texera/issues/5165#issuecomment-4529603989

   
   
   
   > I do not have many insights, feel free to continue with the implementation.
   > 
   > 2 general questions:
   > 
   > * How much do you anticipate this feature will be used?
   > * How more efficient is this from cloning a workflow and delete what is 
not needed, or to Copy & Paste the operators I need into a new canvas.
   
   Thanks for the questions. 
   **How much will it be used?** 
   
   > I see snippets as complementary to the Workflow Macros PR (#5182). They 
target different scales of reuse:
   > Macros = import an entire workflow as a collapsible container. Great for 
large and complex sub-DAGs.
   > Snippets = drag a small operator chain (3-5 operators) onto canvas, each 
operator stays independent. Great for common micro-patterns like CSV → Filter → 
Remove Duplicates. Users probably wouldn't create a macro for a 3-operator 
cleaning chain. But they'd save it as a snippet and reuse it daily.
   
   **How is this better than clone + delete, or copy-paste?** 
   
   > Both workarounds work, but they require a source workflow to be open. 
   > Snippets add value in two cases:
   > 1.No source needed: start a brand new empty workflow and drag a snippet 
from the panel. Clone/copy-paste requires finding and opening the right 
workflow first.
   > 
   > 2.One drag vs. multiple steps: clone + delete means: find workflow → 
duplicate → delete unwanted operators → copy → switch → paste. A snippet is one 
drag.
   
   **If the team feels macros already cover this use case sufficiently, happy 
to drop this.** 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to