Genealogy tree visualization - TypeError at testing instances
Las instance: NKI, CRUK, CURIE, VHIO
Username: dudova, marieke (NKI)
When: July 2020
Describe problem: I have tested testing instances in concern of Genealogy Tree in Query module.
- I have lookup genealogy IDs in table bio_mice in caxeno module in SQL DB.
- I have used these as a case identifier in Genealogy Tree. -> TypeError pop up in most cases - sometimes Not found occurred.
- I have inserted new fresh tissue and registered new animals in NKI, CRUK, CURIE. Then implant - explant - implant.
- No change in Genealogy tree visualization - TypeError again
At central LAS instance no TypeError, but only the KeyError occurs which is quite positive because we didn´t apply the newest patch to the central instance yet.
Strange points:
- I have tried the point 3. above at KUK instance and the Genealogy Tree was all right, see below. Unfortunately, no other instance was the same success.
- I did the same steps at CRUK instance before the new version 20.07.01 was applied there and the behavior was the same as after patch application. Steps 1-2 were tried at LAS Leuven production instance without code actualization and only TypeError occurs.
TypeError at /genealogytree/
list indices must be integers, not str
Request Method: GET
Request URL: https://curie.edirex.ics.muni.cz/mdam/genealogytree/?case=brn0005
Django Version: 1.4.11
Exception Type: TypeError
Exception Value:
list indices must be integers, not str
Exception Location: /srv/www/caquery/_caQuery/views/views_graphics.py in getXenoData, line 146
Python Executable: /usr/bin/python
Python Version: 2.7.15
Python Path:
['/virtualenvs/venvdj1.4/lib/python2.7/site-packages',
'/srv/www',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/virtualenvs/venvdj1.4/local/l
Environment:
Request Method: GET
Request URL: https://curie.edirex.ics.muni.cz/mdam/genealogytree/?case=brn0005
Django Version: 1.4.11
Python Version: 2.7.15
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'_caQuery',
'piston',
'LASAuth',
'mongoengine',
'editpermission',
'global_request_middleware',
'cookieMiddleware')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'_caQuery.middleware.AjaxRedirect',
'api.middleware.ContentTypeMiddleware',
'api.middleware.XsSharingMiddleware',
'global_request_middleware.GlobalRequestMiddleware',
'cookieMiddleware.ExtendUserSession')
Traceback:
File "/virtualenvs/venvdj1.4/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/srv/www/caquery/LASAuth/decorators.py" in decorator
16. return view_func(request, *args, **kwargs)
File "/virtualenvs/venvdj1.4/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
20. return view_func(request, *args, **kwargs)
File "/srv/www/caquery/_caQuery/views/views_graphics.py" in plotXenoTree
240. data = getXenoData(case=case_id, removeIsolated=removeIsolated, user=request.user)
File "/srv/www/caquery/_caQuery/views/views_graphics.py" in getXenoData
146. if resp['body']:
Exception Type: TypeError at /genealogytree/
Exception Value: list indices must be integers, not str