When a resource has been deleted, if we get it through LTI, Marsha tries to create it.
But as it is a soft-deletion, its id exists, and an error is raised, resulting in a 500 error.
Fixes #2399
Proposal
Catch the validation error, and let the frontend manage it.
Aside from the issue, development dataset and view have been improved.
Purpose
When a resource has been deleted, if we get it through LTI, Marsha tries to create it. But as it is a soft-deletion, its id exists, and an error is raised, resulting in a 500 error.
Fixes #2399
Proposal
Catch the validation error, and let the frontend manage it.
Aside from the issue, development dataset and view have been improved.