Content
View differences
Updated by Pavel Balashou over 1 year ago
**TODO**
* `file_path_to_id_map` file\_path\_to\_id\_map query returns currently none sanitized paths as keys
* those are used in the sync services, also for comparison
* This can easily break, if a `/` is forgotten or else
* Create a dedicated class for working with paths which is responsible for comparison and encapsulates all the details.
* Repurpose existing data model `ParentFolder` https://github.com/opf/openproject/blob/011f74ebe40421f9c234b4bb130099481c442ecd/modules/storages/app/common/storages/peripherals/storage\_parent\_folder\_extractor.rb#L33
**NEXT STEPS**
* Identify all the places where comparison of urls/path happens
* `file_path_to_id_map`
* those are used in the sync services, also for comparison
* This can easily break, if a `/` is forgotten or else
* Create a dedicated class for working with paths which is responsible for comparison and encapsulates all the details.
* Repurpose existing data model `ParentFolder` https://github.com/opf/openproject/blob/011f74ebe40421f9c234b4bb130099481c442ecd/modules/storages/app/common/storages/peripherals/storage\_parent\_folder\_extractor.rb#L33
**NEXT STEPS**
* Identify all the places where comparison of urls/path happens