KaotoIO / kaoto-ui

Frontend for the Kaoto project to provide an easy-to-use integration framework based on Apache Camel.
https://www.kaoto.io
Apache License 2.0
89 stars 44 forks source link

Code editor: Description is not in sync with settings #1148

Closed kahboom closed 1 year ago

kahboom commented 1 year ago

Describe the Bug

When you change the description from either the source code editor it does not get updated in the settings, and vice versa.

Steps to Reproduce the Bug or Issue

  1. Go to Settings
  2. Change the description
  3. Press save
  4. See there are no changes in the description in the YAML

Repeat the other way around to see that the YAML does not change the description in Settings either.

Screenshots or Videos

Kapture 2023-01-23 at 16 36 52

Platform

mmelko commented 1 year ago

The thing is that if the description is set it's in the integration metadata.. but for example in kamelets it's under spec:definitions. I believe this has to be done in the kamelet-support in the backend side. But still other DSLs doesn't have a description field .. so I'm wondering if that even should be in the global settings.

mmelko commented 1 year ago

I've created https://github.com/KaotoIO/kaoto-ui/pull/1412 -> this will update the description in the settings for all DSLs when the description field will be available. https://github.com/KaotoIO/kaoto-backend/pull/519 -> for updating the description from the settings to the Kamelet.