Open boriskovar-m2ms opened 2 years ago
This might be a bigger problem than what it looks like. There is a handful of edge cases which have to be handled:
If I encounter any other edge cases I will update this comment.
This tracks updates to the points mentioned above:
@rsanchezgarc @phraenquex
Results from the jobs will be uploaded to the fragalysis and user will able to see and inspect these results directly in the fragalysis front-end. Every action is stored as an action so user can undo-redo these actions, create a project (which will save a snapshot), save an anonymous snapshot so someone else can restore the snapshot which in turn will replay last action (if any) on given objects. It’s important to understand that it doesn’t matter if the dataset is only marked as deleted and not physically deleted on the backend, but if frontend doesn’t receive any information about existence of the dataset then, from frontend point of view, it doesn’t matter if it is physically or only logically deleted. There are two basic modus operandi for a normal user.
Ignoring of the actions performed on the missing objects when loading snapshot should be present but should be verified and fixed where it's not so.
User will be able to delete results of the jobs which are computed dataset which are displayed in the right hand side.
API call to delete given dataset: DELETE api/compound-sets/
User will be able to delete the sets from jobs table. User will be able to select multiple job results and press the button Remove. The system will show a confirmation dialog with text "Are you sure you want to delete following datasets:
" with two buttons Yes and No. After confirmation (Yes button pressed) system will remove tab for each selected computed dataset from RHS and after that call DELETE api/compound-sets/ for each selected job. Pressing the No will cancel the action.