SACGF / SACGF/variantgrid

Condition text search: ValueError 'MPATH' is not a valid OntologyService

Open
#1,603 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
30
Forks
3
Avg merge
9h 28m
Merged PRs (30d)
42

Description

🤖 Written by Claude

Condition text search hits `ValueError: 'MPATH' is not a valid OntologyService` when normalising a term whose prefix (MPATH) isn't in the `OntologyService` enum.

Seen on sharianttest and another deployment. Either add MPATH to the supported services or handle/skip unknown prefixes gracefully in condition text search.

Location: `classification/models/condition_text_search.py:22` → `ontology/models/models_ontology.py:308` (`normalize`)

**Rollbar:**
- https://app.rollbar.com/a/jimmy.andrews/fix/item/VariantGrid/6250
- https://app.rollbar.com/a/jimmy.andrews/fix/item/VariantGrid/7051

_(Filed from a 6-month Rollbar triage.)_

---

This issue originally suggested handling API failure by swallowing the error so we could continue - but I removed that - better to die loudly and do it again later

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.