From the to-do list: MPA V1.0: Import/ local / Offline
✔ Local file indexing
(Completed by Pierre henri Seylan on July 4, 2019)
Comments
Pierre henri Seylan on July 1, 2019:
In the recent weeks, the list of local files has often been reset in the MPA. I'm not sure if this is a bug or due to recent changes, however this brings an issue: What if in a later update the list of local files is reset? It will means that the user will have a bunch of local files which are no longer found by the app. You can see this behavior in the video below: https://www.dropbox.com/s/rek151w144sgqla/missing%20local%20files.mov?dl=0
Those local files are still displayed as local on the UI, they have the orange mark instead of the download icon. However they are not found whe using the local filter.
I would like to fix this behavior by synching the local files in the DB, please investigate if the solutions below can be implemented:
-Synching local files at startup: When starting the app, the list of local files is compared between the ones displayed o the UI and the one in the DB. We would then edit the DB to add the missing local files.
Karim Alabtakh on July 2, 2019:
I didn't worry about back compatibility issue because we currently use only beta builds. so worrying about back compatibility for current builds is a waste of time. After public release we will care about that if changes will affect the local database.
About syncing: solutions if you really need to sync: 1- What we can do now is to add entry to database for files appeared in the list as local but doesn't have entry in local db. (PS: the info about a file will be added to db only after scrolling if this file is not exist in the first page)
2- Your solution is hard to implement because we will have a lot of issue. if we will add local file to client without server info then it can't be edited or filtered by styles or favorite etc..
3- We can try to sync info by files names which located in soundslates folder, but in this case we will need additional APIs for that.
Pierre henri Seylan on July 2, 2019:
Hello,
Ok, maybe we can implement solution 1 for now, this seems to be the most suited.
Comments
Pierre henri Seylan on July 1, 2019:
I'm not sure if this is a bug or due to recent changes, however this brings an issue:
What if in a later update the list of local files is reset?
It will means that the user will have a bunch of local files which are no longer found by the app.
You can see this behavior in the video below:
https://www.dropbox.com/s/rek151w144sgqla/missing%20local%20files.mov?dl=0
Those local files are still displayed as local on the UI, they have the orange mark instead of the download icon.
However they are not found whe using the local filter.
I would like to fix this behavior by synching the local files in the DB, please investigate if the solutions below can be implemented:
-Synching local files at startup:
When starting the app, the list of local files is compared between the ones displayed o the UI and the one in the DB.
We would then edit the DB to add the missing local files.
Karim Alabtakh on July 2, 2019:
After public release we will care about that if changes will affect the local database.
About syncing:
solutions if you really need to sync:
1- What we can do now is to add entry to database for files appeared in the list as local but doesn't have entry in local db. (PS: the info about a file will be added to db only after scrolling if this file is not exist in the first page)
2- Your solution is hard to implement because we will have a lot of issue.
if we will add local file to client without server info then it can't be edited or filtered by styles or favorite etc..
3- We can try to sync info by files names which located in soundslates folder, but in this case we will need additional APIs for that.
Pierre henri Seylan on July 2, 2019:
Ok, maybe we can implement solution 1 for now, this seems to be the most suited.
Karim Alabtakh on July 3, 2019: