now using uselist=False to ensure file_details, dir_details, in_dir are one-to-one, and dont have useless list of 1 element. updated TODO to reflect order of how to tackle change over to paths and dirs
This commit is contained in:
13
TODO
13
TODO
@@ -1,14 +1,18 @@
|
||||
## GENERAL
|
||||
* need a path_details_dir_link table (path_details -> type 'import/storage/recycle'
|
||||
- need to make some FILE/DIR, etc. funcs into OO (hide all use of path_prefix, then we can do the below)
|
||||
- stop fudging the path in DIR (to add static), and just add 'static/' + path_details_dir.prefix + dir.rel_path
|
||||
- path has overall file count, so we dont fudge the file count for parent dir in the import, etc.
|
||||
-- do we even need/care about per Dir counts? (I dont think so)
|
||||
- ignore *thumb* -- but consider how we do this and don't screw up 'dir/job counts'
|
||||
* storage_path viewing needs to be by folder / not a big grab bag of files (by default)
|
||||
-- mostly done. Need to toggle the view if I want, and when viewing storage area, change single-click to be view file again, and right-click to be my context menu
|
||||
* when we put files in recycle bin, they need to stay in the DB and just have their root/base path moved (so they can be view as per above/below)
|
||||
- do I need a 'import/storage/recycle' path/dir 'type'?
|
||||
* doing actual file deletes needed again [DONE]
|
||||
- decided a recycle bin would be good [DONE]
|
||||
- when we put files in recycle bin, they need to stay in the DB and just have their root/base path moved (so they can be view as per above/below)
|
||||
- could also allow undelete per file / show content as another Files->View and more like storage (i.e. show folders)
|
||||
* AddJobForLog can absorb DEBUGs, etc. in fact fix up logging in general
|
||||
* comment your code
|
||||
* do we need to make some funcs/code into OO?
|
||||
* need a way for page to show we are in import_path or storage_path
|
||||
|
||||
## DB
|
||||
@@ -20,9 +24,6 @@
|
||||
(file_refimg_link --> file_refimg_link needs a face_num?)
|
||||
|
||||
### BACKEND
|
||||
scan storage/import dir:
|
||||
ignore *thumb* -- but consider how we do this and don't screw up 'dir/job counts'
|
||||
|
||||
-- started on some basic optimisations (commit logs every 100 logs, not each log)
|
||||
- with debugs: import = 04:11, getfiledetails== 0:35:35
|
||||
- without debugs: import == 04:03, getfiledetails == 0:35:36 -- not a sig diff
|
||||
|
||||
Reference in New Issue
Block a user