The list edit functionality should use an update call on the database to apply any changes from the POST submission, not the current delete/insert logic.
Why
Delete/insert leaves the site vulnerable to data loss if the insert fails, as the previous version of the list has already been deleted. By using an update, if it fails, the old version of the data remains.
Website/API Suggestion
Description
The list edit functionality should use an update call on the database to apply any changes from the POST submission, not the current delete/insert logic.
Why
Delete/insert leaves the site vulnerable to data loss if the insert fails, as the previous version of the list has already been deleted. By using an update, if it fails, the old version of the data remains.