WIP: removing empty FileInstance#1738
WIP: removing empty FileInstance#1738switowski wants to merge 3 commits intoCERNDocumentServer:mainfrom
Conversation
* added restrictions to upload to SCADA project category
* Removes empty file instances when the ObjectVersion is disposed.
|
For whoever will take over this code, I put some logging (check for and this was the output in the As you can see, the first 5 FileInstance objects are crated, then as soon as the first ObjectVersion finishes, we are commiting changes to the DB (while the FileInstance objects have 0 size, no URL and no checksum). Then if someone deletes the video, the FileInstance objects will stay like that and they won't be removed (I think my PR should fix this). |
No description provided.