Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(canvas): Loads the Kamelet Form with the Kamelet Schema #864

Merged
merged 8 commits into from
Feb 28, 2024

Conversation

shivamG640
Copy link
Contributor

Fixes #782 partially.
This change loads the Kamelet Form with the Kamelet Schema

Copy link
Member

@lordrip lordrip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just need to check whether the type correct or not, and remove the cloneDeep as it's not necessary at this point

@shivamG640 shivamG640 marked this pull request as ready for review February 27, 2024 22:58
After updating the way how the Kamelet's model is updated, the `labels`
and `annotations` objects are mutated, which is not ideal since makes
the form complicated to use as the object fields are populated with the
standalone fields as well.

In addition to that, the Kamelet's custom schema is using Capitalized
version of the `type` entry, for instance, `Action`, `Source` and `Sink`

The fix is to recreate the object reference on each update and to fix
the schema enum by using the right values.

fix: KaotoIO#782
@lordrip
Copy link
Member

lordrip commented Feb 28, 2024

Looks good to me, but I'm noticing that we're missing a handler for the properties field. See an example

@lordrip lordrip merged commit e9e02b2 into KaotoIO:main Feb 28, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a Kamelet configuration panel
3 participants