From 92a12ad954e660997eb06e8f65c92ebc127130f4 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 26 Jun 2020 18:22:11 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 5621002e..21686a24 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -5,17 +5,19 @@ PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route chang todo: Administration - Attached files manager 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 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 this scenario is someone moving a db and not moving physical files 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 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) 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