This commit is contained in:
@@ -5,17 +5,19 @@ PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route chang
|
|||||||
|
|
||||||
todo: Administration - Attached files manager
|
todo: Administration - Attached files manager
|
||||||
replicate v7
|
replicate v7
|
||||||
add EXCLUSIVE SYNC job callable on demand
|
add Attachments checker job that checks on demand all files and stuff as per below
|
||||||
|
|
||||||
EXISTENCE CHECK
|
EXISTENCE CHECK
|
||||||
iterate FileAttachment records, if physically present then flag as such
|
iterate FileAttachment records, if physically present then flag as such
|
||||||
make sure it has a short circuit that if there are NO files physically then all are out of sync
|
make sure it has a short circuit that if there are NO files physically then all are out of sync
|
||||||
this scenario is someone moving a db and not moving physical files
|
this scenario is someone moving a db and not moving physical files
|
||||||
ORPHANED FILES CHECK
|
ORPHANED FILES CHECK
|
||||||
|
These should never be out of sync due to timing issues, the file would be deleted before teh db record
|
||||||
iterate physical files, if not in db then make a FileAttachment record for it AyaType nothing id 0
|
iterate physical files, if not in db then make a FileAttachment record for it AyaType nothing id 0
|
||||||
if user want's to move them, they can download and then attach and then remove the generated attachment (Nothing id 0) the holder of orphaned files
|
if user want's to move them, they can download and then attach and then remove the generated attachment (Nothing id 0) the holder of orphaned files
|
||||||
(Or move feature)
|
(Or move feature)
|
||||||
DE-ORPHANIZE ACTION
|
DE-ORPHANIZE ACTION
|
||||||
iterate orphaned file attachments to orphaned file object, if found to be attached to any other object remove the orphaned object attachement
|
iterate orphaned file attachments to NOTHING type, if found to be attached to any other object remove the orphaned object attachement
|
||||||
|
|
||||||
|
|
||||||
add sync status to db table so can show in grid
|
add sync status to db table so can show in grid
|
||||||
|
|||||||
Reference in New Issue
Block a user