question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Old(?) similar cases call detected?

See original GitHub issue

the get_similar_cases call was renamed in the case adapter in august - did we miss one call or have we messed with the history?

2020-12-15 14:50:53,294 - scout.server.app - ERROR: Exception on /cust003/gene_variants [POST] [in /home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py:1892]
Traceback (most recent call last):
 File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
   response = self.full_dispatch_request()
 File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
   rv = self.handle_user_exception(e)
 File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
   reraise(exc_type, exc_value, tb)
 File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
   raise value
 File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
   rv = self.dispatch_request()
 File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
   return self.view_functions[rule.endpoint](**req.view_args)
 File "/home/hiseq.clinical/SERVER/apps/scout/git/scout/scout/server/utils.py", line 24, in decorated_function
   context = func(*args, **kwargs)
 File "/home/hiseq.clinical/SERVER/apps/scout/git/scout/scout/server/blueprints/institutes/views.py", line 218, in gene_variants
   query=form.data, institute_id=institute_id, category="snv", variant_type=variant_type
 File "/home/hiseq.clinical/SERVER/apps/scout/git/scout/scout/adapter/mongo/variant.py", line 326, in gene_variants
   variant_type=variant_type,
 File "/home/hiseq.clinical/SERVER/apps/scout/git/scout/scout/adapter/mongo/query.py", line 140, in build_variant_query
   similar_cases = self.get_similar_cases(case_obj)
AttributeError: 'MongoAdapter' object has no attribute 'get_similar_cases'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dnilcommented, Dec 15, 2020

Yeah, its stuff like that that makes me worried about deleting indexes etc. Anyway, good; I’ll have a look later!

1reaction
northwestwitchcommented, Dec 15, 2020

Yes, I think we just forgot that call. It’s a search that is not used often, that’s why we see the bug for the first time now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the best practice to show old value when editing a ...
In the case where validation hasn't fired yet, value will be filled with $dog->title . Save this answer.
Read more >
Find a Text Term in a Field in Power BI Using DAX Functions
Search is very similar to FIND, the only difference is that Search is NOT case sensitive. There is no difference between “A” or...
Read more >
Antikythera mechanism - Wikipedia
The Antikythera mechanism is an Ancient Greek hand-powered orrery, described as the oldest ... The device, housed in the remains of a wooden-framed...
Read more >
Elder Abuse | National Institute on Aging
Learn about elder abuse, including physical, emotional, and financial abuse. Identify signs of abuse, neglect, health care fraud, ...
Read more >
Use Crash Detection on iPhone or Apple Watch to call for help ...
Crash Detection is designed to detect severe car crashes—such as front-impact, side-impact, and rear-end collisions, and rollovers—involving ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found