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
After #67 and #87 are merged we should investigate refactoring the of passing attributes to the transport layer. Currently the Controller instance is passed around and the single mappings used to access the attributes, and also a link back to the Controller.
The idea now would be that the Backend initialises the Controller and can then provide a ControllerAPI. This will contain only the attributes and methods that are pre-bound to the Controller instance. ControllerAPI could either be a tree with a walk method to recurse the tree, build the path dynamically and return the attributes at that node. Or, it could be pre-flattened into a dict of full path to attributes. We should consider whether a transport might need the fully structured tree rather than the flattened dict for some reason.
Note in the above attributes includes, scan methods, put methods, etc.
Acceptance Criteria
Controller is no longer passed to the transport
All references to "mapping" removed (probably?)
The text was updated successfully, but these errors were encountered:
After #67 and #87 are merged we should investigate refactoring the of passing attributes to the transport layer. Currently the
Controller
instance is passed around and the single mappings used to access the attributes, and also a link back to theController
.The idea now would be that the
Backend
initialises theController
and can then provide aControllerAPI
. This will contain only the attributes and methods that are pre-bound to theController
instance.ControllerAPI
could either be a tree with a walk method to recurse the tree, build the path dynamically and return the attributes at that node. Or, it could be pre-flattened into a dict of full path to attributes. We should consider whether a transport might need the fully structured tree rather than the flattened dict for some reason.Note in the above attributes includes, scan methods, put methods, etc.
Acceptance Criteria
Controller
is no longer passed to the transportThe text was updated successfully, but these errors were encountered: