lirmm / waves-core

WAVES is a reusable web application dedicated to bioinformatic tool integration

Home Page:https://waves-core.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on deleting a service with File inputs

vincent-lefort opened this issue · comments

It's impossible to delete a service with a "File input". It raise this error :
Cannot query "Data type (ListParam)": Must be "FileInput" instance.

There is a workaround: go on submissions methods, delete all "File inputs" one by one, then go back to services page to delete the service.

All error report**
ValueError at /admin/wcore/service/
Cannot query "Data type (ListParam)": Must be "FileInput" instance.
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/wcore/service/
Django Version: 1.11.14
Exception Type: ValueError
Exception Value:
Cannot query "Data type (ListParam)": Must be "FileInput" instance.
Exception Location: /home/milanesi/.venvs/wavescoreenv/local/lib/python2.7/site-packages/django/db/models/sql/query.py in check_query_object_type, line 1054
Python Executable: /home/milanesi/.venvs/wavescoreenv/bin/python
Python Version: 2.7.12
Python Path:
['/home/milanesi/Documents/WAVES/Formations/TP_WAVES/waves',
'/home/milanesi/.venvs/wavescoreenv/lib/python2.7',
'/home/milanesi/.venvs/wavescoreenv/lib/python2.7/plat-x86_64-linux-gnu',
'/home/milanesi/.venvs/wavescoreenv/lib/python2.7/lib-tk',
'/home/milanesi/.venvs/wavescoreenv/lib/python2.7/lib-old',
'/home/milanesi/.venvs/wavescoreenv/lib/python2.7/lib-dynload',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/home/milanesi/.venvs/wavescoreenv/local/lib/python2.7/site-packages',
'/home/milanesi/.venvs/wavescoreenv/lib/python2.7/site-packages']

Sorry I could not reproduce. Can you be more specific ? (sent email with screenshots)

Though I found another issue while searching for this one. The delete button was active but with no effect.
#9

From WAVES back-office: 'Home' click 'Services'.
Select a service with the check-box then select 'Delete selected services' in the 'Action' dropdown list and click the 'Go' button. This raises the error.
waves_issue1