You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
When users use the code editor for editing multiple routes with displayed route in the canvas, after syncing the code editor the displayed routes are hidden and only the first route stays displayed.
Steps to Reproduce the Bug or Issue
create multiple routes
display second route
edit the second route in editor
sync editor
see the route displayed is now the first route
Screenshots or Videos
Platform
OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [latest]
The text was updated successfully, but these errors were encountered:
I never thought that I would ever say this, but this is not a bug but a feature 😅 🙈
Jokes aside, showing only the first route is the "intended" behavior, but now that you raise this topic, I'm wondering if this might be confusing to the user. I'll ask for feedback in the meantime, to provide a different behavior.
Thanks @lordrip for the response. I still believe this might be an issue, as the route which stays displayed in the canvas might not be the one the user was editing - the current behaviour leaves open the first route from the route list.
The "only route displayed" would be OK I think, in case the one route displayed after the source code edit sync was the one the user was editing.
Currently, the UI creates the flows IDs in two places:
1. Upon syncing the code through the useFlowsStore.setFlowsWrapper() method
2. Upon creating a new flow when using the New Flow button
For the .1, since the UI doesn't have a previous ID
because we're starting from the source code, the UI
creates an ID using the DSL name and the position index,
i.e. "Camel Route-1".
For the .2, the UI uses a service to generate an ID
with the word "route-####" while "####" it's a 4 digits
random number.
In this commit, the UI leverages the IFlowsWrapper.flows[0].metadata.name
property as an ID for each flow, this way, whenever a sync happens,
the IDs will be the same.
fixes: KaotoIO/vscode-kaoto#280fixes: #1910
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the Bug
When users use the code editor for editing multiple routes with displayed route in the canvas, after syncing the code editor the displayed routes are hidden and only the first route stays displayed.
Steps to Reproduce the Bug or Issue
Screenshots or Videos
Platform
The text was updated successfully, but these errors were encountered: