kaoto
kaoto copied to clipboard
In case a route without ID is imported - save the generated ID into the route source
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
- create a route without an ID
- see in canvas page the route ID is displayed
- 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]
@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.
@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 :)