Replies: 5 comments 13 replies
-
To remember: the list of available DSL will come from a backend endpoint, not hardcoded on the frontend. |
Beta Was this translation helpful? Give feedback.
-
The compatibility does not go by DSL. All DSL (right now) are compatible with any other DSL. Because all of them are Camel DSL. Right now the only difference is by the type of step used. Some types/kinds of steps are not valid inside some DSL. Today is branches, tomorrow? Who knows. It may even not be the type of step but a combination of steps or who knows? It will also depend on the DSLs we support later (when we merge the Syndesis DSL for example, this changes). |
Beta Was this translation helpful? Give feedback.
-
I would iterate over this option. My proposal: each type/kind of step have a visual clue. Could be color, shape, background color,... So when you select a DSL that contains unsupported steps, it will show a message like: "This DSL only allows steps that are ${list_of_colors}. You have steps of color ${list} that will be removed from the integration. Are you sure you want to continue?" So the user can look back at the integration and check which steps will be removed (select a good color scale for color blindness!). Then the user can open the catalog and look for alternative steps to replace them. This means the catalog must have the same visual clues, so the user can replace the step with another step that won't be problematic too. |
Beta Was this translation helpful? Give feedback.
-
@Delawen - For option 2, how would the UI know which steps to clear? If I send the API a request with the same exact steps as before and just change the DSL, will it return the new YAML without those steps and branches? |
Beta Was this translation helpful? Give feedback.
-
To generate the warning message, you must know which steps are compatible with the DSL. I propose that the same endpoint that returns the list of DSL gives you the list of compatible step types.
Yes too. |
Beta Was this translation helpful? Give feedback.
-
As we are gearing up to support multiple DSLs from the UI, we should be considering how this will impact the user experience. For now, it looks like we will be allowing users to change the DSL from within a Settings modal, like this:
If the user is switching from one DSL that is not necessarily compatible with the existing one, then we should warn the user. We have a couple of options:
Do we have certain steps that are not interoperable? Or is it just the branches that are a concern? @Delawen
I'm not a huge fan of the third option because it means that we leave the user in a state where now they have to clean up a bunch of stuff, but one could argue that it's a feature, because clearing everything that isn't compatible could also be undesirable.
Reference issue #193
Beta Was this translation helpful? Give feedback.
All reactions