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
The synchronization system must be rewritten according to the schema discussed in #345.
The process can be split into several methods in the PagesController controller, and match HTTP methods. For instance :
GET : return stats about the current status of the database, and about how many files can be imported, updated or removed
POST : trigger the import process (to add new tracks). Up to n tracks imported per request. The response code will be different depending on the result of the import
PATCH : trigger the update process (to update records from the database). They are edited because their related file on the filesystem has been modified since their last import. Up to n tracks updated per request. The response code will be different depending on the result of the process
DELETE : trigger the clean up process (to delete records from the database). They are considered as orphans because the file has been deleted from the filesystem
The requests must be stateless without any big transfer of data between the client and the server. No more potentially big sessions on server side, no more endless list of files on client side.
The process will be definitively far much longer than the previous versions, especially in case of tens of thousand files collections. But it should be easier to implement it through a CLI and add some automation capabilities.
The related view will be obviously changed too.
The text was updated successfully, but these errors were encountered:
The synchronization system must be rewritten according to the schema discussed in #345.
The process can be split into several methods in the
PagesController
controller, and match HTTP methods. For instance :GET
: return stats about the current status of the database, and about how many files can be imported, updated or removedPOST
: trigger the import process (to add new tracks). Up to n tracks imported per request. The response code will be different depending on the result of the importPATCH
: trigger the update process (to update records from the database). They are edited because their related file on the filesystem has been modified since their last import. Up to n tracks updated per request. The response code will be different depending on the result of the processDELETE
: trigger the clean up process (to delete records from the database). They are considered as orphans because the file has been deleted from the filesystemThe requests must be stateless without any big transfer of data between the client and the server. No more potentially big sessions on server side, no more endless list of files on client side.
The process will be definitively far much longer than the previous versions, especially in case of tens of thousand files collections. But it should be easier to implement it through a CLI and add some automation capabilities.
The related view will be obviously changed too.
The text was updated successfully, but these errors were encountered: