openfun / marsha

:clapper: An opensource LTI Learning Content Management System (LCMS)
MIT License
107 stars 24 forks source link

🐛(backend) fix lti view for deleted resource #2412

Closed kernicPanel closed 11 months ago

kernicPanel commented 12 months ago

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.