Opened 9 years ago

Last modified 9 years ago

#865 closed task

Stray files wizard — at Version 3

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: Reggie v4.3
Component: net.sf.basedb.reggie Keywords:
Cc:

Description (last modified by Nicklas Nordborg)

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 DataFilesFolder annotation.

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.

Change History (3)

comment:1 by Nicklas Nordborg, 9 years ago

Description: modified (diff)

comment:2 by Nicklas Nordborg, 9 years ago

Milestone: Reggie v4.xReggie v4.3
Status: newassigned

comment:3 by Nicklas Nordborg, 9 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.