joinbox / infect

INterface For Empirical antimicrobial ChemoTherapy. An easy-to-use online tool to bring the latest resistance data from bench to bedside
http://infect.in/
MIT License
1 stars 0 forks source link

Backoffice: deleting bacteria: The server returned a "500 Internal Server Error" #35

Open pascalmfrey opened 7 years ago

pascalmfrey commented 7 years ago

Tried to delete a bacteria in the backoffice (all the MRSA, ESBL and KPC add-on species names that are non species - sorry for doing that in the first place - have to go) I couldn't do so because of a <<The server returned a "500 Internal Server Error">> Error. Is there a work-around?

tobiaskneubuehler commented 7 years ago

@alpascal this is because the bacteria has mappings with

the database is designed to refuse deletion of a bacteria if there are such «mappings». you can delete the «resistance substanceClass» & «resistance» entries with bacteria «x» first, and then delete the bacteria. also we could discuss if this restriction makes sense, deleting a bacteria should resolve in deleting corresponding data.

@eventEmitter how is it configured in the new db?