ltdrdata / ComfyUI-Workflow-Component

This is a side project to experiment with using workflows as components.
GNU General Public License v3.0
214 stars 9 forks source link

How to Update a component? #38

Open DmitryKripakov opened 4 months ago

DmitryKripakov commented 4 months ago

Hello! Thanks so much for your work, this repo makes things so much easier!

I made a component, added it to my workflow, and everything works as it should even after a restart. But, for example, I need to update the component itself, add new nodes there, or maybe just change the default values inside. I open the component, edit it, resave it to a new json file, and overwrite the old component in the ComfyUI-Workflow-Component\components\ folder with this file.

After this, an error occurs in my old workflows - the new component has a new ID, as I understand it, so I need to manually replace all components in all workflows.

How can I update a component so that there is no error when loading? (the screenshots show that the nodes have different IDs)

Снимок экрана 2024-05-10 221100

Снимок экрана 2024-05-10 221048

ltdrdata commented 4 months ago

The current implementation cannot handle version issues, so you must reconnect or directly edit in the .json. These issues will be handled in the new structure.

DmitryKripakov commented 4 months ago

Thank you! Can you please tell me where I can find information about when approximately the new structure might be released? Is this a matter of a couple of months, or is it unknown at all? :)

ltdrdata commented 4 months ago

Thank you! Can you please tell me where I can find information about when approximately the new structure might be released? Is this a matter of a couple of months, or is it unknown at all? :)

TBH, I've been busy lately, so things keep getting delayed.

DmitryKripakov commented 4 months ago

Thank you! Can you please tell me where I can find information about when approximately the new structure might be released? Is this a matter of a couple of months, or is it unknown at all? :)

TBH, I've been busy lately, so things keep getting delayed.

Okay, thanks again for your work!