You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We now initialize drivers following a topological order from the leaves to the root. So It's not currently possible from child drivers to get a fully initialized reference to their parent drivers. And from a architecture perspective: child accessing parent is a abstraction layer violation. But still, this functionality is well needed, also for the "shared storage area" thing that would be used for the tftp and opendal driver.
We now initialize drivers following a topological order from the leaves to the root. So It's not currently possible from child drivers to get a fully initialized reference to their parent drivers. And from a architecture perspective: child accessing parent is a abstraction layer violation. But still, this functionality is well needed, also for the "shared storage area" thing that would be used for the tftp and opendal driver.
Yes, I think childs should not access parents hierarchically (self.parent), but we need some way to at least get to the root, or a exporter base object, and ask for an specific instance based on the path, so we can make drivers work with each other while offering a uniform/flexible interface.
I.e.
That could be used to reference other objects in the exporter and compose drivers without needing to make them all children of each other, etc...
Ideally we should be able to reference by full path object_id: "object.sub_object.etc"
Could be useful to many use cases:
Ideally all drivers could have a method to find other objects on the exporter try by reference:
self.get_exporter_object(self.object_id)
The text was updated successfully, but these errors were encountered: