Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.0.0
-
None
-
None
Description
ACE-391 added optional configuration to the file repositories, but there are still two concerns that I would like to address which are not strictly backward compatible.
1) The RepositoryFactory assigns working directories based on the PID which is a hard to interpret randomly generated number. As we have logical concepts as 'customer' and 'name' for repositories I suggest to use those (in a fs safe fashion) instead.
Eg.
current layout : <basedir>/<pid>/<revision><extension>
proposed layout : <basedir>/<customer>/<name>/<revision>[extension]
2) The RepositoryFactory uses prefs (keeping unsafe refs which is a bug) for, AFAICS, the sole purpose of guaridng uniqueness of customer/name combination. Addressing the layout as described in 1 voids the need for prefs altogether so I ould like to remove it.