kaoto icon indicating copy to clipboard operation
kaoto copied to clipboard

In case a route without ID is imported - save the generated ID into the route source

Open tplevko opened this issue 1 year ago • 2 comments

Describe the Bug

The route imported by users might not contain an ID - the auto-ID generation assigns a route ID to every route in the editor, this route-ID should be saved in the route, so it is clear which route is displayed.

Steps to Reproduce the Bug or Issue

  1. create a route without an ID
  2. see in canvas page the route ID is displayed
  3. the route-id is not saved to the route

Screenshots or Videos

https://github.com/KaotoIO/kaoto-next/assets/4180208/e348829b-38e7-4af1-9d05-2cce90a07430

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 0.30.0]

tplevko avatar Dec 19 '23 11:12 tplevko

@lordrip I remember you mentioned a "sync" or "reformat" button functionality, which should be implemented for the canvas. I don't remember which issue it was, but do you think this could be a part of this? I was thinking, when saving of the ID should happen, but this button would be probably a good place.

tplevko avatar Jan 11 '24 15:01 tplevko

@lordrip I remember you mentioned a "sync" or "reformat" button functionality, which should be implemented for the canvas. I don't remember which issue it was, but do you think this could be a part of this? I was thinking, when saving of the ID should happen, but this button would be probably a good place.

This happens automatically as soon as a node's property is updated or if a new step is added :)

lordrip avatar Jan 19 '24 14:01 lordrip