Remove the `pubmed_search_terms` evidence key
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by tracing SpecialEKeys.PUBMED_SEARCH_TERMS and the autopopulate branch in classification/autopopulate_evidence_keys/evidence_from_variant.py; then read the listed variant annotation files and existing ManualOperation commands. Add the migration and cleanup command, preserving records with values for reporting. Done when the key and listed references are removed and an API patch with "pubmed_search_terms": null stores nothing without a validation message.
Written by the indexing model from the issue text.
Description
🤖 Written by Claude
pubmed_search_terms was added for #5 (2020) and switched off a week later behind ANNOTATION_PUBMED_SEARCH_TERMS_ENABLED = False, which no deployment sets. Nothing has written a value since. The only stored values are blank fields locked by Shariant uploads, {"immutable": "api"}. The Shariant upload's insert_nones sends every key the source deployment has, including this one, as null.
Remove:
- the
EvidenceKeyrow (data migration), andSpecialEKeys.PUBMED_SEARCH_TERMS; - the autopopulate branch in
classification/autopopulate_evidence_keys/evidence_from_variant.pyand theANNOTATION_PUBMED_SEARCH_TERMS_ENABLEDsetting; - the variant page link (
variantopedia/templates/variantopedia/variant_details/annotation_external_ids.html, and thesettings_valueline invariant_details.html); VariantAnnotation.get_pubmed_search_termsandget_variant_pubmed_search_termsinannotation/external_search_terms.py.
Add a one_off_remove_pubmed_search_terms command, run as a ManualOperation, that strips the key from Classification.evidence where it has no value or note. It should report any record that has a value instead of deleting it.
Test: an API patch with "pubmed_search_terms": null, sent once the key no longer exists, stores nothing and raises no validation message. Deployments on older code keep sending the key until they upgrade.
- Dominant language
- Python
- Stars
- 31
- Forks
- 4
- Avg merge
- 4h 52m
- Merged PRs (30d)
- 183
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SACGF/variantgrid
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
SACGF/variantgrid#2964 · 1 comment ·
Maintainers usually reply within 1 day
-
Genome build now duplicated in "imported as" on allele pagePossibly taken @TheMadBug claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
SACGF/variantgrid#2950 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
SACGF/variantgrid#2865 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SACGF/variantgrid#2647 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
SACGF/variantgrid#2341 · 3 comments ·
Maintainers usually reply within 1 day
All issues in SACGF/variantgrid
Similar issues
-
Test: to_hijri() accepts datetime.datetime and uses only the date partPossibly taken A pull request linked to this issue is open or already merged. Opengood first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 · 3 comments ·
Maintainers usually reply within 1 day
-
polish
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresPossibly taken @AshutoshSingh840 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
UKGovernmentBEIS/control-arena#992 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
mvalentsev/awesome-free-ai-coding#70 ·
Maintainers usually reply within 1 day