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

chore(viznode): Remove usage of the VisualizationNode class #203

Merged
merged 1 commit into from Oct 6, 2023

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Oct 6, 2023

Context

In some cases, we're using the VisualizationNode class directly to create a new node as new VisualizationNode(...).

This is not a problem itself, but tying entity classes like KameletBinding with the VisualizationNode class is not ok, as it allows to implement functionality directly on the implementation class that other entities won't leverage.

Changes

This commit encompasses:

  • Remove the usage of new VisualizationClass(...)
  • Create a new function that returns an instance of VisualizationNode but using the IVisualizationNode type instead

In some cases, we're using the VisualizationNode class directly to create a new
node as `new VisualizationNode(...)`.

This is not a problem itself, but tying entity classes like `KameletBinding` with
the `VisualizationNode` class is not ok, as it allows to implement functionality
directly on the implementation class that other entities won't leverage.

This commit encompass:

* Remove the usage of `new VisualizationClass(...)`
* Create a new function that returns an instance of `VisualizationNode` but using the
`IVisualizationNode` type instead
@lordrip lordrip requested a review from a team October 6, 2023 14:25
@lordrip lordrip merged commit 3fff402 into KaotoIO:main Oct 6, 2023
6 checks passed
@lordrip lordrip deleted the chore/remove-viznode-usage branch October 6, 2023 14:35
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.

None yet

2 participants