Delete on Server fails
realholgi opened this issue · comments
same for applications
Deleting devices should now work. Cause for the problem was referential integrity: with each request from the device a log entry is created which has a reference to devices. Now deleting the device will cascade also to the log. Introducing cascading delete for applications would also delete the device and I don't think this would be expected behavior. We probably should show a message saying that there is a device using this application and thus the application cannot be deleted. What do you think? And can you confirm that deleting the device now works?
No sorry, still "Internal Server Error" on deleting Device 12 and Application 18. Order of deletion does not matter.
I can delete an application, it it is not used in any device.
But now I have a device left, I cannot delete even with no application selected...
Can you please try again? The new database constraint was not applied properly before.
Yay! works now!