Implant/explant mouse
Las instance: cruk
Username: dudova
Version 20.04.01
Describe problem:
I have tested the new LAS release/patches and found one strange behavior at Xenografts module during mouse sorting into groups after implantation. I have tested two instances (cruk, nki) with a similar behavior. Images are taken from "cruk" as a "test" user
Mice were implanted successfully but at the last step of the implantation after sorting the mice into two groups and clicking on Save, error Something gone wrong poped up, see below.
I have checked the saved data in Ongoing Experiments and everything seemed saved, see below. Only strange thing is that in genealogy ID is A and D, not A and B as the groups are.
I have tried to click on Continue on the error and Restore Old Data and suprisingly no problem occurs and I can go through the whole implant and division into groups again without any popped up message. During saving the same error occurs and so on...
In log I have found a warning in case I wanted to move mice withing groups which created LAS after the implant.
[Fri Apr 24 12:00:04.997819 2020] [wsgi:error] [pid 49:tid 139749615171328] [remote 147.251.55.72:55551] /virtualenvs/venvdj1.4/lib/python2.7/site-packages/django/template/defaulttags.py:56: UserWarning: A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestContext.,
[Fri Apr 24 12:00:04.997955 2020] [wsgi:error] [pid 49:tid 139749615171328] [remote 147.251.55.72:55551] warnings.warn("A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestContext.")
[Fri Apr 24 12:01:30.246270 2020] [wsgi:error] [pid 47:tid 139749648774912] [remote 147.251.55.72:55660] /virtualenvs/venvdj1.4/lib/python2.7/site-packages/django/template/defaulttags.py:56: UserWarning: A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestContext.,
[Fri Apr 24 12:01:30.246301 2020] [wsgi:error] [pid 47:tid 139749648774912] [remote 147.251.55.72:55660] warnings.warn("A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestContext.")
In case I have tried to save data without moving mice between groups and accepted LAS´ suggestion, no warning found in log but the same error Something gone wrong poped up again.
[Fri Apr 24 12:12:58.858564 2020] [wsgi:error] [pid 43:tid 139749724342016] [remote 147.251.55.72:56329] XMM VIEW: start implant.implantGroups
[Fri Apr 24 12:12:58.858890 2020] [wsgi:error] [pid 43:tid 139749724342016] [remote 147.251.55.72:56329] XMM VIEW: start utils.getHTML
[Fri Apr 24 12:12:58.859085 2020] [wsgi:error] [pid 43:tid 139749724342016] [remote 147.251.55.72:56329] XMM VIEW: start utils.countGenID
[Fri Apr 24 12:12:58.860823 2020] [wsgi:error] [pid 43:tid 139749724342016] [remote 147.251.55.72:56329] XMM VIEW: start utils.groupCellCode
[Fri Apr 24 12:12:58.862515 2020] [wsgi:error] [pid 43:tid 139749724342016] [remote 147.251.55.72:56329] XMM VIEW: start utils.groupCellCode
[Fri Apr 24 12:12:58.863760 2020] [wsgi:error] [pid 43:tid 139749724342016] [remote 147.251.55.72:56329] XMM VIEW: start utils.groupCellCode
[Fri Apr 24 12:12:58.865037 2020] [wsgi:error] [pid 43:tid 139749724342016] [remote 147.251.55.72:56329] XMM VIEW: start utils.groupCellCode
[Fri Apr 24 12:12:59.004753 2020] [wsgi:error] [pid 47:tid 139749522753280] [remote 147.251.55.72:56329] XMM VIEW: start implant.redirectG
[Fri Apr 24 12:13:07.415675 2020] [wsgi:error] [pid 44:tid 139749531154176] [remote 147.251.55.72:56340] XMM VIEW: start implant.rImplants
[Fri Apr 24 12:13:07.559221 2020] [wsgi:error] [pid 47:tid 139749531154176] [remote 147.251.55.72:56340] XMM VIEW: start implant.reportImplant
[Fri Apr 24 12:13:07.559341 2020] [wsgi:error] [pid 47:tid 139749531154176] [remote 147.251.55.72:56340] implants {u'viable1': {u'emptyFlag': True, u'A1': {u'actualQ': 0, u'aliquot': u'BRC0014PRH0000000000VT0100', u'listMice': [{u'badflag': False, u'barcode': u'MOUSE3', u'implantCounter': 0, u'site': u'Sub cutis Right', u'newGenID': u'BRC0014PRX0A01001SCR000000'}, {u'badflag': False, u'barcode': u'FOUSE4', u'implantCounter': 1, u'site': u'Sub cutis Right', u'newGenID': u'BRC0014PRX0B01001SCR000000'}, {u'badflag': False, u'barcode': u'MOUSE3', u'implantCounter': 2, u'site': u'Sub cutis Left', u'newGenID': u'BRC0014PRX0A01001SCL000000'}, {u'badflag': False, u'barcode': u'FOUSE4', u'implantCounter': 3, u'site': u'Sub cutis Left', u'newGenID': u'BRC0014PRX0B01001SCL000000'}, {u'badflag': False, u'barcode': u'MOUSE4', u'implantCounter': 4, u'site': u'Sub cutis Right', u'newGenID': u'BRC0014PRX0C01001SCR000000'}, {u'badflag': False, u'barcode': u'FOUSE3', u'implantCounter': 5, u'site': u'Sub cutis Right', u'newGenID': u'BRC0014PRX0D01001SCR000000'}, {u'badflag': False, u'barcode': u'MOUSE4', u'implantCounter': 6, u'site': u'Sub cutis Left', u'newGenID': u'BRC0014PRX0C01001SCL000000'}, {u'badflag': False, u'barcode': u'FOUSE3', u'implantCounter': 7, u'site': u'Sub cutis Left', u'newGenID': u'BRC0014PRX0D01001SCL000000'}], u'initQ': u'8'}}}
[Fri Apr 24 12:13:07.564354 2020] [wsgi:error] [pid 47:tid 139749531154176] [remote 147.251.55.72:56340] table BRC0014PRX0B.2020-04-24.Cisplatin.1|BRC0014PRX0B01001SCR000000|BRC0014PRX0B01001SCL000000&BRC0014PRX0C.2020-04-24.Cisplatin.0|BRC0014PRX0C01001SCR000000|BRC0014PRX0C01001SCL000000&BRC0014PRX0A.2020-04-24.Cisplatin.1|BRC0014PRX0A01001SCR000000|BRC0014PRX0A01001SCL000000&BRC0014PRX0D.2020-04-24.Cisplatin.0|BRC0014PRX0D01001SCR000000|BRC0014PRX0D01001SCL000000
[Fri Apr 24 12:13:07.573245 2020] [wsgi:error] [pid 47:tid 139749531154176] [remote 147.251.55.72:56340] BRC0014PRH0000000000VT0100
[Fri Apr 24 12:13:07.580859 2020] [wsgi:error] [pid 47:tid 139749531154176] [remote 147.251.55.72:56340] xenopatients.mice MOUSE3
[Fri Apr 24 12:13:07.597723 2020] [wsgi:error] [pid 47:tid 139749531154176] [remote 147.251.55.72:56340] {'id_status': <Status: implanted>, 'arrival_date': datetime.date(2020, 4, 24), 'death_date': None, 'gender': u'm', 'notes': u'', 'barcode': u'MOUSE3', 'created_by': <User: test>, 'id_source': <Source: Charles River Laboratories>, 'id_mouse_strain': <Mouse_strain: NUDE-CD1>, 'available_date': datetime.date(2020, 4, 24), 'birth_date': datetime.date(2020, 3, 13), 'id': 461L}
[Fri Apr 24 12:13:07.599756 2020] [wsgi:error] [pid 47:tid 139749531154176] [remote 147.251.55.72:56340] differisco BRC0014PRX0A01001SCR000000
[Fri Apr 24 12:13:07.601026 2020] [wsgi:error] [pid 47:tid 139749531154176] [remote 147.251.55.72:56340] XMM VIEW implant.reportImplant: 4)(1062, "Duplicate entry 'BRC0014PRX0A01001SCR000000' for key 'id_genealogy'")
[Fri Apr 24 12:13:18.074942 2020] [wsgi:error] [pid 47:tid 139749531154176] [remote 147.251.55.72:56373] XMM VIEW: start implant.startImplant