nasa / openmct-tutorial

A tutorial for OpenMCT that guides you through integrating historical and realtime telemetry.
Other
243 stars 106 forks source link

Request for including folder hierarchy building tutorial #56

Closed serbuh closed 5 months ago

serbuh commented 8 months ago

I am struggling with Object Provider and Composition Provider in order to create folders tree. Is it possible to provide an example in the tutorial of building hierarchy of the tree? I got to the same results as in this issue:
https://github.com/nasa/openmct/issues/2281 My use case is to create a folder hierarchy from the name of the field that is delimited with "." For example Spacecraft.FuelSystem.Pressure and Spacecraft.FuelSystem.Fuel shall create the tree:

Spacecraft
└─ FuelSystem
   ├─ Pressure
   └─ Fuel

Edit: The struggle comes from the lack of understanding of how and when Composition Provider and Object Provider are invoked. There are quite a few examples of using those in the internet. And it is hard to understand from the provided documentation the full logic of those objects https://github.com/serbuh/openmct/blob/74ecfd68504b4b70dc5110b07780dc7e7bb392c6/API.md#composition-providers
I would be very thankful for some more examples of use of the Object and Composition Providers

serbuh commented 6 months ago

Posted here a solution: Discussion: Folders hierarchy #7494