view_sample: 'Cannot use None as a query value' when uploaded_vcf.max_variant is None
- Dominant language
- Python
- Stars
- 30
- Forks
- 3
- Avg merge
- 9h 28m
- Merged PRs (30d)
- 42
Description
🤖 Written by Claude
`get_remaining_annotation_runs` filters `max_variant__lte=uploaded_vcf.max_variant` when `max_variant` is `None` (VCF not fully imported yet), raising `ValueError: Cannot use None as a query value` and 500ing `view_sample`.
Seen on variantgrid.com prod. Guard for `None` before building the filter.
Location: `upload/views/views.py:121` (`get_remaining_annotation_runs`), reached from `snpdb/views/views.py` `view_sample`
**Rollbar:**
- https://app.rollbar.com/a/jimmy.andrews/fix/item/VariantGrid/6896
- https://app.rollbar.com/a/jimmy.andrews/fix/item/VariantGrid/7079
_(Filed from a 6-month Rollbar triage.)_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.