Clarify entities vs. visualEntities
Please describe the task that needs to be done
Currently CamelRouteResource.getEntities() returns everything other than CamelRouteVisualEntity, which contains other visual entities such as RouteConfiguration
https://github.com/KaotoIO/kaoto/blob/main/packages/ui/src/models/camel/camel-route-resource.ts#L149
It would be better to clarify what getEntities() should return. Having the fact that we also have getVisualEntities() in mind, it would be either
- All entities, both visual entities and non visual entities
- Non visual entities
I find it useful if getEntities() would return all entities rather than just non visual entities. In that way it could represent the order of the entities when visual ones and non visual ones are combined.
Clarify:
-
getEntities(): These are non-visible entities, likebeansor at some pointrestandrestConfiguration. -
getVisualEntities(): Everything that goes rendered in the Canvas
getEntities should only return non-visible entities, whereas getVisualEntities() should return everything going to the Canvas.