Stray files wizard
|Reported by:||Nicklas Nordborg||Owned by:||Nicklas Nordborg|
Description (last modified by )
The files in the project archive may not reflect what is registered in the database. For example, jobs that are failing midway can leave files in the project archive and items may be deleted from BASE.
A wizard is needed that checks the files in the project archive and compare against the information in the BASE database. Files that are found in the project archive but have no relation to anything in BASE should be listed and the user should have the possibility to delete the files.
Exactly how the file/directory structure on the project archive should be mapped to items in BASE need some more investigation. [UPDATE] After thinking a bit more about this I think the most reliable way is compare directories against items with
One way is to check all
File items and the URL that has been stored in the database. But there are some scripts that generate files that are not mapped to BASE so this may not work in all cases.
Another way is to only check directories. The path below the root project archive folder should directly match the
DataFilesFolder annotation a derived or raw bioassay item.
The wizard should be located in the "Server administrator" section and require "Administrator" role.