Datafile cloud/local path duality #237
Labels
backend
Related to the back end
decision needed
A decision is required (e.g. on UX or company policy)
tech-debt
Technical debt (tidy up, refactoring, restructuring, caused by laziness now)
Datafile
increasingly represents a hybrid local/cloud object with recent additions of thelocal_path
andcloud_path
attributes while the originalpath
attribute remains. We've been thinking about if the natural and intuitive thing to do is just be explicit about cloud and local paths and deprecatepath
.The problem we have currently is that
path
is a required path at instantiation which we need to makeDatafile
aPathable
, but this means we prioritise one either the cloud path or the local path. We can't have two equal-priority pathables withoutPathable
being used by composition forcloud_path
andlocal_path
in the constructor rather than as a mixin. At the moment, to instantiate aDatafile
, you have to specify one of:path
andcloud_path
where path is a local pathpath
andlocal_path
where path is a cloud pathThere is disparity in these options (which path is used for
path
matters to some extent) and problems will likely ensue if all ofpath
,cloud_path
, andlocal_path
are specified.Ultimately, we may need to deprecate
path
and fully embrace the duality of cloud/local. This will have implications forPathable
so we'll have to observe user behaviour as to whether the its capabilities are actually fully used or not.The text was updated successfully, but these errors were encountered: